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 Serviceが<pending>のままになる(「SyncLoadBalancerFailed」、「AuthorizationFailed」)、Azure DiskまたはFilesのPVCでエラーが発生する(「ProvisioningFailed」、「volume node affinity conflict」、「Multi-Attach error」、「Mount error(13)」)、ワークロードIDのエラー(「AADSTS700016」、「AADSTS70021」)、AKSによってCoreDNSの編集が元に戻される、「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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    k8s-servantがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「K8s Aks Troubleshooting」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

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. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでK8s Aks Troubleshootingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にK8s Aks Troubleshootingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、K8s Aks Troubleshootingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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:

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「K8s Aks Troubleshooting」では何ができますか?

Azure Kubernetes Service(AKS)固有の問題に使用します。クラスターやノードプールが「Failed」状態になる、アップグレードやスケールに失敗する(「UpgradeFailed」、「violate the pod's disruption budget」、「QuotaExceeded」、「AllocationFailed」)、LoadBalancer Serviceが<pending>のままになる(「SyncLoadBalancerFailed」、「AuthorizationFailed」)、Azure DiskまたはFilesのPVCでエラーが発生する(「ProvisioningFailed」、「volume node affinity conflict」、「Multi-Attach error」、「Mount error(13)」)、ワークロードIDのエラー(「AADSTS700016」、「AADSTS70021」)、AKSによってCoreDNSの編集が元に戻される、「error dialing backend」、Azure Policyによる拒否、APIサーバーへのアクセス(許可されたIP範囲、プライベートクラスター、kubelogin、「User does not have access to the resource in Azure」)に対...

TypingMindでK8s Aks Troubleshootingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。K8s Aks Troubleshootingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにK8s Aks Troubleshootingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-aks-troubleshootingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

K8s Aks Troubleshootingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

K8s Aks Troubleshootingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもK8s Aks Troubleshootingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「K8s Aks Troubleshooting」は無料ですか?

はい。k8s-servantがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