-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdebug-daemont.yaml
40 lines (40 loc) · 1018 Bytes
/
debug-daemont.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
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug-meridio-daemonset
labels:
app: debug-meridio-daemonset
spec:
selector:
matchLabels:
app: debug-meridio-daemonset
template:
metadata:
labels:
app: debug-meridio-daemonset
spec:
hostNetwork: true
containers:
- name: debug
image: registry.nordix.org/cloud-native/meridio/debug-meridio:latest
imagePullPolicy: Always
securityContext:
capabilities:
add:
- NET_ADMIN
- SYS_ADMIN
volumeMounts:
- mountPath: /run/netns
name: netns-volume
- mountPath: /run/containerd
name: containerd-volume
volumes:
- name: netns-volume # To access the network namespaces
hostPath:
path: /run/netns
type: Directory
- name: containerd-volume # To use crictl
hostPath:
path: /run/containerd
type: Directory