Run a node agent everywhere

  • 12 min
  • 6 steps
  • Pods and workloads

Steps

0 of 6 done

Find the node a DaemonSet skips, tolerate its taint, then roll a new image out by hand with OnDelete and automatically with RollingUpdate.

  1. Step 1 of 6

    The log-agent DaemonSet in the observability namespace should run on every node. List its pods together with the node each one landed on, and find the node that has none.

    Checked against what your commands print.

  2. Step 2, not started: Find what keeps log-agent off kx-control-plane. The DaemonSet has no node selector, so look at the node itself.

  3. Step 3, not started: Make log-agent run on the control-plane node as well, without removing the node's taint. All four pods should end up Ready on the updated template.

  4. Step 4, not started: Switch log-agent to the OnDelete update strategy, then change its agent container image to busybox:1.38. Check the pods: nothing should restart yet.

  5. Step 5, not started: Update one node by hand: delete the log-agent pod on kx-worker and let the DaemonSet replace it from the changed template.

  6. Step 6, not started: Return log-agent to the RollingUpdate strategy, allowing two nodes to be without a ready agent at a time, and let it update the remaining nodes.

Lab terminal

Cluster time 45 seconds
kind cluster kx, Kubernetes 1.37.
Each step is checked as you work.
​
Tab completes. Up and Down recall.
Type help for more.
Terminal keys

Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.