AWS EKS VPC CNI IP and ENI Starvation
Matches AWS VPC CNI aws-node ipamd ENI attachment failures, subnet InsufficientFreeAddressesInSubnet errors, and pod sandbox IP assignment timeouts on Amazon EKS.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:17de200c
Contract facts
- Sources
- 3
- kubernetes, loki, prometheus
- Log patterns
- 4
- RE2, replayed in CI
- Kubernetes matchers
- 1
- CEL on live objects
- Samples
- 4 and 2
- must match and must not
Inspect it
Inspect the contract and RBAC delta
$ faberctl catalog inspect signatures/aws-eks-vpc-cni-ip-starvation \ --source oci://ghcr.io/faberops/catalog:v2How it works
Sources
kubernetes, loki, prometheus
What it matches
Must match
- FailedCreatePodSandBox: failed to assign an IP address to container via aws-cni
- aws-node ipamd error: InsufficientFreeAddressesInSubnet in subnet-0123456789abcdef0
- aws-node ipamd: unable to allocate IPv4 address from warm pool on node ip-10-0-12-44
- EC2 AttachNetworkInterface failed: AttachmentLimitExceeded for network interface
Must not match
- aws-node ipamd initialized prefix delegation with 32 warm IPv4 addresses
- Successfully assigned apps/checkout-7f8b to node ip-10-0-12-44
Signature source
signature.yamlFailureSignature34 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: aws-eks-vpc-cni-ip-starvation
spec:
description: Matches AWS VPC CNI aws-node ipamd ENI attachment failures, subnet InsufficientFreeAddressesInSubnet errors,
and pod sandbox IP assignment timeouts on Amazon EKS.
sources:
- kubernetes
- loki
- prometheus
logPatterns:
- InsufficientFreeAddressesInSubnet
- failed to assign an IP address to container
- aws-node.*unable to allocate IPv4 address from warm pool
- AttachmentLimitExceeded.*network interface
samples:
match:
- 'FailedCreatePodSandBox: failed to assign an IP address to container via aws-cni'
- 'aws-node ipamd error: InsufficientFreeAddressesInSubnet in subnet-0123456789abcdef0'
- 'aws-node ipamd: unable to allocate IPv4 address from warm pool on node ip-10-0-12-44'
- 'EC2 AttachNetworkInterface failed: AttachmentLimitExceeded for network interface'
noMatch:
- aws-node ipamd initialized prefix delegation with 32 warm IPv4 addresses
- Successfully assigned apps/checkout-7f8b to node ip-10-0-12-44
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", app="aws-node"} |= "InsufficientFreeAddressesInSubnet" or |= "failed to assign an IP
address"'
promql: sum by (instance) (awscni_total_ip_addresses - awscni_assigned_ip_addresses) < 2
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/aws-eks-vpc-cni-ip-starvation. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: aws-eks-vpc-cni-ip-starvation
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:17de200cff51b8d048dbb2b15da2eb796123fe67fe205acb7ba6a451de393557
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 packsAWS EKS VPC CNI Prefix Delegation and IP Exhaustion Remediator
playbooks/aws-eks-vpc-cni-ip-exhaustionAudits Amazon EKS VPC CNI aws-node configuration and ENIConfig custom networking manifests for disabled IPv4 prefix delegation or excessive warm IP hoarding, opening small HITL GitOps pull requests to prevent subnet IP exhaustion.Default HITLCeiling HITLAWS EKS Add-on and Minor Upgrade Readiness Auditor
playbooks/aws-eks-addon-upgrade-readinessRead-only audit ahead of Amazon EKS minor version upgrades checking VPC CNI, CoreDNS, kube-proxy, EBS CSI, and Pod Identity Agent DaemonSet/Deployment health, zero-disruption PDBs, and admission webhook blockers.Default ObserveCeiling AutoAWS Load Balancer Controller ALB Hardener
playbooks/aws-eks-alb-gateway-hardeningAudits AWS Load Balancer Controller Ingress and TargetGroupBinding resources for weak TLS policies, missing WAFv2 ACL attachment, insecure HTTP listeners without SSL redirect, and missing deregistration delay tuning, opening small HITL GitOps pull requests.Default HITLCeiling HITL