Practices for CKAD

Main Course from Certified Kubernetes Application Developer (CKAD)


Setup Terminal

Kubectl autocomplete and alias k

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 autocomplete permanently to your bash shell.

alias k=kubectl
complete -F __start_kubectl k

Ref to kubectl Cheat Sheet

CKAD Exercises

Important

  • Easily create the pod that was just described using YAML:

    kubectl run nginx --image=nginx --restart=Never --dry-run=client -n mynamespace -o yaml > pod.yaml
    kubectl create -f pod.yaml
  • Most quick way to create a object

    kubectl run nginx --image=nginx   (deployment)
    kubectl run nginx --image=nginx --restart=Never   (pod)
    kubectl run busybox --image=busybox --restart=OnFailure   (job)
    kubectl run busybox --image=busybox --schedule="* * * * *"  --restart=OnFailure (cronJob)
  • Switch k8s cluster

    kubectl config use-context (cluster name)

Resources allowed during exam

During the exam, candidates may:

The allowed sites above may contain links that point to external sites. It is the responsibility of the candidate not to click on any links that cause them to navigate to a domain that is not allowed.


Sections

Chapter 2

Chapter 3

  • ConfigMap
  • SecurityContexts
  • Resource Requirements
  • Secrets
  • ServiceAccounts

Chapter 3

Chapter 4

  • Shared Network

    01.png

  • Shared Storage Volumes

    02.png

  • Shared Process

    03.png

Chapter 4

Chapter 5

  • Probes
  • Logs command
  • Installing Metrics Server
  • Top command
  • Debugging

Chapter 5

Chapter 6

  • Labels, Selectors, and Annotations
  • Deployments
  • Rolling Updates and Rollbacks
  • Jobs and CronJobs

Chapter 6

Chapter 7

Chapter 7

Chapter 8

TBD

Chapter 9

TBD

Chapter 10

TBD


Others

others


References