2018-06-13 00:03:48 +02:00
|
|
|
---
|
2017-03-08 13:02:13 +01:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: nginx-errors
|
|
|
|
|
labels:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 13:02:13 +01:00
|
|
|
spec:
|
2018-06-13 00:03:48 +02:00
|
|
|
selector:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 13:02:13 +01:00
|
|
|
ports:
|
|
|
|
|
- port: 80
|
2018-06-13 00:03:48 +02:00
|
|
|
targetPort: 8080
|
2017-03-08 13:02:13 +01:00
|
|
|
name: http
|
|
|
|
|
---
|
2019-03-25 11:43:36 -04:00
|
|
|
apiVersion: apps/v1
|
2018-06-13 00:03:48 +02:00
|
|
|
kind: Deployment
|
2017-03-08 13:02:13 +01:00
|
|
|
metadata:
|
|
|
|
|
name: nginx-errors
|
2018-09-04 11:25:30 +08:00
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 13:02:13 +01:00
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
2018-06-13 00:03:48 +02:00
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 13:02:13 +01:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 13:02:13 +01:00
|
|
|
spec:
|
|
|
|
|
containers:
|
2018-06-13 00:03:48 +02:00
|
|
|
- name: nginx-error-server
|
2024-12-25 20:04:10 +01:00
|
|
|
image: registry.k8s.io/ingress-nginx/custom-error-pages:v1.1.0@sha256:a2342e403fc3c19f81f5625e1b93daa0f8fb3dfaa1df4905f85e32d2d98a5e96
|
2017-03-08 13:02:13 +01:00
|
|
|
ports:
|
2018-06-13 00:03:48 +02:00
|
|
|
- containerPort: 8080
|
2018-06-17 15:41:39 -04: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-12 15:30:37 +01: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"
|