-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemonset.yaml
50 lines (50 loc) · 1.18 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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: k8s-debug
name: k8s-debug
namespace: k8s-debug
spec:
selector:
matchLabels:
app: k8s-debug
template:
metadata:
labels:
app: k8s-debug
spec:
containers:
- image: quay.io/filiphavlicek/k8s-debug:nonroot
imagePullPolicy: Always
name: k8s-debug
env:
- name: KUBERNETES_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
resources:
requests:
cpu: 10m
memory: 30Mi
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/not-ready
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists