Логотип K8s Aks Troubleshooting

K8s Aks Troubleshooting

Організація
k8s-servant
k8s-aks-troubleshooting

Використовуйте, коли проблема стосується саме Azure Kubernetes Service (AKS): кластер або пул вузлів у стані "Failed"; помилка під час оновлення чи масштабування ("UpgradeFailed", "violate the pod's disruption budget", "QuotaExceeded", "AllocationFailed"); служба LoadBalancer зависла зі статусом <pending> ("SyncLoadBalancerFailed", "AuthorizationFailed"); помилка з PVC для Azure Disk або Files ("ProvisioningFailed", "volume node affinity conflict", "Multi-Attach error", "Mount error(13)"); помилки ідентичності робочого навантаження ("AADSTS700016", "AADSTS70021"); зміни CoreDNS, які AKS скасовує; "error dialing backend"; відмови Azure Policy; або проблеми з доступом до API-сервера (авторизовані діапазони IP-адрес, приватні кластери, kubelogin, "User does not have access to the resource in Azure"). Проводить діагностику за допомогою kubectl і команд az лише для читання та пропонує виправлення. Спочатку аналізує ситуацію й запитує дозвіл, перш ніж щось змінювати.

Огляд

Видавецьk8s-servant
Репозиторійk8s-skills
Назва навичкиk8s-aks-troubleshooting
Зірки
36
Форки
7
Файли в пакеті
4
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: k8s-servant. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ K8s Aks Troubleshooting у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-aks-troubleshooting
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-aks-troubleshooting .claude/skills/k8s-aks-troubleshooting
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку K8s Aks Troubleshooting в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку K8s Aks Troubleshooting, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка K8s Aks Troubleshooting не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

AKS troubleshooting

Find out why something that depends on Azure fails in an AKS cluster, and propose a fix. Read first, ask before changing. Run the investigation commands freely: kubectl reads and the read-only az commands below (show, list, get). Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user. Every az change (update, upgrade, role assignments, anything that writes) is a proposed fix.

An AKS cluster lives in two places. Kubernetes objects are in the cluster; the cluster itself, its node pools (virtual machine scale sets), load balancers, public IPs, disks and identities are Azure resources. The cluster resource is in the user's resource group; the resources AKS manages for it are in a separate node resource group (by default MC_<resource group>_<cluster>_<region>). Many AKS failures show in Kubernetes only as a short event, while the real error is in Azure: in the cluster's provisioningState, in the latest operation, or in the activity log.

The commands use placeholders: my-resource-group and my-cluster (the cluster), my-node-resource-group, my-nodepool, my-namespace, my-app, my-pvc, my-pod, my-node and my-identity. Replace them with the real names. The az commands need an Azure CLI login (az account show tells which subscription it uses). Never read Secrets, and do not print tokens, keys or client secrets from any source.

When to use

  • The cluster or a node pool shows Failed, or an upgrade, scale or update failed.
  • A LoadBalancer Service has no EXTERNAL-IP, or traffic through it fails.
  • A PVC on an Azure Disk or Azure Files class stays Pending, or a pod cannot mount it.
  • A pod using workload identity cannot get an Azure token.
  • A change to the coredns ConfigMap disappears, kubectl logs or exec fail with error dialing backend, or Azure Policy denies a pod.
  • kubectl cannot reach or log in to the cluster.

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • A pod that crashes for its own reasons (its logs, probes, OOMKilled): k8s-workload-troubleshooting. A node that is NotReady or full, or pods that do not fit: k8s-node-troubleshooting.
  • A PVC problem that is not about Azure (no StorageClass, access modes, a full volume): k8s-storage-troubleshooting.
  • A Service with no endpoints, or a NetworkPolicy: k8s-network-troubleshooting. The Corefile itself: k8s-coredns-troubleshooting.
  • A Forbidden that comes from Kubernetes RBAC (no Azure suffix): k8s-rbac-troubleshooting. Webhook or admission errors that are not Azure Policy: k8s-api-troubleshooting; Gatekeeper constraints themselves: k8s-gatekeeper-troubleshooting.
  • Before an upgrade, a check of everything in the cluster that would block or break it (PDBs, unmanaged pods, webhooks, deprecated APIs, add-ons): k8s-upgrade-readiness.

Investigate

1. Find the cluster and its state. If the user did not name it, list the clusters the login can see, then read the one in question:

