Custom NGINX Ingress default backend for Kubernetes
536
A lightweight, customizable default backend service for NGINX Ingress Controller in Kubernetes clusters. This Docker image provides a simple NGINX server that handles various HTTP status codes with custom error pages, perfect for improving user experience when services are unavailable or return errors.
The error pages feature a modern dark theme with:
defaultBackend:
enabled: true
image:
repository: kalmars/ingress-default-backend
tag: "main"
pullPolicy: Always
port: 8080
apiVersion: apps/v1
kind: Deployment
metadata:
name: default-backend
spec:
replicas: 1
selector:
matchLabels:
app: default-backend
template:
metadata:
labels:
app: default-backend
spec:
containers:
- name: default-backend
image: kalmars/ingress-default-backend:main
ports:
- containerPort: 8080
To customize the error pages, fork this repository and modify the HTML files in the content/ directory. You can update:
After making your customizations:
Build the Docker image:
docker build -t kalmars/ingress-default-backend:main .
Push to your container registry:
docker push kalmars/ingress-default-backend:main
NGINX_WORKER_PROCESSES: Number of NGINX worker processes (default: auto)NGINX_WORKER_CONNECTIONS: Maximum number of connections per worker (default: 1024)The default NGINX configuration is optimized for Kubernetes environments and includes:
/healthThis project is licensed under the MIT License - see the LICENSE file for details.
We welcome contributions! Please feel free to submit issues and pull requests.
For support and questions, please open an issue in the GitHub repository.
Made with ❤️ by Kalmars Group
Content type
Image
Digest
sha256:b88cbb4a1…
Size
21.6 MB
Last updated
12 months ago
docker pull kalmars/ingress-default-backend:main