We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99469e5 commit e7f284fCopy full SHA for e7f284f
kubernetes-basics/echoapp-all-in-one-clusterip-access.yml
@@ -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
18
+ name: echoapp-clusterip-deployment
19
20
+ replicas: 3
21
22
+ matchLabels:
23
24
+ template:
25
+ metadata:
26
+ labels:
27
28
+ spec:
29
+ containers:
30
+ - name: echoapp
31
+ image: hashicorp/http-echo
32
+ args:
33
+ - "-text=Hello!"
34
35
+ - containerPort: 5678
36
37
38
39
0 commit comments