{
  "id": "cloud/azure-aks-pod-creation-pending-no-ip",
  "signature": "Warning FailedCreatePodSandBox: Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container \"\" network for pod \"my-pod\": networkPlugin cni failed to set up pod \"my-pod_default\" network: no IP addresses available in network",
  "signature_zh": "警告 FailedCreatePodSandBox：创建Pod沙箱失败：rpc错误：代码=未知 描述=无法为Pod设置沙箱容器\"\"网络：networkPlugin cni无法为Pod \"my-pod_default\"设置网络：网络中没有可用IP地址",
  "regex": "no IP addresses available in network",
  "domain": "cloud",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "Azure Kubernetes Service (AKS) node pool has exhausted its subnet IP address range, preventing new pods from being assigned IP addresses.",
  "root_cause_type": "generic",
  "root_cause_zh": "Azure Kubernetes Service (AKS)节点池已耗尽子网IP地址范围，阻止新Pod分配IP地址。",
  "versions": [
    {
      "version": "AKS 1.26",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AKS 1.27",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Azure CNI",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restart the AKS cluster",
      "why_fails": "Restarting does not free up IP addresses; the subnet is still full.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Scale down the node pool to reduce node count",
      "why_fails": "Scaling down reduces nodes but does not reclaim IPs from existing pods. Pod IPs remain allocated until pods are deleted.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase the subnet size by adding a new subnet and updating the AKS cluster to use it. First, create a new subnet: `az network vnet subnet create --resource-group my-rg --vnet-name my-vnet --name new-subnet --address-prefixes 10.0.1.0/24` Then update the node pool: `az aks nodepool update --resource-group my-rg --cluster-name my-cluster --name my-nodepool --vnet-subnet-id /subscriptions/.../subnets/new-subnet`",
      "success_rate": 0.9,
      "how": "Increase the subnet size by adding a new subnet and updating the AKS cluster to use it. First, create a new subnet: `az network vnet subnet create --resource-group my-rg --vnet-name my-vnet --name new-subnet --address-prefixes 10.0.1.0/24` Then update the node pool: `az aks nodepool update --resource-group my-rg --cluster-name my-cluster --name my-nodepool --vnet-subnet-id /subscriptions/.../subnets/new-subnet`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Delete unused pods to free IPs. Use `kubectl delete pod <pod-name>` for non-critical pods. Then monitor with `kubectl get pods -o wide` to see IP reclamation.",
      "success_rate": 0.7,
      "how": "Delete unused pods to free IPs. Use `kubectl delete pod <pod-name>` for non-critical pods. Then monitor with `kubectl get pods -o wide` to see IP reclamation.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Increase the subnet size by adding a new subnet and updating the AKS cluster to use it. First, create a new subnet: `az network vnet subnet create --resource-group my-rg --vnet-name my-vnet --name new-subnet --address-prefixes 10.0.1.0/24` Then update the node pool: `az aks nodepool update --resource-group my-rg --cluster-name my-cluster --name my-nodepool --vnet-subnet-id /subscriptions/.../subnets/new-subnet`",
    "Delete unused pods to free IPs. Use `kubectl delete pod <pod-name>` for non-critical pods. Then monitor with `kubectl get pods -o wide` to see IP reclamation."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://learn.microsoft.com/en-us/azure/aks/use-multiple-node-pools",
  "official_doc_section": null,
  "error_code": "FailedCreatePodSandBox",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-09-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}