Faberby FaberOps

GKE Autopilot Eviction and Resource Ratio Failures

Matches GKE Autopilot pod eviction events, ephemeral storage exhaustion, Spot preemption notices, and Autopilot CPU-to-memory ratio rejection messages.

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

Contract facts

Sources
2
kubernetes, 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/gke-autopilot-eviction \ --source oci://ghcr.io/faberops/catalog:v2

How it works

Sources

kubernetes, prometheus

What it matches

Must match

  • Evicted: Pod ephemeral local storage usage exceeds the total limit of containers 2Gi.
  • Warning Evicted: The node was low on resource: ephemeral-storage.
  • Error from server: GKE Warden rejected the request because ratio of memory to CPU exceeds allowed range
  • Normal Preempting: Stopping container on node with cloud.google.com/gke-spot=true

Must not match

  • Successfully pulled image europe-docker.pkg.dev/demo/app:1.2.0
  • Created container api and started successfully

Signature source

signature.yamlFailureSignature30 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: gke-autopilot-eviction
spec:
  description: Matches GKE Autopilot pod eviction events, ephemeral storage exhaustion, Spot preemption notices, and Autopilot
    CPU-to-memory ratio rejection messages.
  sources:
  - kubernetes
  - prometheus
  logPatterns:
  - Pod ephemeral local storage usage exceeds the total limit of containers
  - 'The node was low on resource: ephemeral-storage'
  - GKE Warden rejected the request.*ratio of memory to CPU
  - 'Preempting: .*cloud\.google\.com/gke-spot'
  samples:
    match:
    - 'Evicted: Pod ephemeral local storage usage exceeds the total limit of containers 2Gi.'
    - 'Warning Evicted: The node was low on resource: ephemeral-storage.'
    - 'Error from server: GKE Warden rejected the request because ratio of memory to CPU exceeds allowed range'
    - 'Normal Preempting: Stopping container on node with cloud.google.com/gke-spot=true'
    noMatch:
    - Successfully pulled image europe-docker.pkg.dev/demo/app:1.2.0
    - Created container api and started successfully
  kubernetes:
  - apiVersion: v1
    kind: Pod
    match: has(object.status) && object.status.phase == "Failed" && has(object.status.reason) && object.status.reason == "Evicted"
  queries:
    promql: sum by (namespace, pod) (increase(kube_pod_status_reason{reason="Evicted"}[15m])) > 0
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/gke-autopilot-eviction. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: gke-autopilot-eviction
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:946fec3686ad463442dcdf03eafe2edfe74fc9c291d4efbe2fcf9d6b01bff553

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