40 lines
1007 B
YAML
40 lines
1007 B
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: node-monitor
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
dev.dinauer.kubooboo/component: node-monitor
|
|
template:
|
|
metadata:
|
|
labels:
|
|
dev.dinauer.kubooboo/component: node-monitor
|
|
spec:
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
- key: node-role.kubernetes.io/master
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
containers:
|
|
- name: node-monitor-pod
|
|
image: harbor.dinauer.dev/kubooboo/node-monitor:3
|
|
resources:
|
|
requests:
|
|
memory: 5Mi
|
|
limits:
|
|
memory: 25Mi
|
|
env:
|
|
- name: HOST_PATH
|
|
value: /host
|
|
volumeMounts:
|
|
- name: host-root
|
|
mountPath: /host
|
|
readOnly: true
|
|
volumes:
|
|
- name: host-root
|
|
hostPath:
|
|
path: /
|
|
type: Directory |