Azure AKS CNI Subnet IP Exhaustion
Matches Azure CNI and Azure CNI Overlay pod IP allocation failures, CNS No available IPs in pool errors, and AKS virtual network subnet exhaustion events.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:4efa27a0
Contract facts
- Sources
- 3
- kubernetes, loki, prometheus
- Log patterns
- 3
- RE2, replayed in CI
- Kubernetes matchers
- 1
- CEL on live objects
- Samples
- 3 and 2
- must match and must not
Inspect it
Inspect the contract and RBAC delta
$ faberctl catalog inspect signatures/azure-aks-cni-subnet-exhausted \ --source oci://ghcr.io/faberops/catalog:v2How it works
Sources
kubernetes, loki, prometheus
What it matches
Must match
- azure-cns error: No available IPs in pool for pod apps/checkout-6b7c
- Warning FailedCreatePodSandBox: failed to allocate IP from Azure CNI plugin
- AKS node pool scale failed: SubnetIsFull in subnet aks-pods-subnet
Must not match
- azure-cns allocated pod IP 10.244.1.24 from Azure CNI Overlay pool
- Node aks-userpool-12345-vmss000001 Ready with 110 allocatable pods
Signature source
signature.yamlFailureSignature31 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: azure-aks-cni-subnet-exhausted
spec:
description: Matches Azure CNI and Azure CNI Overlay pod IP allocation failures, CNS No available IPs in pool errors, and
AKS virtual network subnet exhaustion events.
sources:
- kubernetes
- loki
- prometheus
logPatterns:
- azure-cns.*No available IPs in pool
- FailedCreatePodSandBox.*failed to allocate IP from Azure CNI
- SubnetIsFull|InsufficientSubnetAddressSpace
samples:
match:
- 'azure-cns error: No available IPs in pool for pod apps/checkout-6b7c'
- 'Warning FailedCreatePodSandBox: failed to allocate IP from Azure CNI plugin'
- 'AKS node pool scale failed: SubnetIsFull in subnet aks-pods-subnet'
noMatch:
- azure-cns allocated pod IP 10.244.1.24 from Azure CNI Overlay pool
- Node aks-userpool-12345-vmss000001 Ready with 110 allocatable pods
kubernetes:
- apiVersion: v1
kind: Pod
match: has(object.status) && object.status.phase == "Pending" && has(object.status.conditions) && object.status.conditions.exists(c,
c.type == "PodScheduled" && c.status == "True")
queries:
loki: '{namespace="kube-system", k8s_app="azure-cns"} |= "No available IPs" or |= "SubnetIsFull"'
promql: sum by (node) (azure_cns_allocated_ips) / clamp_min(sum by (node) (azure_cns_available_ips), 1) > 0.9
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/azure-aks-cni-subnet-exhausted. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: azure-aks-cni-subnet-exhausted
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:4efa27a0e94c75079fc9991e235a00e9a06dbfaba3e891495e7aa535bb896476
Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.
Related packs
All 176 packsAzure Application Gateway for Containers Hardener
playbooks/azure-aks-agfc-gateway-hardeningAudits Azure Application Gateway for Containers (AGFC) Gateway API Gateways, ApplicationLoadBalancer, and BackendTLSPolicy resources for missing end-to-end backend TLS, missing WAF policy references, or unready listeners, opening small HITL GitOps pull requests.Default HITLCeiling HITLAWS EKS VPC CNI IP and ENI Starvation
signatures/aws-eks-vpc-cni-ip-starvationMatches AWS VPC CNI aws-node ipamd ENI attachment failures, subnet InsufficientFreeAddressesInSubnet errors, and pod sandbox IP assignment timeouts on Amazon EKS.Log patterns 4Sources 3Azure AKS Workload Identity Federation Token Failures
signatures/azure-aks-workload-identity-token-failMatches Microsoft Entra ID federated identity credential mismatch errors, AADSTS70021 token exchange rejections, and missing azure.workload.identity/client-id annotations on Azure Kubernetes Service.Log patterns 3Sources 3