- A set of sample questions and solutions to assist in preparing for the CKAD exam.
- Assumed practice environment is Docker Desktop with a Windows Subsystem for Linux backend.
- Opinions expressed here are solely my own and do not express the views or opinions of JPMorgan Chase.
- Any third-party trademarks are the intellectual property of their respective owners and any mention herein is for referential purposes only.
- Example CKAD Application Design and Build Q&A
- Example CKAD Application Environment, Configuration and Security Q&A
- Example CKAD Application Deployment Q&A
- Example CKAD Services and Networking Q&A
- Example CKAD Observability and Maintenance Q&A
- Example CKAD Miscellaneous Q&A
- Windows Subsystem for Linux requires you to install a Linux distribution from the Microsoft Store.
- Tick the 'Use the WSL 2 based engine' under the 'General' panel
- To mimic the CKAD exam please execute all the commands in this repo from this Linux distribution that you installed.
- The CKAD exam terminal is Ubuntu based.
- Start the distribution directly by searching for Ubuntu and starting the application
Please install these three software components, required to answer questions in later sections:
show
By default the metrics server required for the kubectl top
command is not present on Docker Desktop.
Please install the metrics server with the following command:
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
kubectl patch deployment metrics-server -n kube-system --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--kubelet-insecure-tls"}]'
show
By default the Contour Ingress required for the Ingress Networking question is not present on Docker Desktop.
Please install the contour ingress with the following command:
kubectl apply -f https://projectcontour.io/quickstart/contour.yaml
show
Calico is required for the non native Kubernetes resources lookup question.
curl https://docs.projectcalico.org/manifests/calico.yaml | kubectl apply -f -
- The current version of Kubernetes in the CKAD exam can be found here.
- This has been tested on Docker Desktop v4.0.1.
- To remove all the resources that get created run the commands in the Clean Up section.
End of Section