Skip to content

Commit

Permalink
Mise à jour du workflow Terraform pour inclure la commande "terraform…
Browse files Browse the repository at this point in the history
… apply" au lieu de "terraform destroy" et mise à jour du nombre de nœuds maîtres et ouvriers dans la configuration de production
  • Loading branch information
AlxFrst committed Apr 17, 2024
1 parent ab4ba86 commit ff3bd6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

2 changes: 1 addition & 1 deletion configurations/prod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff3bd6a

Please sign in to comment.