bash
az aks list -o table
az aks show -g my-resource-group -n my-cluster --query "{state:provisioningState, power:powerState.code, version:kubernetesVersion, nodeResourceGroup:nodeResourceGroup, network:networkProfile.networkPlugin, networkMode:networkProfile.networkPluginMode, outbound:networkProfile.outboundType, private:apiServerAccessProfile.enablePrivateCluster, authorizedIpRanges:apiServerAccessProfile.authorizedIpRanges, azureRbac:aadProfile.enableAzureRbac, localAccountsDisabled:disableLocalAccounts, oidcIssuer:oidcIssuerProfile.issuerUrl, workloadIdentity:securityProfile.workloadIdentity.enabled}" -o json

2. Node pools and recent operations. A Failed state is about the last operation, not the running workloads:

bash
az aks nodepool list -g my-resource-group --cluster-name my-cluster --query "[].{name:name, mode:mode, state:provisioningState, power:powerState.code, count:count, min:minCount, max:maxCount, autoscale:enableAutoScaling, vmSize:vmSize, zones:availabilityZones, version:currentOrchestratorVersion, maxSurge:upgradeSettings.maxSurge}" -o table
az monitor activity-log list -g my-resource-group --offset 3d --status Failed --query "[].{time:eventTimestamp, operation:operationName.value, status:status.value, message:properties.statusMessage}" -o json
az aks operation show-latest -g my-resource-group -n my-cluster

az aks operation show-latest needs the aks-preview extension; if it is missing, the activity log has the same error.

3. The Kubernetes side.

bash
kubectl get nodes -L kubernetes.azure.com/agentpool,topology.kubernetes.io/zone,node.kubernetes.io/instance-type
kubectl events -A --types=Warning
kubectl get pods -n kube-system -o wide

4. Follow the symptom to its reference, which has the commands for that area:

SymptomRead
Cluster or node pool Failed, upgrade or scale errors, quota and VM capacity, autoscaler, node auto-repair, versionsreferences/nodepools-upgrades.md
LoadBalancer Service <pending> or unreachable, SyncLoadBalancerFailed, static IPs, internal load balancers, health probes, SNATreferences/load-balancers.md
Azure Disk or Azure Files PVC Pending or not mounting, zones, attach limits; workload identity and AADSTS errorsreferences/storage-identity.md
CoreDNS customization, error dialing backend, Azure Policy, other managed add-ons; API server reachability, Entra ID login, Azure RBACreferences/addons-access.md

Read the results

  • provisioningState is Failed while nodes and pods run normally: the last Azure operation on the cluster failed; the cluster itself usually keeps working. The activity log's statusMessage names the cause, often nested: an outer code such as ResourceOperationFailure, UpgradeVMSSAgentPoolFailed or CreateOrUpdateExtensionFailed wraps the real one in details. Update failed for this resource, as there is a conflicting operation in progress means two operations overlapped (for example an add-on update during a scale); nothing else needs fixing. Fix the real cause first, then reconcile the cluster (see Proposed fix). A reconcile does not fix an unresolved quota, policy, network or capacity error.
  • (UpgradeFailed) Drain node ... failed when evicting pod ... Cannot evict pod as it would violate the pod's disruption budget: a PodDisruptionBudget allows 0 disruptions; see references/nodepools-upgrades.md.
  • QuotaExceeded, AllocationFailed, ZonalAllocationFailed, SkuNotAvailable: Azure could not create the virtual machines, the subscription's quota or the region's capacity, not Kubernetes.
  • A LoadBalancer Service stays <pending> with SyncLoadBalancerFailed: the event's message is the Azure error from the cloud provider. AuthorizationFailed ... does not have authorization to perform action 'Microsoft.Network/virtualNetworks/subnets/read' over scope '.../subnets/my-subnet' or the scope is invalid on an internal load balancer usually means that subnet does not exist (a typo in azure-load-balancer-internal-subnet): the cluster identity can read only the subnets it was granted, so a missing one looks like missing permission. Check the subnet exists before granting any role.
  • A PVC Pending with ProvisioningFailed ... RESPONSE 400 ... InvalidParameter: Azure refused the disk itself, for example The value 40960 of parameter 'disk.diskSizeGb' is out of range. The value must be between '1' and '32767', inclusive. (an Azure Disk is at most 32 TiB). The message after ERROR CODE is Azure's; the rest is the CSI driver.
  • A workload identity pod logs AADSTS700016: Application with identifier '<client ID>' was not found in the directory: the client ID in the ServiceAccount annotation azure.workload.identity/client-id belongs to no identity in that tenant. AADSTS70021: No matching federated identity record found for presented assertion: the identity exists, but no federated credential matches the token's issuer and subject (system:serviceaccount:my-namespace:my-app). See references/storage-identity.md.
  • Error from server: error dialing backend: dial tcp <node ip>:10250: i/o timeout on kubectl logs or exec, while get works: the API server cannot reach the kubelet through the konnectivity tunnel; see references/addons-access.md.
  • ... User does not have access to the resource in Azure. Update role assignment to allow access.: the cluster uses Azure RBAC for Kubernetes, and the caller's Azure role assignments, not Kubernetes RoleBindings, decide.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Every change to an Azure resource is a proposed fix the user runs; make it in the cluster's source of truth (Bicep, Terraform, ARM templates, a pipeline) when there is one, since a later deployment would undo a change made by hand. Kubernetes objects such as Services, PVCs and ServiceAccounts belong in the workload's manifests or chart.

