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:
|
|
|
|
app: nginx-errors
|
|
|
|
spec:
|
2018-06-12 22:03:48 +00:00
|
|
|
selector:
|
|
|
|
app: nginx-errors
|
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
|
|
|
|
---
|
2018-06-12 22:03:48 +00:00
|
|
|
apiVersion: apps/v1beta2
|
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1beta2
|
2017-03-08 12:02:13 +00:00
|
|
|
metadata:
|
|
|
|
name: nginx-errors
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-06-12 22:03:48 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: nginx-errors
|
2017-03-08 12:02:13 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: nginx-errors
|
|
|
|
spec:
|
|
|
|
containers:
|
2018-06-12 22:03:48 +00:00
|
|
|
- name: nginx-error-server
|
|
|
|
image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.2
|
2017-03-08 12:02:13 +00:00
|
|
|
ports:
|
2018-06-12 22:03:48 +00:00
|
|
|
- containerPort: 8080
|