Menu

How do you run a host command on every node without SSH?

Reddit r/kubernetes·u/Silva-Engineer·3 days ago
#ps9mcIN1
#node#host#every#command#without
Reading 0:00
15s threshold

kubectl debug node/ puts the node's root filesystem at /host, but the pod isn't privileged, so chroot /host fails unless you add --profile=sysadmin. It also works one node at a time and leaves the pod behind until you delete it. When you need journalctl -u kubelet from every GPU node, what do you run, and who gets to run it?