A container to provide a custom default backend to the nginx-ingress Kubernetes Ingress controller
10K+
Assets to build a container to provide a custom default backend to the nginx-ingress Kubernetes Ingress controller

The container has a set of error HTML and JSON files that are returned based on the error code. These files are stored in the www/ directory and are copied to the /www/ directory in the container.
k8s-deployment.yaml file to point to your custom built image.Note: This is for the Kubernetes Nginx Ingress, not the one made by Nginx. If you haven't deployed it yet, here ya go: https://kubernetes.github.io/ingress-nginx/deploy/
These instructions assume that you deployed this in the default ingress-nginx namespace.
k8s-deployment.yaml file to point to your custom built image, or use it as is for some snazzy error pageskubectl apply -f k8s-deployment.yamlingress-nginx/ingress-nginx-controller Deployment and set the value of the --default-backend-service flag to the name of the newly created error backend, which should be ingress-nginx/nginx-errors by default.ingress-nginx/nginx-configuration ConfigMap and add the key:value pair of "custom-http-errors": "404,500,503"Content type
Image
Digest
Size
5.7 MB
Last updated
about 6 years ago
docker pull kenmoini/custom-nginx-ingress-errors