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

Create a separate user node pool for AKS K8S cluster #11

Open
hjhsalo opened this issue Feb 4, 2021 · 1 comment
Open

Create a separate user node pool for AKS K8S cluster #11

hjhsalo opened this issue Feb 4, 2021 · 1 comment

Comments

@hjhsalo
Copy link
Collaborator

hjhsalo commented Feb 4, 2021

DON'T START WORKING ON THIS YET
This needs to be thought trough in detail; i.e. we need to do development cost / benefit analysis.

terraform apply -var="k8s_agent_count=0" (see #3 (comment)) doesn't work since AKS separates node pools to a system pool and user pool(s).

See these for more info
https://docs.microsoft.com/en-us/azure/aks/use-system-pools#system-and-user-node-pools
https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools

Currently k8s_agent_count (https://github.com/hjhsalo/smad-terraform-azure/blob/97363bd33c6a052b73f2c85e05e165d32fd6b757/modules/k8s/main.tf#L71-L72) affects system pool and it must be at least 1.

We could define a separate user pool which can be shutdown by supplying node_count=0.

@msrn
Copy link
Member

msrn commented Mar 8, 2021

This can be done with azurerm_kubernetes_cluster_node_pool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants