Faberby FaberOps

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:v2

How 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.