-
Notifications
You must be signed in to change notification settings - Fork 0
/
1_webshow.yaml
49 lines (49 loc) · 957 Bytes
/
1_webshow.yaml
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
45
46
47
48
49
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-show
labels:
app: web-show
spec:
replicas: 1
selector:
matchLabels:
app: web-show
template:
metadata:
labels:
app: web-show
spec:
containers:
- name: web-show
image: pingcap/web-show
imagePullPolicy: Always
command:
- /usr/local/bin/web-show
- --target-ip=$(TARGET_IP)
env:
- name: TARGET_IP
valueFrom:
configMapKeyRef:
name: web-show-context
key: target.ip
ports:
- name: web-port
containerPort: 8081
hostPort: 8081
---
apiVersion: v1
kind: Service
metadata:
name: web-show
labels:
app: web-show
spec:
selector:
app: web-show
type: NodePort
ports:
- port: 8081
protocol: TCP
targetPort: 8081
nodePort: 30081