Instantly share code, notes, and snippets.

Embed
What would you like to do?
A daemonset that print the most heavy files on each node
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: disk-checker
labels:
tier: monitoring
app: fluentd-logzio
version: v1
spec:
template:
metadata:
labels:
app: disk-checker
spec:
hostPID: true
hostIPC: true
hostNetwork: true
containers:
- resources:
requests:
cpu: 0.15
securityContext:
privileged: true
image: busybox
imagePullPolicy: IfNotPresent
name: disk-checked
command: ["/bin/sh"]
args: ["-c", "du -a /host | sort -n -r | head -n 20"]
volumeMounts:
- name: host
mountPath: "/host"
volumes:
- name: host
hostPath:
path: "/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment