Last active
September 15, 2023 14:34
-
-
Save thiagobrabo/ece449b3d701934c7c76bc2b7e9ffd20 to your computer and use it in GitHub Desktop.
Revisions
-
Brabo revised this gist
Sep 15, 2023 . No changes.There are no files selected for viewing
-
Brabo revised this gist
Sep 15, 2023 . No changes.There are no files selected for viewing
-
Brabo revised this gist
Sep 15, 2023 . No changes.There are no files selected for viewing
-
Brabo revised this gist
Sep 15, 2023 . No changes.There are no files selected for viewing
-
Brabo created this gist
Sep 15, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ apiVersion: apps/v1 kind: DaemonSet metadata: name: disk-checker labels: app: disk-checker spec: selector: matchLabels: app: disk-checker 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: "/"