Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT][Terraform - AKS] For Production environments, enable cluster auto-scaler #38

Open
yelghali opened this issue Apr 6, 2023 · 0 comments

Comments

@yelghali
Copy link

yelghali commented Apr 6, 2023

To keep up with application demands in Azure Kubernetes Service (AKS), you may need to adjust the number of nodes that run your workloads. The cluster autoscaler component can watch for pods in your cluster that can't be scheduled because of resource constraints. When issues are detected, the number of nodes in a node pool is increased to meet the application demand. Nodes are also regularly checked for a lack of running pods, with the number of nodes then decreased as needed. This ability to automatically scale up or down the number of nodes in your AKS cluster lets you run an efficient, cost-effective cluster.

c.f https://learn.microsoft.com/en-us/azure/aks/cluster-autoscaler

code scan check
If sku == standard (meant for production clusters):

[enable_auto_scaling=True]
(https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#enable_auto_scaling)

From https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#expander

@yelghali yelghali changed the title [DRAFT][Terraform - AKS] For Production environments enable cluster auto-scaler [DRAFT][Terraform - AKS] For Production environments, enable cluster auto-scaler Apr 6, 2023
@jhertout jhertout transferred this issue from green-code-initiative/ecoCode-challenge May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants