add terraform instructions to README.md

This commit is contained in:
Florian Nowarre 2022-09-21 19:54:14 +02:00
parent c557468980
commit fbf000a0fd

View file

@ -56,10 +56,10 @@ cd inventory/$CLUSTER
Edit `default.tfvars` to match your requirement. Edit `default.tfvars` to match your requirement.
NOTE: when you prefer use Flatcar Container Linux instead of the basic Hetzner Images. Flatcar Container Linux instead of the basic Hetzner Images.
```bash ```bash
cd contrib/terraform/hetzner cd ../../contrib/terraform/hetzner
``` ```
Edit `main.tf` and reactivate the module `source = "./modules/kubernetes-cluster-flatcar"`and Edit `main.tf` and reactivate the module `source = "./modules/kubernetes-cluster-flatcar"`and
@ -70,8 +70,6 @@ Rescue-Mode with the selected image of the `var.machines` but installs Flatcar i
Run Terraform to create the infrastructure. Run Terraform to create the infrastructure.
NOTE: Assumes you are at the root of the kubespray repo.
```bash ```bash
cd ./kubespray cd ./kubespray
terraform -chdir=./contrib/terraform/hetzner/ init terraform -chdir=./contrib/terraform/hetzner/ init