Azure kubernetes

From microsoft/skills · View interactive version

Azure kubernetes is an AI agent skill from the GitHub repository microsoft/skills. Plan, create, and configure production-ready Azure Kubernetes Service (AKS) clusters. Covers Day-0 checklist, SKU selection (Automatic vs Standard), networking options (private API server, Azure CNI Overlay, egress configuration), security, and operations (autoscaling, upgrade strategy, cost analysi

How to use this skill

Skill file

Azure Kubernetes Service

AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE

This skill produces a recommended AKS cluster configuration based on user requirements, distinguishing Day-0 decisions (networking, API server — hard to change later) from Day-1 features (can enable post-creation). See CLI reference for commands.

Quick Reference

| Property | Value |

|----------|-------|

| Best for | AKS cluster planning and Day-0 decisions |

| MCP Tools | mcp_azure_mcp_aks |

| CLI | az aks create, az aks show, kubectl get, kubectl describe |

| Related skills | azure-kubernetes-app-deploy (deploy an app to an existing cluster), azure-diagnostics (baseline AKS troubleshooting), azure-validate (readiness checks), azure-kubernetes-automatic-readiness (migrate existing cluster to AKS Automatic), optional aks-skills operations add-on (focused incident, advanced cost-efficiency, exact-signature, packet-capture, and GPU Day-2 workflows) |

When to Use This Skill

Activate this skill when user wants to:

Deploying an application to an existing cluster? This skill provisions and

configures the cluster. To containerize an app and deploy it to a cluster

that already exists (Dockerfile + manifests + Deployment Safeguards), use the

azure-kubernetes-app-deploy sub-skill instead.

Deeper operational task? Keep Day-0 planning and basic operations in this

base skill. Load optional-aks-operations.md

only when a focused optional AKS operational skill could improve the current

task.

Rules

  1. Start with the user's requirements for provisioning compute, networking, security, and other settings.
  2. Use the azure MCP server and select mcp_azure_mcp_aks first to discover the exact AKS-specific MCP tools surfaced by the client. Choose the smallest discovered AKS tool that fits the task, and fall back to Azure CLI (az aks) only when the needed functionality is not exposed through the AKS MCP surface.
  3. Determine if AKS Automatic or Standard SKU is more appropriate based on the user's need for control vs convenience. Default to AKS Automatic unless specific customizations are required.
  4. Document decisions and rationale for cluster configuration choices, especially for Day-0 decisions that are hard to change later (networking, API server access).

Required Inputs (Ask only what’s needed)

If the user is unsure, use safe defaults.

Workflow

1. Cluster Type

2. Networking (Pod IP, Egress, Ingress, Dataplane)

Pod IP Model (Key Day-0 decision):

Dataplane & Network Policy:

Egress:

Ingress:

DNS:

3. Security

4. Observability

5. Upgrades & Patching

6. Performance

7. Node Pools & Compute

when dynamic capacity fits workload demand; savings are not guaranteed.

Enable NAP for new clusters. For existing clusters, use

optional AKS operations to invoke

aks-cost-optimization when available for NAP readiness. Otherwise, continue with

base NAP readiness.

8. Reliability

9. Cost Controls

Focused AKS Cost Workflows

For a focused request, load only the relevant reference file.

| Scenario | Trigger Keywords | Reference |

|----------|-----------------|-----------|

| Pod Rightsizing | over-provisioned pods, CPU requests, memory requests, rightsize workloads | azure-aks-rightsizing.md |

| VPA Setup | vertical pod autoscaler, VPA recommendations, VPA enable | azure-aks-vpa.md |

| Cluster Autoscaler | idle nodes, CAS off, enable autoscaler, scale-down profile, node utilization | azure-aks-autoscaler.md |

| Spot Node Pools | Spot VMs, Spot nodes, batch workloads, cheaper nodes | azure-aks-spot.md |

| Advanced AKS Cost Efficiency | NAP readiness, node-pool bin packing, blocked scale-down, Kubernetes storage cost | optional AKS operations |

Disambiguation: If a prompt matches multiple rows (e.g., "cheaper nodes" could suggest both Spot and autoscaler), prefer the most specific match. If ambiguous, ask the user to clarify their intent before loading a reference file.

Comprehensive AKS Cost Review

When the user requests an overall AKS cost assessment rather than one focused

workflow, this skill owns triage and coordinates one unified review:

  1. Confirm the target subscription, resource group, and AKS cluster. If cost-analysis is available, collect one billed-cost baseline for that scope and reuse it throughout the review.
  2. Evaluate the applicable rightsizing, VPA, Cluster Autoscaler, and Spot workflows.
  3. Invoke aks-cost-optimization when available for NAP readiness, node-pool bin packing, node-scaling bottlenecks, or Kubernetes-to-Azure storage optimization.
  4. Check for stable non-Spot demand. If present, invoke cost-optimization when available for commitment analysis. If the capability or evidence is unavailable, report commitment analysis as a gap. Do not recommend a purchase from this review alone.

Investigate applicable levers and return one ranked report. Rank by comparable

estimated cost impact when available; keep unknown monetary impact unknown

rather than zero. Do not present one narrow analysis as the complete review.

Mark unavailable capabilities or evidence as gaps.

| Rank | Lever | Evidence | Estimated cost impact and basis | Risk | Approval needed | Confidence |

|---|---|---|---|---|---|---|

Guardrails / Safety

MCP Tools

| Tool | Purpose | Key Parameters |

|------|---------|----------------|

| mcp_azure_mcp_aks | AKS MCP entry point used to discover the exact AKS-specific tools exposed by the client | Discover the callable AKS tool first, then use that tool's parameters |

Error Handling

| Error / Symptom | Likely Cause | Remediation |

|-----------------|--------------|-------------|

| MCP tool call fails or times out | Invalid credentials, subscription, or AKS context | Verify az login, confirm the active subscription context with az account show, and check the target resource group without echoing subscription identifiers back to the user |

| Quota exceeded | Regional vCPU or resource limits | Request quota increase or select different region/VM SKU |

| Networking conflict (IP exhaustion) | Pod subnet too small for overlay/CNI | Re-plan IP ranges; may require cluster recreation (Day-0) |

| Workload Identity not working | Missing OIDC issuer or federated credential | Enable --enable-oidc-issuer --enable-workload-identity, configure federated identity |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.