Index of every page on this site: llms.txt
All skills
microsoft avatar

/aks-troubleshooting

@147c081 official
Run it yourself

Debug live Azure Kubernetes Service (AKS) incidents with a read-only, evidence-first investigation. WHEN: pod crashes or Pending, CrashLoopBackOff, OOMKilled, ImagePullBackOff, node NotReady, DNS or ingress failure, connectivity timeout, network policy, SNAT exhaustion, node-pool scaling blocked by QuotaExceeded or InsufficientVCPUQuota, upgrade stuck, spot or zone disruption, a bare VMExtensionProvisioningError or AllocationFailed wrapper, an uncataloged capacity symptom, or 'investigate my AKS cluster'. DO NOT USE FOR: packet capture (use aks-network-capture); GPU or model-serving issues (use aks-gpu-inference); cluster creation or provisioning (use azure-kubernetes); cost (use cost-analysis from the optional azure-cost plugin); pod rightsizing (use azure-kubernetes); a fully qualified documented AKS signature with every required nested qualifier (use aks-known-issues); standalone failures on non-AKS Azure resources (use azure-diagnostics). Unqualified errors and open-ended incidents stay here only for AKS.

Use this Skill: https://skilld.dev/gh/microsoft/github-copilot-for-azure/aks-troubleshooting

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

spot-and-zone-issues.md

≈652 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Spot And Zone Issues

Use this guide when workload placement, evictions, or zonal behavior is causing node-pool instability.

Spot Node Pool Evictions

AKS spot nodes use Azure Spot VMs - they can be evicted with 30 seconds notice when Azure needs capacity.

Diagnose spot eviction:

# Spot nodes carry this taint automatically
kubectl describe node <node> | grep "Taint"
# kubernetes.azure.com/scalesetpriority=spot:NoSchedule

# Check eviction events
kubectl get events -A --field-selector reason=SpotEviction
kubectl get events -A | grep -i "evict\|spot\|preempt"

Spot workload pattern: pods must tolerate the spot taint. Prefer PDBs and avoid stateful PVC workloads on spot.

tolerations:
  - key: "kubernetes.azure.com/scalesetpriority"
    operator: Equal
    value: spot
    effect: NoSchedule

Add this preferred node affinity when you want the workload to bias toward spot nodes:

affinity:
  nodeAffinity:
    preferredDuringSchedulingIgnoredDuringExecution:
      - weight: 1
        preference:
          matchExpressions:
            - key: kubernetes.azure.com/scalesetpriority
              operator: In
              values: ["spot"]

Multi-AZ Node Pool & Zone-Related Failures

Check zone distribution:

kubectl get nodes -L topology.kubernetes.io/zone

Zone-related failure patterns:

Symptom Cause Fix
Pods stack on one zone after node failures Scheduling imbalance after zone failure kubectl rollout restart deployment/<n> to rebalance
PVC pending with volume node affinity conflict Azure Disk is zonal; pod scheduled in different zone Use ZRS storage class or ensure PVC and pod are in same zone
Service endpoints unreachable from one zone Topology-aware routing misconfigured Check service.spec.trafficDistribution or TopologyKeys
Upgrade causing zone imbalance Surge nodes in one zone Configure maxSurge in node pool upgrade settings

Use Premium_ZRS or StandardSSD_ZRS in custom StorageClasses to reduce zonal PVC conflicts. See AKS storage best practices.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides a robust and security-conscious framework for troubleshooting Azure Kubernetes Service (AKS) clusters. It includes several proactive safety measures, such as log redaction and explicit instructions to disregard untrusted data found in cluster telemetry. While it facilitates deep diagnostics using privileged containers, these operations are transparently documented and gated by user approval requirements.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 147c081. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "0.0.0-placeholder"
}

README badge

README badge for microsoft/github-copilot-for-azure/aks-troubleshooting