Faberby FaberOps

AWS Karpenter NodeClaim Provisioning Failures

Matches Karpenter NodePool limit exhaustion, EC2NodeClass subnet or security group discovery errors, and EC2 InsufficientInstanceCapacity launch failures on Amazon EKS.

Kind
Signature
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:46f586d5

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-karpenter-provisioning-blocked \ --source oci://ghcr.io/faberops/catalog:v2

How it works

Sources

kubernetes, loki, prometheus

What it matches

Must match

  • karpenter controller: creating fleet failed with InsufficientInstanceCapacity for m7g.xlarge
  • Warning Unschedulable: NodePool general resource limit cpu=100 exceeded
  • EC2NodeClass default not ready: no subnets matched selector karpenter.sh/discovery
  • FailedScheduling: no NodePool matched pod requirements for apps/worker-0

Must not match

  • karpenter launched NodeClaim general-9k2a1 using instance type m7g.large
  • NodePool general consolidated 1 underutilized node cleanly

Signature source

signature.yamlFailureSignature33 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: aws-karpenter-provisioning-blocked
spec:
  description: Matches Karpenter NodePool limit exhaustion, EC2NodeClass subnet or security group discovery errors, and EC2
    InsufficientInstanceCapacity launch failures on Amazon EKS.
  sources:
  - kubernetes
  - loki
  - prometheus
  logPatterns:
  - creating fleet.*InsufficientInstanceCapacity
  - NodePool.*resource limit .* exceeded
  - EC2NodeClass.*no subnets matched selector
  - FailedScheduling.*no NodePool matched pod requirements
  samples:
    match:
    - 'karpenter controller: creating fleet failed with InsufficientInstanceCapacity for m7g.xlarge'
    - 'Warning Unschedulable: NodePool general resource limit cpu=100 exceeded'
    - 'EC2NodeClass default not ready: no subnets matched selector karpenter.sh/discovery'
    - 'FailedScheduling: no NodePool matched pod requirements for apps/worker-0'
    noMatch:
    - karpenter launched NodeClaim general-9k2a1 using instance type m7g.large
    - NodePool general consolidated 1 underutilized node cleanly
  kubernetes:
  - apiVersion: karpenter.sh/v1
    kind: NodeClaim
    match: has(object.status) && has(object.status.conditions) && object.status.conditions.exists(c, c.type == "Ready" &&
      c.status == "False")
  queries:
    loki: '{namespace="kube-system", app="karpenter"} |= "InsufficientInstanceCapacity" or |= "no subnets matched"'
    promql: sum by (nodepool) (increase(karpenter_nodeclaims_disrupted_total[15m])) > 5
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/aws-karpenter-provisioning-blocked. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: aws-karpenter-provisioning-blocked
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:46f586d5d0d7d27683a282092596b67d9ca42d1dd1c3cc0abaffe1040fa0a8a0

Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.