ingress-nginx-helm/examples/customization/custom-errors/custom-default-backend.yaml

63 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2018-06-12 23:26:21 +00:00
---
2018-04-27 00:09:55 +00:00
apiVersion: v1
kind: Service
metadata:
name: nginx-errors
labels:
2018-09-05 12:51:21 +00:00
app.kubernetes.io/name: nginx-errors
app.kubernetes.io/part-of: ingress-nginx
2018-04-27 00:09:55 +00:00
spec:
2018-06-12 23:26:21 +00:00
selector:
2018-09-05 12:51:21 +00:00
app.kubernetes.io/name: nginx-errors
app.kubernetes.io/part-of: ingress-nginx
2018-04-27 00:09:55 +00:00
ports:
- port: 80
2018-06-12 23:26:21 +00:00
targetPort: 8080
2018-04-27 00:09:55 +00:00
name: http
---
2019-03-28 01:07:46 +00:00
apiVersion: apps/v1
2018-06-12 23:26:21 +00:00
kind: Deployment
2018-04-27 00:09:55 +00:00
metadata:
name: nginx-errors
2018-09-05 12:51:21 +00:00
labels:
app.kubernetes.io/name: nginx-errors
app.kubernetes.io/part-of: ingress-nginx
2018-04-27 00:09:55 +00:00
spec:
replicas: 1
2018-06-12 23:26:21 +00:00
selector:
matchLabels:
2018-09-05 12:51:21 +00:00
app.kubernetes.io/name: nginx-errors
app.kubernetes.io/part-of: ingress-nginx
2018-04-27 00:09:55 +00:00
template:
metadata:
labels:
2018-09-05 12:51:21 +00:00
app.kubernetes.io/name: nginx-errors
app.kubernetes.io/part-of: ingress-nginx
2018-04-27 00:09:55 +00:00
spec:
containers:
2018-06-12 23:26:21 +00:00
- name: nginx-error-server
2025-01-13 08:13:17 +00:00
image: registry.k8s.io/ingress-nginx/custom-error-pages:v1.1.1@sha256:8c10776191ae44b5c387b8c7696d8bc17ceec90d7184a3a38b89ac8434b6c56b
2018-04-27 00:09:55 +00:00
ports:
2018-06-12 23:26:21 +00:00
- containerPort: 8080
2018-06-17 22:03:31 +00:00
# Setting the environment variable DEBUG we can see the headers sent
# by the ingress controller to the backend in the client response.
# env:
# - name: DEBUG
# value: "true"
2022-01-16 21:57:24 +00:00
# Mounting custom error page from configMap
# volumeMounts:
# - name: custom_error_pages
# mountPath: /www
# Mounting custom error page from configMap
# volumes:
# - name: custom_error_pages
# configMap:
# name: custom_error_pages
# items:
# - key: "404"
# path: "404.html"
# - key: "503"
# path: "503.html"