Pcornel
Containers · Kubernetes Networking & Services

Ingress and Gateway API

Cheat sheet · https://pcornel.dk/topic.php?topic=6149

Back to the Topic

Answer

Ingress and the Gateway API route external HTTP(S) to Services by host and path through a controller (NGINX, Traefik, cloud LBs, Envoy-based gateways), terminating TLS.

Remember

An Ingress does nothing without a controller and matching ingressClassName. Gateway API separates infrastructure (Gateway) from routes (HTTPRoute). Check controller logs for config errors.

First checks

  • kubectl get ingress,gateway,httproute -A — first check for this topic
  • kubectl get pods -o wide — pods, status, node, IP
  • kubectl describe pod <pod> — events and conditions
  • kubectl logs <pod> [-c <c>] [--previous] — container logs (incl. previous crash)
  • kubectl get events --sort-by=.lastTimestamp — recent cluster events

Commands

kubectl describe ingress

Verify in this order

client → LB → controller → route by host/path → Service → pod

Where it usually breaks

A missing or wrong ingressClassName leaves the Ingress unhandled.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6149

Confirmation

Confirm action

Continue?