know.

CookbookStudy and examsNo. 13

Kubernetes certification notesdomain by domain, with typed-command drills

Recipe No. 13 · Study and exams

For: A platform engineer preparing for the CKA exam

You get: CKA notes, a section per task, with drills on every command

Time: Fifteen minutes after each lab

See it in know.sh

A lab task as a section: the kubeadm upgrade as six steps, each saying where it runs, and what went wrong the first time.

CKACluster architecture, installation and configuration

8of 14

Drain and upgrade a worker node with kubeadm

Observation, key section, 1 highlight, 2 sources, 320 words

The task. Upgrade worker-2 on the practice cluster from 1.34 to 1.35, after the control plane. One minor version at a time, and never a kubelet newer than the API server. Steps 1 to 3 and 5 run on worker-2 over ssh; steps 4 and 6 run where kubectl has the admin kubeconfig.

What went wrong. The first time I skipped step 1, so madison listed only 1.34 packages and step 2 failed with “Version ‘1.35.1-1.1’ for ‘kubeadm’ was not found”. The repository change is easy to forget because nothing warns you.

Sources. Upgrading kubeadm clusters; Changing the Kubernetes package repository (both kubernetes.io).

A typed-answer drill: the answer is the command itself, and it must match the section character for character.

QuizzesCluster architecture, installation and configurationQuestion 5 of 8

Type the command that marks node worker-2 unschedulable and evicts its pods, ignoring pods managed by DaemonSets.

Your answerkubectl drain worker-2 --ignore-daemonsets

Right. drain cordons the node first, then evicts; without --ignore-daemonsets it refuses to go on while DaemonSet pods are on the node. Afterwards, kubectl uncordon worker-2 puts it back. See Cluster architecture, installation and configuration, 8.

Claude Code filing a lab session’s notes as sections, and pointing out the step the notes left out.

Claude Code, connected to know.sh

You

Read labs/2026-09-21-etcd.md. Add a section per exercise to my Cluster architecture document in know.sh: the task as the title, the commands in a code block exactly as I ran them, and a “What went wrong” section from my notes. Do not tidy the commands.

Claude Code

The file has three exercises: a snapshot, a restore and a check of the restored cluster. I will find the document first.

search Found Cluster architecture, installation and configuration, 11 sections

section_add Added “Back up etcd with a snapshot” to Cluster architecture, installation and configuration, 12

section_add Added “Restore etcd from a snapshot” to Cluster architecture, installation and configuration, 13

section_add Added “Check the cluster after an etcd restore” to Cluster architecture, installation and configuration, 14

Claude Code

Added sections 12 to 14. Your notes restore to /var/lib/etcd-from-backup but do not say what you changed in the etcd static pod manifest afterwards, so section 13 ends with that as an open question. Your notes also use etcdctl snapshot restore; newer etcd releases move restore to etcdutl, so check which your practice cluster has.

How it works

The CKA hands you a terminal and a clock, so you need the flags, the paths and the order of steps cold. Claude Code files your lab notes as a section per task, a worker upgrade becomes six steps that say which machine each runs on, and typed-answer quizzes make you write every command character for character.

  1. Connect Claude Code and build the shelf

    Install the know.sh plugin in Claude Code and ask it for a CKA shelf with a document per curriculum domain, from Cluster architecture to Troubleshooting.

  2. File each lab session as sections

    After a lab, point Claude Code at your Markdown notes. It adds a section per exercise: the task as its title, the commands exactly as you ran them, and what went wrong.

  3. Set out the long tasks as steps

    Ask for a steps element in each multi-command task, such as the kubeadm upgrade: one command per step, titled with what it does and the machine it runs on, so each copies whole.

  4. Drill the commands with typed answers

    Ask for eight typed-answer questions from a domain. The answer is the command, and it must match your section exactly, so pick -A or --all-namespaces and keep to it.

Try this prompt

Your assistant, connected to know.sh (Claude, ChatGPT or a local model):

Using know.sh, read the section “Drain and upgrade a worker node with kubeadm” in “Cluster architecture, installation and configuration” on my “CKA” shelf and rewrite its commands as a steps element: one command per step, in the order I ran them, each title saying what the step does and which machine it runs on, with one line on what I should see. Keep every command character for character.

Your assistant, connected to know.sh (Claude, ChatGPT or a local model):

Using know.sh, make a quiz of eight typed-answer questions from the document “Troubleshooting” on my “CKA” shelf. Each answer is a single command, exactly as written in the section it cites. Say in the question whether you want short or long flags, and do not ask for anything that needs more than one line.

Made with

Your AI assistantDocumentSectionElementsQuiz