Add example of custom error pages in nginx ingress controller

This commit is contained in:
Manuel de Brito Fontes 2016-05-03 23:58:54 -03:00
parent 7e8c051e2c
commit 2e5e341ef0
4 changed files with 158 additions and 1 deletions

View file

@ -0,0 +1,31 @@
apiVersion: v1
kind: Service
metadata:
name: nginx-errors
labels:
app: nginx-errors
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: nginx-errors
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-errors
spec:
replicas: 1
template:
metadata:
labels:
app: nginx-errors
spec:
containers:
- name: nginx-errors
image: aledbf/nginx-error-server:0.1
ports:
- containerPort: 80