-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb-show.yaml
52 lines (52 loc) · 1.01 KB
/
web-show.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
50
51
52
apiVersion: v1
kind: Service
metadata:
name: web-show
labels:
app: web-show
spec:
selector:
app: web-show
ports:
- protocol: TCP
port: 8081
targetPort: 8081
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-show
labels:
app: web-show
spec:
replicas: 3
selector:
matchLabels:
app: web-show
template:
metadata:
labels:
app: web-show
spec:
containers:
- name: web-show
image: ghcr.io/chaos-mesh/web-show
imagePullPolicy: Always
command:
- /usr/local/bin/web-show
- --target-ip=8.8.8.8
env:
- name: TARGET_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- name: web-port
containerPort: 8081
resources:
requests:
memory: "10Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "1000m"