Main Course from Certified Kubernetes Application Developer (CKAD)
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
-
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)
During the exam, candidates may:
- review the Exam content instructions that are presented in the command line terminal
- review Documents installed by the distribution (i.e. /usr/share and its subdirectories)
- use their Chrome or Chromium browser to open one additional tab in order to access assets at: https://kubernetes.io/docs/, https://github.com/kubernetes/, https://kubernetes.io/blog/ and their subdomains. This includes all available language translations of these pages (e.g. https://kubernetes.io/zh/docs/)
- No other tabs may be opened and no other sites may be navigated to (including https://discuss.kubernetes.io/).
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.
ConfigMap
SecurityContexts
Resource Requirements
Secrets
ServiceAccounts
- Probes
- Logs command
- Installing Metrics Server
- Top command
- Debugging
- Labels, Selectors, and Annotations
- Deployments
- Rolling Updates and Rollbacks
- Jobs and CronJobs
TBD
TBD
TBD