This is a custom default backend for nginx-ingress. The only reason for creating this project was to customize the 404 page and provide a better (and branded) user experience.
By default, the backend will listen on port 8080
and serve an HTML
page with the error file at /assets/404.html
. Override the default html page by mounting a config map with the html page at a different path.
Important Note
The final image is based on scratch
image, so normal file system operations won't work. See the Dockerfile
for more details
Based on https://hub.docker.com/r/nuvo/default-backend
https://hub.docker.com/r/glarfs/default-backend
Build from Source
simple build:
docker build -t glarfs/default-backend .
multiarch build:
docker buildx build -t glarfs/default-backend --platform=linux/arm,linux/arm64,linux/amd64 . --push