Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

Certified Kubernetes Administrator (CKA) Last-Minute Cheat Sheet | Exam-Focused Commands & YAML Reference.

Document preview thumbnail
Preview 2 out of 9 pages

Pass the Certified Kubernetes Administrator (CKA) exam with confidence using this ultimate, high-yield Last-Minute Cheat Sheet. Designed for rapid recall under tight exam pressure, this practical, command-heavy guide skips the dense theory and focuses strictly on the exact commands, YAML templates, troubleshooting workflows, and hidden exam traps that save valuable minutes. What’s Included: Exam Survival Basics: Context-switching hygiene, shell aliases ($do), and Vim whitespace configurations to prevent silent YAML breaks. Cluster Architecture & Upgrades: Step-by-step kubeadm upgrade sequences (control plane vs. workers), etcd backup/restore procedures (etcdctl), and static pod management. Workloads & Scheduling: Deployments, rolling updates, DaemonSets with control plane tolerations, manual scheduling via nodeName, taints/tolerations, and node/pod anti-affinity patterns. Services & Networking: Service types (ClusterIP, NodePort, LoadBalancer), ingress controller routing, and critical NetworkPolicy ingress/egress YAML nesting (AND vs. OR logic). Storage & Persistent Volumes: PV/PVC binding mechanics, access modes (RWO, ROX, RWX, RWOP), StorageClasses, and WaitForFirstConsumer behaviors. Troubleshooting & Debugging: Systematic triage for broken kubelets, crashed control plane static pods, crashed containers, networking/DNS resolution (netshoot), and quick JSONPath / custom-columns querying tricks. Perfect for your final review stretch before the exam to lock down critical command syntax and avoid common time-wasting mistakes!

Content preview

CKA Last-Minute
Cheat Sheet
A practical, exam-focused reference for commands, YAML patterns, troubleshooting, and the
small details that can cost you time.



How to use this guide
Use it as a quick-reference document rather than a theory guide. The goal is to help you recognize the task, reach for the right
command or YAML pattern, and verify the result before moving on.



1 2 3
Set the context Scaffold instead of typing from Verify before you move on
scratch




CKA Last-Minute Cheat Sheet Page 1

, CKA Ultimate Last-Minute Cheat Sheet
The stuff you actually need at 11pm the night before the exam
A quick note before you dive in: this isn't a "concepts" refresher. You already know what a Pod is. This is meant for quick recall:
commands, YAML patterns, and the small gotchas that can quietly cost you time. Read it once before the exam, then keep it
nearby for fast lookups.



0. Exam Survival Basics (read this first)
• **Set your context per task.** Every question tells you which cluster/context to use. First command, every single time:

kubectl config use-context <context-name>


Easy point to lose: switching to the wrong context can make an otherwise correct command affect the wrong cluster.
• **Set an alias and autocomplete immediately** (first 30 seconds of the exam):

alias k=kubectl
source <(kubectl completion bash)
complete -F __start_kubectl k
export do="--dry-run=client -o yaml"


$do saves you enormous amounts of typing — You will use it repeatedly while building resources. to scaffold YAML instead of
hand-writing it.
• **Vim setup** (if you're not using it, set it in `~/.vimrc` before you start):

set expandtab
set tabstop=2
set shiftwidth=2


YAML is whitespace-sensitive. Tab characters will silently break things and cost you time you don't have.
• **Always use `-o yaml --dry-run=client` to generate a base**, then edit rather than freehand. Freehand YAML under time pressure
is where mistakes live.
• **Bookmark kubernetes.io/docs in your browser** before the exam starts. You get one tab to the official docs (and your own
notes if allowed by your provider). Know the URL structure so you can jump straight to "Configure Liveness Probes" instead of
searching.



1. Cluster Architecture, Installation & Configuration
kubeadm cluster bootstrap (control plane)
# On the control plane node
kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=<CP_IP>

# Standard post-init steps (kubeadm prints these, don't skip them)
mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config

# Install a CNI (Flannel example — pick whatever the task specifies)
kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml


Get the join command again if you lost it:

kubeadm token create --print-join-command


Join a worker node:

kubeadm join <CP_IP>:6443 --token <token> --discovery-token-ca-cert-hash sha256:<hash>



kubeadm cluster upgrade (this WILL be on the exam)
Order matters: control plane first, then workers, one node at a time.




CKA Last-Minute Cheat Sheet Page 2

Document information

Uploaded on
August 28, 2026
Number of pages
9
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
7
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions