Skip to content

Commit

Permalink
Merge pull request #1329 from hzxuzhonghu/example
Browse files Browse the repository at this point in the history
add example for nginx-ingress
  • Loading branch information
aledbf authored Sep 11, 2017
2 parents 1e943c0 + 4481b2e commit 18ea2f7
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions controllers/nginx/examples/echo-header.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: echoheaders
spec:
replicas: 1
template:
metadata:
labels:
app: echoheaders
spec:
containers:
- name: echoheaders
image: gcr.io/google_containers/echoserver:1.8
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: echoheaders-x
labels:
app: echoheaders-x
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: echoheaders
---
apiVersion: v1
kind: Service
metadata:
name: echoheaders-y
labels:
app: echoheaders-y
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: echoheaders

0 comments on commit 18ea2f7

Please sign in to comment.