diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index fc68512..4f789ef 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -50,6 +50,6 @@ jobs: - name: Terraform Plan run: terraform plan -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" - - name: Terraform destroy - run: terraform destroy -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" + - name: Terraform apply + run: terraform apply -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" diff --git a/configurations/prod.tfvars b/configurations/prod.tfvars index 89ad3a9..66916b3 100644 --- a/configurations/prod.tfvars +++ b/configurations/prod.tfvars @@ -12,7 +12,7 @@ vm_cloudinit_storage="local-lvm" # The storage where the cloud-init configuratio # Cluster configuration k8s_version= "1.28" # The version of Kubernetes -k8s_master_nodes= 0 # Number of master nodes (the main node is always the first one and not included in this number, so if you want 3 master nodes, you should put 2 here) +k8s_master_nodes= 1 # Number of master nodes (the main node is always the first one and not included in this number, so if you want 3 master nodes, you should put 2 here) k8s_worker_nodes= 1 # Number of worker nodes (recommended 3 or more for production environments) k8s_storage_nodes= 1 # Number of storage nodes (if you don't want storage nodes, put 0 here) k8s_pod_network_cidr= "10.244.0.0" # The CIDR notation of the pod network