After the cause of a Failed state is fixed, a reconcile re-applies the cluster's current configuration without changing it:

Proposed fix: review before running. The agent does not run this.

bash
az aks update -g my-resource-group -n my-cluster --yes
# Undo: none needed; it re-applies the existing configuration

For a node pool in Failed:

Proposed fix: review before running. The agent does not run this.

bash
az aks nodepool update -g my-resource-group --cluster-name my-cluster -n my-nodepool
# Undo: none needed; it re-applies the existing node pool configuration

Never start another operation while one is still running (az aks operation show-latest shows InProgress), and never edit the scale sets, load balancers or disks in the node resource group by hand: AKS owns them, reverts such changes, and they are not supported. The fixes for each area, with their undo, are in the references.

Sources

Checked against AKS with Kubernetes 1.33 (a private cluster with Azure CNI, Entra ID and Azure RBAC, workload identity and the Azure Policy add-on) and the Microsoft Learn pages below, as of October 2026:

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ K8s Aks Troubleshooting?

Використовуйте, коли проблема стосується саме Azure Kubernetes Service (AKS): кластер або пул вузлів у стані "Failed"; помилка під час оновлення чи масштабування ("UpgradeFailed", "violate the pod's disruption budget", "QuotaExceeded", "AllocationFailed"); служба LoadBalancer зависла зі статусом <pending> ("SyncLoadBalancerFailed", "AuthorizationFailed"); помилка з PVC для Azure Disk або Files ("ProvisioningFailed", "volume node affinity conflict", "Multi-Attach error", "Mount error(13)"); помилки ідентичності робочого навантаження ("AADSTS700016", "AADSTS70021"); зміни CoreDNS, які AKS ска...

Навіщо використовувати K8s Aks Troubleshooting у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. K8s Aks Troubleshooting — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити K8s Aks Troubleshooting у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-aks-troubleshooting. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати K8s Aks Troubleshooting?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати K8s Aks Troubleshooting?

Зі скількома забажаєте. У TypingMind ви можете використовувати K8s Aks Troubleshooting із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ K8s Aks Troubleshooting?

Так. На GitHub цю навичку публікує k8s-servant за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип affaan-m

Docker Patterns

affaan-m
СпільнотаПопулярне

Шаблони Docker і Docker Compose для локальної розробки, безпеки контейнерів, мережевої взаємодії, стратегій роботи з томами та оркестрації кількох сервісів.

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Architecture Decision Records

affaan-m
СпільнотаПопулярне

Під час сеансів програмування фіксує архітектурні рішення у структурованих ADR, автоматично виявляючи моменти ухвалення рішень і записуючи контекст, розглянуті альтернативи та обґрунтування. Веде журнал ADR, щоб майбутні розробники розуміли, як формувалася кодова база.

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Automation Audit Ops

affaan-m
СпільнотаПопулярне

Робочий процес для доказового обліку автоматизації ECC та аудиту дублювання. Використовуйте, коли потрібно з’ясувати, які завдання, хуки, конектори, MCP-сервери або обгортки працюють, зламані, дублюються чи відсутні, перш ніж щось виправляти.

39.1K
261.1K
Інструкції
Відкрити
Логотип NousResearch

Grok

NousResearch
ОрганізаціяПопулярне

Delegate coding to xAI Grok Build CLI (features, PRs).

53.5K
250.4K
Інструкції
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