Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created February 19, 2026 05:26
Show Gist options
  • Select an option

  • Save chadmcrowell/7317bc753d0df77ca9e1a7b4042d69fd to your computer and use it in GitHub Desktop.

Select an option

Save chadmcrowell/7317bc753d0df77ca9e1a7b4042d69fd to your computer and use it in GitHub Desktop.
Daemonset
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node-logger
spec:
selector:
matchLabels:
app: node-logger
template:
metadata:
labels:
app: node-logger
spec:
containers:
- name: logger
image: busybox
command: ["sh", "-c", "while true; do echo node: \$NODE_NAME; sleep 10; done"]
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment