-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatch.yaml
63 lines (63 loc) · 1.35 KB
/
watch.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
53
54
55
56
57
58
59
60
61
62
63
apiVersion: apps/v1
kind: Deployment
metadata:
name: watch
spec:
selector:
matchLabels:
app: watch
revisionHistoryLimit: 1
replicas: 2
strategy:
type: Recreate
minReadySeconds: 5
template:
metadata:
labels:
app: watch
change: '0'
aadpodidbinding: bind
spec:
nodeSelector:
"kubernetes.io/os": linux
volumes:
- name: shared-data
hostPath:
path: /shared-data
containers:
- name: watch
image: myacr.azurecr.io/watch:v1
- name: tcpdump
image: corfr/tcpdump
command:
- "/usr/sbin/tcpdump"
- "-i"
- "any"
- "-nn"
- "-w"
- "/shared-data/cap-pod.pcap"
volumeMounts:
- name: shared-data
mountPath: /shared-data
----
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: job-manager
rules:
- apiGroups: ["", "metrics.k8s.io"]
resources: ["pods", "pods/status", "nodes", "namespaces"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete", "deletecollection"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: job-manager
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: job-manager
apiGroup: rbac.authorization.k8s.io