How can I remove a node pool from a k8s cluster?
Is this a request for help?: yes
Is this an ISSUE or FEATURE REQUEST? (choose one): issue
What version of acs-engine?: v0.12.5
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes 1.8.4
What happened: I attempted a few ways to remove an agent pool from a running k8s cluster through acs-engine/ARM utilities. Each method I tried failed.
What you expected to happen: Not really sure. I was hoping to find a process for removing an agent pool.
How to reproduce it (as minimally and precisely as possible): Method 1: Run acs-engine.exe generate with 2 agent pools; run az group deployment ... Manually remove all references from apimodel.json regarding agentpool1 (leave references to agentpool2 in place) Run asc-engine generate against _output\foo\apimodel.json; verify all references to agentpool1 were removed from all *.json files Run az group deployment ...
I received... "message": "Changing property 'osDisk.vhd.uri' is not allowed." error during ARM provisioning.
Method 2: Run acs-engine.exe generate with 2 agent pools; run az group deployment ... Run acs-engine.exe scale with --new-node-count = 0 Run az group deployment ...
acs-engine told me "FATA[0000] --new-node-count must be specified"
Anything else we need to know:
I have a use case where this capability would be appreciated.
Thanks for sharing your test methods..I was about to try those.
Hello, I have the same issue, we are going to use different agent pools for different apps, and if we remove app, agent pool must be removed also. Is there any ETA for this issue?
I found this in the docs recently: docs/kubernetes-day2-operations.md
There is a section for how to remove node pools, which is labeled tested. It recommends draining the nodes first, which wasn't mentioned in @bq1756 's methods. Maybe someone can give it a test?
@ewok2030 it may work because of you manually remove nodes from kub cluster and manually remove them from Azure portal. But I did not find any ways to remove agent pools using acs-engine automatically.
FYI - Changing the number of nodes in a pool may cause some issues later, which may be root causes for these issues: #2061 and #2560.
Basically, some operations compare the original node count to current node count to validate a scale/upgrade operation. If something unorthodox is done to the nodes or pools, it could break the validation logic.
I haven't put much thought into this; just sharing info.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. Note that acs-engine is deprecated--see https://github.com/Azure/aks-engine instead.