Skip to content

Instantly share code, notes, and snippets.

@lyndell
Created November 11, 2020 20:33
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 lyndell/e2412ffc206ac02a3f23a08b038b273a to your computer and use it in GitHub Desktop.
Save lyndell/e2412ffc206ac02a3f23a08b038b273a to your computer and use it in GitHub Desktop.
deploy plain Ubuntu image for debugging on all nodes in a Kubernetes cluster
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug
spec:
selector:
matchLabels:
name: debug
template:
metadata:
labels:
name: debug
spec:
containers:
- name: debug
image: ubuntu
command: ["/bin/bash"]
args: ["-c", "while true; do date; sleep 60;done"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment