Skip to content

Commit

Permalink
chore: Update Terraform workflow to use "terraform apply" instead of …
Browse files Browse the repository at this point in the history
…"terraform destroy" and adjust number of master and worker nodes in production configuration
  • Loading branch information
AlxFrst committed May 15, 2024
1 parent 2859f3f commit 38178cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ jobs:
- name: Terraform Plan
run: terraform plan -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"

- 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"

# - name: Terraform destroy
# run: terraform destroy -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars"
4 changes: 2 additions & 2 deletions configurations/prod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ 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= 2 # 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= 8 # Number of worker nodes (recommended 3 or more for production environments)
k8s_storage_nodes= 2 # Number of storage nodes (if you don't want storage nodes, put 0 here)
k8s_worker_nodes= 10 # Number of worker nodes (recommended 3 or more for production environments)
k8s_storage_nodes= 3 # 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
metallb_ip_range= "192.168.1.160-192.168.1.180" # The IP range for MetalLB

Expand Down

0 comments on commit 38178cf

Please sign in to comment.