Who does what in the control plane

  • 12 min
  • 6 steps
  • The API and the loop

Steps

0 of 6 done

Find kx's control-plane components, read a node's heartbeat, then cordon and drain a worker and watch the scheduler and controllers move a workload around it.

  1. Step 1 of 6

    List the pods that make up kx's control plane. They live in kube-system and share the label tier=control-plane.

    Checked against what your commands print.

  2. Step 2, not started: Only one component is configured with the address of etcd. Find the flag that carries it in that component's pod spec.

  3. Step 3, not started: Read the most recent heartbeat from kx-worker2: the renew time of its Lease, as the node's description shows it.

  4. Step 4, not started: Stop the scheduler from placing any more pods on kx-worker. Leave the pods already there running.

  5. Step 5, not started: Move every workload pod off kx-worker through the Eviction API. The DaemonSet pods for kube-proxy and kindnet should stay.

  6. Step 6, not started: Check that web is back to three available replicas on the other workers, then let kx-worker take pods again.

Lab terminal

Cluster time 50 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.