Dump effective nginx config ingress-nginx
Render the full live nginx.conf with all server blocks the controller actually generated
kubectl exec deploy/ingress-nginx-controller -n ingress-nginx -- nginx -T | less
more ingress-nginx
all 7 commands →
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"
Rewrite-target with capture group
kubectl annotate ingress <name> -n <ns> nginx.ingress.kubernetes.io/rewrite-target='/$2' nginx.ingress.kubernetes.io/use-regex='true'