From d9b27067b8cb937bdf35dfec6aa391c2ef7d213c Mon Sep 17 00:00:00 2001 From: Caio Gomes Date: Thu, 25 Apr 2024 17:58:48 -0300 Subject: [PATCH] fix: change capacity-type in eks managed nodes to on-demand --- .github/workflows/terraform-destroy.yaml | 2 +- terraform/environments/prod/eks.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform-destroy.yaml b/.github/workflows/terraform-destroy.yaml index 82a8312..6167301 100644 --- a/.github/workflows/terraform-destroy.yaml +++ b/.github/workflows/terraform-destroy.yaml @@ -24,6 +24,6 @@ jobs: - name: terraform init run: terraform init working-directory: terraform/environments/prod - - name: terraform apply + - name: terraform destroy run: terraform destroy -auto-approve working-directory: terraform/environments/prod diff --git a/terraform/environments/prod/eks.tf b/terraform/environments/prod/eks.tf index cbde148..7dc5e37 100644 --- a/terraform/environments/prod/eks.tf +++ b/terraform/environments/prod/eks.tf @@ -185,7 +185,7 @@ module "eks" { echo "you are free little kubelet!" EOT - capacity_type = "SPOT" + capacity_type = "ON_DEMAND" force_update_version = true instance_types = var.instance_types labels = {