Skip to content

Instantly share code, notes, and snippets.

@mdbooth
Created September 2, 2022 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdbooth/783c702e44d6cd1c16f4ae404c5cf3f6 to your computer and use it in GitHub Desktop.
Save mdbooth/783c702e44d6cd1c16f4ae404c5cf3f6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: atop-debug
namespace: default
spec:
selector:
matchLabels:
app: atop-debug
template:
metadata:
labels:
app: atop-debug
name: atop-debug
spec:
hostPID: true
containers:
- name: atop
image: quay.io/mbooth/atop:latest
args:
- "-w"
- "/data/atop.log"
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 100Mi
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /data
name: logdir
nodeSelector:
node-role.kubernetes.io/master: ""
priorityClassName: system-node-critical
restartPolicy: Always
securityContext:
runAsNonRoot: false
terminationGracePeriodSeconds: 30
tolerations:
- operator: Exists
volumes:
- name: logdir
hostPath:
path: /var/tmp/atop-debug
type: DirectoryOrCreate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment