Skip to content

Commit dfd508a

Browse files
committed
add yaml
1 parent 22cc041 commit dfd508a

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

webdemo.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
app: webdemo
16+
spec:
17+
containers:
18+
- name: webdemo
19+
image: registry.lab.local:5000/webdemo:latest
20+
ports:
21+
- containerPort: 18080
22+
name: webdemo
23+
protocol: TCP
24+
imagePullSecrets:
25+
- name: regcred
26+
27+
---
28+
apiVersion: v1
29+
kind: Service
30+
metadata:
31+
name: webdemo
32+
spec:
33+
selector:
34+
app: webdemo
35+
type: NodePort
36+
ports:
37+
- name: webdemo
38+
port: 18080
39+
nodePort: 31234
40+

0 commit comments

Comments
 (0)