โ Kubernetes Administrator (CKA) Exam Practice learning pathKubernetes Administrator (CKA) Exam Practice ยท Module 2 of 10
kubectl essentials
Working fast on the command line.
๐ Key ideas
- kubectl get, describe, logs, exec, apply, create, delete and edit are core commands.
- Imperative commands create objects quickly: kubectl run, kubectl create deployment, kubectl expose.
- Generate YAML with --dry-run=client -o yaml, then edit and apply.
- Use namespaces with -n or set a default context namespace.
- kubectl explain shows field documentation; aliases and autocompletion save time in the exam.
๐ก Real-life example: Like a TV remote with shortcuts: knowing them saves time compared with menus.
kubectlKubernetes command-line tool
Dry runGenerate output without creating objects
NamespaceLogical partition of a cluster
ContextCluster, user and namespace settings