Lesson 1 · Section 1: Introduction
Lesson 1: Course introduction: how to study for the CKA
What the CKA asks of you, how this course is laid out, the one idea behind all of Kubernetes, and how to set up a practice cluster and take a first look at it. · 14 min read · 4 min video
Official competency this lesson covers
Narrated by the local narrator voice. Keys: Space plays and pauses, J and L step, C captions, F full screen.
Why this course exists
A Kubernetes administrator is the person who keeps the cluster itself working: installing it, upgrading it, giving people the access they need, and finding out why something stopped at three in the morning. The Certified Kubernetes Administrator (CKA) exam tests exactly that job, and it tests it the honest way. There are no multiple-choice questions. You get a terminal, a handful of real clusters and two hours, and you are asked to do things: fix this node, expose that Deployment, restore this backup.
That changes how you have to study. Recognising the right answer is not enough, and neither is understanding it. You have to be able to produce it, on a live cluster, with the clock running. So this course does two things for every topic: it explains how the thing works underneath, so you can reason when a task looks unfamiliar, and it sends you to a cluster to practise until the commands come without thinking.
This lesson has no Kubernetes theory to memorise. It gives you the map of the course, the one idea that every later lesson builds on, and a working practice cluster. The next lesson, About the CKA certification, covers the exam itself: registration, rules, the exam environment and what you may look up.
What the course is made of
Parts:
- You, the admin (kubectl)
- Control plane (Architecture 25%), in Troubleshooting 30%: all of it
- Pods (Workloads 15%), in Troubleshooting 30%: all of it
- Volumes (Storage 10%), in Troubleshooting 30%: all of it
- Services (Networking 20%), in Troubleshooting 30%: all of it
Connections:
- You, the admin to Control plane: kubectl
- Control plane to Pods: schedules
- Services to Pods: route
- Pods to Volumes: mounts
The exam's public curriculum has five domains, each with a weight. The course follows them, but not in the order of the list: it starts with the concepts everything else needs, and it comes back to troubleshooting again and again, because troubleshooting is simply every other domain with something broken in it.
| Domain | Weight | What you will be able to do |
|---|---|---|
| Troubleshooting | 30% | Find out why a node, a control plane component, an application or a Service is not working, and fix it |
| Cluster architecture, installation and configuration | 25% | Build and upgrade a cluster with kubeadm, manage access with RBAC, install components with Helm and Kustomize |
| Servicing and networking | 20% | Connect Pods, expose them with Services, Ingress and the Gateway API, restrict traffic with NetworkPolicies, use CoreDNS |
| Workloads and scheduling | 15% | Run and update applications, configure them, scale them, and control where Pods land |
| Storage | 10% | Give Pods storage that outlives them, with volumes, claims and storage classes |
The weights tell you where the marks are, so they tell you where to spend your time. More than half of the exam is troubleshooting plus cluster architecture: the two domains about the cluster itself rather than the applications on it. That is the difference between this exam and the developer exam (CKAD).
The first part of the course is core concepts: the parts of a cluster and what each one does (the API server, etcd, the scheduler, the controller manager, the kubelet and kube-proxy), and the objects you will handle in almost every task (Pods, ReplicaSets, Deployments, Services and Namespaces). It ends with the ways of working with kubectl that make you fast. Nothing later makes sense without it, so do not skip ahead.
How it works: one idea under everything
Parts:
- You (kubectl apply)
- API server (stores desired state)
- Controllers (compare, then act)
- Nodes (kubelet runs Pods)
Connections:
- You to API server: wants
- API server and Controllers: watch
- API server and Nodes: Pods out, status back
Kubernetes has hundreds of object types, and it would be hopeless to learn each one from scratch. You do not have to, because they nearly all work in the same way:
- You declare what you want. You send the API server an object that describes the result: "three copies of
this web server", not "start a container on node 2". That description is the desired state, and it lives in
the object's
spec. - The API server stores it. It checks the object and writes it to etcd, the cluster's database. At this point nothing is running yet.
- Controllers close the gap. A controller is a loop that never ends: it watches objects through the API server, compares the desired state with the current state, and acts on the difference. Three copies wanted and one running? Create two more.
- Nodes do the work and report back. The kubelet on each node starts the containers for the Pods assigned to it
and writes what really happened into the object's
status.
The Kubernetes documentation compares this to a thermostat: you set a temperature, and the thermostat switches the heating on and off for as long as it takes, and keeps doing so when someone opens a window. You do not operate the heater; you change the setting.
This one idea explains most of what will surprise you in the first weeks. A Pod you delete comes back, because a controller still wants it to exist. A change you make by hand on a node is undone, because the stored desired state did not change. And when something does not work, the question is always the same: which loop is not closing the gap, and what is stopping it? That question is the whole troubleshooting domain.
Under the hood · Why this makes the exam fair, and what it means for your method
- Because the cluster only cares about the end state, there are usually several correct ways to solve a task: an
imperative
kubectl createcommand, a manifest you wrote, or an edit to a live object. The labs and mock exams in this app are graded the same way: a grader looks at the cluster after you finish, never at your shell history. - It also means partial work can count for nothing. A Deployment that exists but has the wrong image is not "almost
right" to a check that looks at the image. Always verify the result with a
kubectl getorkubectl describebefore you move on. specis yours to write andstatusis the cluster's to write. When the two disagree, the events at the bottom ofkubectl describeusually say why. You will use that in nearly every lesson.- Controllers do not talk to each other directly. Each one only reads and writes objects through the API server. That is why the API server is the first thing to check when "nothing happens" on a cluster.
Where to practise
You need a cluster that you are allowed to break. These are the options, in the order you will meet them:
| Practice cluster | Good for | Limits |
|---|---|---|
| Labs in this app | Guided tasks with automatic grading, and the timed mock exams. Nothing to install: the cluster starts in your browser | Lab time is limited per month, and a lab's cluster is deleted when the lab ends |
| kind on your own machine | Daily practice. Several nodes, each one a Docker container; a new cluster in about a minute | The "nodes" are containers, so tasks about the node's operating system are not realistic |
| minikube | A quick single-node cluster with add-ons | One node by default, so little to schedule or drain |
| kubeadm on virtual machines | What the exam itself uses: installing, upgrading, backing up etcd, repairing a kubelet | Needs two or three virtual machines and more of your time. The course builds this with you later |
Using it
Example · Set up your shell once
Two lines save more time than any other trick in this course. Add them to ~/.bashrc on every machine you practise
on, then open a new shell:
source <(kubectl completion bash) # tab completion for commands, flags and object names
alias k=kubectl # one letter instead of seven
complete -o default -F __start_kubectl k # make completion work for the alias too
Now k get po<TAB> completes to pods, and k -n kube-system logs kube-api<TAB> completes the Pod's name. On
zsh, use source <(kubectl completion zsh) instead of the first line; the alias then completes without the third
one.
Example · Create a three-node practice cluster with kind
With Docker and kind installed, describe the cluster in a file and create it. Two workers give the scheduler a
choice and give you a node to drain.
# cka.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
kind create cluster --name cka --config cka.yaml
kubectl config current-context # kind-cka
kind delete cluster --name cka # when you want a clean start
Deleting and recreating the cluster is the fastest way out of a mess, so never be afraid of making one.
Example · Take a first look at a cluster you have never seen
Every exam task starts on a cluster somebody else set up. Run the same few commands each time and you will know in half a minute whether it is healthy and what is on it:
kubectl config current-context # which cluster am I talking to?
kubectl get nodes -o wide # is every node Ready? which version, which IPs?
kubectl get pods -n kube-system # are the cluster's own components Running?
kubectl get --raw='/readyz?verbose' # the API server's own health checks
kubectl get pods -A # everything that runs, in all namespaces
On the kind cluster from the previous example, the second command lists three nodes, one with the role
control-plane. The third shows the components you will study one by one in the coming lessons:
etcd, kube-apiserver, kube-controller-manager and kube-scheduler on the control plane node, a kube-proxy
Pod for every node, and CoreDNS. A node that is NotReady, or a Pod here that is not Running, is where
troubleshooting starts.
Tricks
Common mistakes
- Only reading and watching. Lessons and videos feel productive, but the exam has nothing to read. If a study session did not include a terminal, it was preparation for studying, not studying.
- Skipping the core concepts. Jumping straight to "exam topics" such as etcd backups or upgrades without knowing what each component does turns every task into steps to memorise. With the concepts, most tasks can be worked out.
- Practising only on a managed cluster. You never see the control plane there, and a quarter of the exam is about it.
- Not checking your work. A command that printed
createdproves that the object exists, not that it is right. Look at the result every time. - Working on the wrong cluster or namespace. The exam moves you between clusters. Make
kubectl config current-contexta reflex before every task, starting now. - Memorising YAML. You are not expected to know manifests by heart. You are expected to generate, find and adapt them quickly, and the course shows you how.
Recap
- The CKA is a two-hour, hands-on exam, graded on the state of the cluster when you finish.
- Five domains: troubleshooting (30%), cluster architecture (25%), networking (20%), workloads (15%), storage (10%).
- One idea runs through all of them: you declare a desired state, and control loops work to make it real.
- For every topic: read, answer the questions, do the lab, review. Sit mock exams once a domain feels solid.
- Today: set up the
kalias and completion, create a practice cluster, and take a first look around it.
Official docs
Quiz: check what you learned
5 questions on this lesson · about 3 min · instant feedback. Missed questions come back in your review queue.
Sign in to take the quiz and keep your score.
Discussion
Learners ask and answer questions here. Sign in to read and join the discussion.