-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdaemonset.yaml
62 lines (62 loc) · 1.5 KB
/
daemonset.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: collectl
namespace: openshift4-debug
labels:
app: openshift4-debug
spec:
selector:
matchLabels:
app: collectl
template:
metadata:
labels:
app: collectl
spec:
# these toleration are to have the daemonset runnable on control plane nodes
# Uncomment them if you want control plane nodes to run DS pods
#tolerations:
#- key: node-role.kubernetes.io/master
# operator: Exists
# effect: NoSchedule
nodeSelector:
collectl: "true"
containers:
- name: collectl
image: image-registry.openshift-image-registry.svc:5000/openshift4-debug/collectl
imagePullPolicy: Always
resources:
limits:
memory: 400Mi
requests:
cpu: 100m
memory: 400Mi
volumeMounts:
- mountPath: /dev/mem
name: mem
- mountPath: /sys
name: sys
- mountPath: /var/log
name: logs
securityContext:
runAsUser: 0
privileged: true
volumes:
- name: mem
hostPath:
path: /dev/mem
type: CharDevice
- name: sys
hostPath:
path: /sys
type: Directory
- name: logs
hostPath:
path: /var/log
type: Directory
hostPID: true
hostNetwork: true
hostIPC: true
serviceAccount: openshift4-debug
serviceAccountName: openshift4-debug