-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebdemo.yaml
More file actions
44 lines (41 loc) · 776 Bytes
/
webdemo.yaml
File metadata and controls
44 lines (41 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webdemo
spec:
replicas: 3
selector:
matchLabels:
app: webdemo
template:
metadata:
labels:
app: webdemo
spec:
containers:
- name: webdemo
image: registry.lab.local:5000/webdemo:latest
imagePullPolicy: Always
env:
- name: env
value: "testing"
ports:
- containerPort: 18080
name: webdemo
protocol: TCP
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: webdemo
spec:
selector:
app: webdemo
type: NodePort
ports:
- name: webdemo
port: 18080
nodePort: 31234