Ingress
Loadbalancer
and nodePorts
ReplicationController
kind config fileapp.kubernetes.io/name=ingress-nginx
labels
kubectl get pods --all-namespaces -l app.kubernetes.io/name=ingress-nginx
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/server-snippet: |
proxy_intercept_errors on;
error_page 404 = @custom_404;
location @custom_404 {
proxy_set_header X-Code $status;
return 404 'Hey, resource not found!';
}