pauldotyu/aks-skills/aks-nodepool-management

Claude Code and agent skill by pauldotyu/aks-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Ensure a dedicated User (worker) node pool exists and migrate application workloads off the System node pool. Use when Azure Advisor recommends "Create a dedicated system node pool", when adding User-mode node pools (az aks nodepool add --mode User), when tainting the system pool with CriticalAddonsOnly and restarting workloads to migrate them to a worker pool, or when scaling/updating existing node pools.

Install

npx vskill@latest install pauldotyu/aks-skills/aks-nodepool-management

SKILL.md

The same SKILL.md was published earlier as pauldotyu/aks-skills/aks-nodepool-management.

AKS Node Pool Management

Create User-mode worker node pools, migrate application workloads off System node pools, and enforce workload isolation following AKS best practices.

Why? Azure Advisor recommends "Create a dedicated system node pool" when a cluster has only a single System-mode pool. The fix is to add a User-mode worker pool and move application pods to it, keeping the system pool reserved for kube-system components.
Related skills: For cluster provisioning, upgrades, and lifecycle, see aks-cluster-management. For networking (CNI, ingress, load balancers), see aks-networking. For pod/node diagnostics, see aks-troubleshooting. For monitoring, see aks-monitoring.

Prerequisites

  • Azure CLI installed (az --version)
  • Logged in to Azure (az login or a service principal / managed identity)
  • kubectl configured for the target cluster (az aks get-credentials)
  • Sufficient VM core quota in the target region for the new node pool

Preconditions & Safety

  • Perform in a maintenance window or non-production cluster first.
  • Make one change at a time and verify before proceeding.
  • Ensure at least one healthy worker pool exists before tainting the system pool or scaling it down.

Step 1 — Discover Current Node Pools

Run read-only discovery and capture current state before any change:

bash
# List node pools and check the "mode" column
az aks nodepool list \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
-o table
# If any pool already has Mode=User, you may not need to add one
# Capture state for rollback reference
az aks nodepool list \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
-o json > nodepools-backup.json
kubectl get nodes -o wide > nodes-backup.txt
kubectl get pods --all-namespaces -o wide > pods-backup.txt

Step 2 — Create a Worker (User) Node Pool

Without autoscaler
bash
az aks nodepool add \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name worker \
--node-count 3 \
--node-vm-size Standard_D2s_v3 \
--mode User \
--labels nodepool=worker
With autoscaler (recommended for production)
bash
az aks nodepool add \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name worker \
--node-count 3 \
--node-vm-size Standard_D2s_v3 \
--mode User \
--enable-cluster-autoscaler \
--min-count 1 \
--max-count 5 \
--labels nodepool=worker

See ./scripts/create-nodepool.sh for an interactive wrapper script.

Verify new nodes become Ready
bash
kubectl get nodes -l agentpool=worker -o wide
# Wait until all worker nodes show STATUS=Ready

Step 3 — Taint the System Pool

Taint the system pool so that user workloads cannot schedule there. AKS system pods already tolerate CriticalAddonsOnly, so they are unaffected.

bash
az aks nodepool update \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name <system-pool-name> \
--node-taints CriticalAddonsOnly=true:NoSchedule
Why `az aks nodepool update` instead of `kubectl taint`? Setting taints via the AKS API ensures every node that joins the pool (e.g., during scale-out or upgrades) automatically receives the taint. kubectl taint only affects nodes that exist right now.

Once the taint is applied, existing pods on the system pool continue running — they are not evicted immediately. The next step triggers rescheduling.

Step 4 — Migrate Workloads Off the System Pool

Restart application Deployments so their pods are rescheduled. Because the system pool now has a NoSchedule taint that application pods don't tolerate, the scheduler places them on the worker pool automatically:

bash
# Restart a specific deployment
kubectl rollout restart deployment/<deployment-name> -n <namespace>
# Or restart all deployments in a namespace
kubectl rollout restart deployment -n <namespace>
bash
# Verify pods moved to the worker pool
kubectl get pods -n <namespace> -o wide

No manifest changes required — the taint from Step 3 does the scheduling work.

Step 5 — (Optional) Enable Autoscaling on the System Pool

bash
az aks nodepool update \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name <system-pool-name> \
--enable-cluster-autoscaler \
--min-count 1 \
--max-count 3

Step 6 — Post-Change Verification

bash
# Application pods should appear on worker pool
kubectl get pods -A -o wide | grep worker
# System pool should have primarily kube-system pods
kubectl get pods -A -o wide | grep <system-pool-name>
# Check node health
kubectl get nodes -o wide
kubectl top nodes
# Check all pods are running
kubectl get pods -A --field-selector='status.phase!=Running,status.phase!=Succeeded'

Rollback

If problems occur:

bash
# 1. Remove the taint from the system pool to allow workloads back
az aks nodepool update \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name <system-pool-name> \
--node-taints ""
# 2. Restart affected deployments to rebalance pods
kubectl rollout restart deployment/<deployment-name> -n <namespace>
# 3. Scale worker pool if more capacity is needed
az aks nodepool scale \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name worker \
--node-count <desired-count>
# 4. Delete the worker pool entirely (only if empty of workloads)
az aks nodepool delete \
--resource-group <resource-group> \
--cluster-name <cluster-name> \
--name worker

Common Errors

ErrorCauseFix
QuotaExceededVM core quota reached in the regionRequest a quota increase under Subscriptions > Usage + quotas
SubnetIsFullNo IPs available for new nodes (Azure CNI)Expand the subnet or switch to Azure CNI Overlay
Pods stuck in Pending after taintNo worker nodes available or matching tolerations missingVerify worker pool is Ready (kubectl get nodes) and check pod events with kubectl describe pod

Scripts

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/pauldotyu/aks-skills/aks-nodepool-management/badge)](https://verified-skill.com/skills/pauldotyu/aks-skills/aks-nodepool-management)

Something wrong with this skill or its page? Tell us.