List ingressclasses and default ingress-nginx
Show controllers and which IngressClass is default; only one should be marked default
kubectl get ingressclass -o custom-columns='NAME:.metadata.name,DEFAULT:.metadata.annotations.ingressclass\.kubernetes\.io/is-default-class'
more ingress-nginx
all 7 commands →
Dump effective nginx config
kubectl exec deploy/ingress-nginx-controller -n ingress-nginx -- nginx -T | less
Controller status metrics
kubectl exec deploy/ingress-nginx-controller -n ingress-nginx -- curl -s localhost:10254/nginx_status
Grep upstream timeouts in logs
kubectl logs -n ingress-nginx deploy/ingress-nginx-controller --tail=2000 | grep -iE 'upstream timed out|504|499'
Canary traffic split annotation
kubectl annotate ingress <name> -n <ns> nginx.ingress.kubernetes.io/canary=true nginx.ingress.kubernetes.io/canary-weight="20"
Rate limit and body size annotations
kubectl annotate ingress <name> -n <ns> nginx.ingress.kubernetes.io/limit-rps="10" nginx.ingress.kubernetes.io/proxy-body-size="50m"