โ† Kubernetes Administrator (CKA) Exam Practice learning path
Kubernetes Administrator (CKA) Exam Practice ยท Module 2 of 10

kubectl essentials

Working fast on the command line.

๐Ÿ“– Key ideas

  1. kubectl get, describe, logs, exec, apply, create, delete and edit are core commands.
  2. Imperative commands create objects quickly: kubectl run, kubectl create deployment, kubectl expose.
  3. Generate YAML with --dry-run=client -o yaml, then edit and apply.
  4. Use namespaces with -n or set a default context namespace.
  5. 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