2018-06-12 22:03:48 +00:00
|
|
|
---
|
2017-03-08 12:02:13 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: nginx-errors
|
|
|
|
labels:
|
2018-09-04 03:25:30 +00:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 12:02:13 +00:00
|
|
|
spec:
|
2018-06-12 22:03:48 +00:00
|
|
|
selector:
|
2018-09-04 03:25:30 +00:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 12:02:13 +00:00
|
|
|
ports:
|
|
|
|
- port: 80
|
2018-06-12 22:03:48 +00:00
|
|
|
targetPort: 8080
|
2017-03-08 12:02:13 +00:00
|
|
|
name: http
|
|
|
|
---
|
2019-03-25 15:43:36 +00:00
|
|
|
apiVersion: apps/v1
|
2018-06-12 22:03:48 +00:00
|
|
|
kind: Deployment
|
2017-03-08 12:02:13 +00:00
|
|
|
metadata:
|
|
|
|
name: nginx-errors
|
2018-09-04 03:25:30 +00:00
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 12:02:13 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-06-12 22:03:48 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-09-04 03:25:30 +00:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 12:02:13 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-09-04 03:25:30 +00:00
|
|
|
app.kubernetes.io/name: nginx-errors
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-03-08 12:02:13 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
2018-06-12 22:03:48 +00:00
|
|
|
- name: nginx-error-server
|
2018-06-17 19:41:39 +00:00
|
|
|
image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.3
|
2017-03-08 12:02:13 +00:00
|
|
|
ports:
|
2018-06-12 22:03:48 +00:00
|
|
|
- containerPort: 8080
|
2018-06-17 19:41:39 +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"
|