We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22cc041 commit dfd508aCopy full SHA for dfd508a
1 file changed
webdemo.yaml
@@ -0,0 +1,40 @@
1
+
2
+---
3
+apiVersion: apps/v1
4
+kind: Deployment
5
+metadata:
6
+ name: webdemo
7
+spec:
8
+ replicas: 3
9
+ selector:
10
+ matchLabels:
11
+ app: webdemo
12
+ template:
13
+ metadata:
14
+ labels:
15
16
+ spec:
17
+ containers:
18
+ - name: webdemo
19
+ image: registry.lab.local:5000/webdemo:latest
20
+ ports:
21
+ - containerPort: 18080
22
23
+ protocol: TCP
24
+ imagePullSecrets:
25
+ - name: regcred
26
27
28
+apiVersion: v1
29
+kind: Service
30
31
32
33
34
35
+ type: NodePort
36
37
38
+ port: 18080
39
+ nodePort: 31234
40
0 commit comments