Skip to content

Commit 18ea2f7

Browse files
authored
Merge pull request #1329 from hzxuzhonghu/example
add example for nginx-ingress
2 parents 1e943c0 + 4481b2e commit 18ea2f7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: echoheaders
5+
spec:
6+
replicas: 1
7+
template:
8+
metadata:
9+
labels:
10+
app: echoheaders
11+
spec:
12+
containers:
13+
- name: echoheaders
14+
image: gcr.io/google_containers/echoserver:1.8
15+
ports:
16+
- containerPort: 8080
17+
---
18+
apiVersion: v1
19+
kind: Service
20+
metadata:
21+
name: echoheaders-x
22+
labels:
23+
app: echoheaders-x
24+
spec:
25+
ports:
26+
- port: 80
27+
targetPort: 8080
28+
protocol: TCP
29+
name: http
30+
selector:
31+
app: echoheaders
32+
---
33+
apiVersion: v1
34+
kind: Service
35+
metadata:
36+
name: echoheaders-y
37+
labels:
38+
app: echoheaders-y
39+
spec:
40+
ports:
41+
- port: 80
42+
targetPort: 8080
43+
protocol: TCP
44+
name: http
45+
selector:
46+
app: echoheaders

0 commit comments

Comments
 (0)