-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.yaml
50 lines (50 loc) · 1.02 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-watch
spec:
selector:
matchLabels:
app: api-watch
revisionHistoryLimit: 1
replicas: 1
strategy:
type: Recreate
minReadySeconds: 5
template:
metadata:
labels:
app: api-watch
aadpodidbinding: bind
spec:
nodeSelector:
"kubernetes.io/os": linux
volumes:
- name: shared-data
hostPath:
path: /shared-data
containers:
- name: api-watch
image: ss104301/watch-ns-py:latest
resources:
requests:
memory: "80Mi"
limits:
memory: "250Mi"
- name: tcpdump
image: corfr/tcpdump
command:
- "/usr/sbin/tcpdump"
- "-i"
- "any"
- "-nn"
- "-w"
- "/shared-data/cap-pod.pcap"
resources:
requests:
memory: "250Mi"
limits:
memory: "1Gi"
volumeMounts:
- name: shared-data
mountPath: /shared-data