Skip to content

Commit e7f284f

Browse files
committed
Echo app for K8s example.
1 parent 99469e5 commit e7f284f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: echoapp-clusterip-service
5+
spec:
6+
type: ClusterIP
7+
ports:
8+
- port: 5678
9+
targetPort: 5678
10+
selector:
11+
app: echoapp
12+
13+
---
14+
15+
apiVersion: apps/v1
16+
kind: Deployment
17+
metadata:
18+
name: echoapp-clusterip-deployment
19+
spec:
20+
replicas: 3
21+
selector:
22+
matchLabels:
23+
app: echoapp
24+
template:
25+
metadata:
26+
labels:
27+
app: echoapp
28+
spec:
29+
containers:
30+
- name: echoapp
31+
image: hashicorp/http-echo
32+
args:
33+
- "-text=Hello!"
34+
ports:
35+
- containerPort: 5678
36+
---
37+
38+
39+

0 commit comments

Comments
 (0)