Faberby FaberOps

AWS Load Balancer Controller Target Health and 5xx Failures

Matches AWS Load Balancer Controller TargetGroupBinding reconciliation errors, unhealthy ALB target groups, WAF attachment errors, and HTTP 502/503/504 spikes on Amazon EKS.

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

Contract facts

Sources
3
kubernetes, prometheus, loki
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/aws-alb-target-health-5xx \ --source oci://ghcr.io/faberops/catalog:v2

How it works

Sources

kubernetes, prometheus, loki

What it matches

Must match

  • controller error: TargetGroupBinding edge/api-tgb failed to reconcile target group
  • Warning FailedBuildModel: invalid wafv2-acl-arn annotation on Ingress edge/api
  • ALB target group api-tg reported Target.FailedHealthChecks for 2 registered pods

Must not match

  • Successfully reconciled Ingress edge/api with ALB k8s-edge-api
  • ALB target group api-tg healthy host count is 4

Signature source

signature.yamlFailureSignature32 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: aws-alb-target-health-5xx
spec:
  description: Matches AWS Load Balancer Controller TargetGroupBinding reconciliation errors, unhealthy ALB target groups,
    WAF attachment errors, and HTTP 502/503/504 spikes on Amazon EKS.
  sources:
  - kubernetes
  - prometheus
  - loki
  logPatterns:
  - TargetGroupBinding.*failed to reconcile target group
  - FailedBuildModel.*wafv2-acl-arn
  - HTTPCode_ELB_5XX_Count|Target\.FailedHealthChecks
  samples:
    match:
    - 'controller error: TargetGroupBinding edge/api-tgb failed to reconcile target group'
    - 'Warning FailedBuildModel: invalid wafv2-acl-arn annotation on Ingress edge/api'
    - ALB target group api-tg reported Target.FailedHealthChecks for 2 registered pods
    noMatch:
    - Successfully reconciled Ingress edge/api with ALB k8s-edge-api
    - ALB target group api-tg healthy host count is 4
  kubernetes:
  - apiVersion: networking.k8s.io/v1
    kind: Ingress
    match: has(object.metadata.annotations) && ("kubernetes.io/ingress.class" in object.metadata.annotations || (has(object.spec.ingressClassName)
      && object.spec.ingressClassName == "alb")) && (!has(object.status) || !has(object.status.loadBalancer) || !has(object.status.loadBalancer.ingress)
      || size(object.status.loadBalancer.ingress) == 0)
  queries:
    loki: '{namespace="kube-system", app="aws-load-balancer-controller"} |= "FailedBuildModel" or |= "failed to reconcile"'
    promql: sum by (target_group) (rate(aws_applicationelb_httpcode_elb_5xx_count_sum[5m])) > 1
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/aws-alb-target-health-5xx. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: aws-alb-target-health-5xx
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:d2a72914208c570bb44741b0481898d7e0de128d64a564fc5043bfdfd1b69acd

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