Read the API's bookkeeping
- 12 min
- 6 steps
- The API and the loop
Steps
0 of 6 done
Use discovery to find group versions, watch generation and resourceVersion respond to different kinds of write, and release an object held by a finalizer.
Step 1 of 6
Find the API group and version this cluster serves CronJobs under, by asking the cluster rather than the documentation.
Checked against what your commands print.
Step 2, not started:
pdb.yamlwas written for a cluster before 1.25. Try applying it, read why it is refused, then find the version of its group that this cluster does serve.Step 3, not started: Add the label
team=storefrontto thewebDeployment, then confirm that its generation did not change.Step 4, not started: Change
webto runnginx:1.31, then wait until the deployment controller reports that it has seen the change.Step 5, not started: Delete the
app-configConfigMap without waiting for it to go away, then show the field that records when deletion was requested.Step 6, not started: No controller owns
example.com/hold, so nothing will ever remove it. Release the ConfigMap so the API server can finish deleting it.
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.