Skip to main content

KA-X002: Ingress references undefined Service

Warning Cross-Resource

Why This Matters

An Ingress backend must reference a Service that exists in the same namespace. If the Service is missing, the Ingress controller will return 503 Service Unavailable for all matching requests.

How to Fix

Add the missing Service to the manifest or correct the service name

Before (incorrect)

apiVersion: networking.k8s.io/v1
kind: Ingress
spec:
  rules:
    - http:
        paths:
          - backend:
              service:
                name: missing-svc

After (correct)

apiVersion: networking.k8s.io/v1
kind: Ingress
spec:
  rules:
    - http:
        paths:
          - backend:
              service:
                name: my-svc
---
apiVersion: v1
kind: Service
metadata:
  name: my-svc

Rule Details

Rule Code
KA-X002
Severity
Warning
Category
Cross-Resource

Related Rules