The Journey Is More Important Than the Destination.
- CKA is the most touching exam I have passed.
- The Journey Is More Important Than the Destination.
- Fastest practice skills are crutial.
- Have fun.
My tips
Use kubectl Cheat Sheet
Kubectl autocomplete – BASH
source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add permanently
You can also use a shorthand alias for kubectl that also works with completion:
alias k=kubectl
complete -F __start_kubectl k
Kubectl apply
kubectl apply -f ./my-manifest.yaml # create resource(s)
Interacting with running Pods
# Run pod nginx and write its spec into a file called pod.yaml
kubectl run nginx --image=nginx --dry-run=client -o yaml > pod.yaml
#Better usage with $do
export do="–dry-run=client -o yaml"
kubectl run nginx --image=nginx $do > pod.yaml
Explorer note (2026): practise these tips with the vDan Kubernetes tools
Explorer note: the commands in these tips now live in the kubectl CLI Interactive Mindmap, which shows every kubectl command and subcommand of the current reference with usage, examples and options. The manifests you generate with $do are covered topic by topic in the Kubernetes YAML Explorer: one annotated manifest per CKA and CKAD topic, a field reference built from the Kubernetes API, and 50 timed exam-style tasks with hints and solutions. The table maps the tips of this post to both tools.
| Tip from this post | In the kubectl mindmap | In the Kubernetes YAML Explorer |
|---|---|---|
kubectl completion bash, alias k=kubectl | kubectl completion with the bash, zsh, fish and powershell subcommands | Namespaces and contexts: set the context namespace once instead of typing -n |
kubectl apply -f | kubectl apply and its subcommands edit-last-applied, set-last-applied, view-last-applied | Deployment, rolling update and rollback; task zero-downtime rolling update |
kubectl run ... $do > pod.yaml | kubectl run and kubectl create: every generator with its flags | Pod with one container; task write a Pod manifest |
| CKA cluster tasks (not in these tips) | drain, cordon, taint, certificate | CKA track: node maintenance, taints, tolerations and affinity, static Pods, etcd snapshot and restore |
| Fastest practice skills are crucial | Search any flag, for example kubectl get with -o jsonpath and --sort-by | Study tasks: 50 timed tasks, switch the Track chip to CKA |
Great Vim
vi ~/.vimrc
set ts=2 sw=2 expandtab ruler
Use tmux
A Ctrl+B Cheat Sheet
Session Commands
- S: List sessions.
Window Commands
- C: Create a new window.
- N: Move to the next window.
- P: Move to the previous window.
Pane Commands
- %: Create a horizontal split.
- “: Create a vertical split.
- X: Close the current pane.
