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

41 lines
841 B
YAML
Raw 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:
app: nginx-errors
spec:
2018-06-12 23:26:21 +00:00
selector:
app: nginx-errors
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
---
2018-06-12 23:26:21 +00:00
apiVersion: apps/v1beta2
kind: Deployment
apiVersion: apps/v1beta2
2018-04-27 00:09:55 +00:00
metadata:
name: nginx-errors
spec:
replicas: 1
2018-06-12 23:26:21 +00:00
selector:
matchLabels:
app: nginx-errors
2018-04-27 00:09:55 +00:00
template:
metadata:
labels:
app: nginx-errors
spec:
containers:
2018-06-12 23:26:21 +00:00
- name: nginx-error-server
2018-06-17 22:03:31 +00:00
image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.3
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"