Fast forward CKA Tips and Tricks!

During the Covid times, I wanted to spend some time off office work. I wanted to give a try on CKA. I am not a big fan of Certification though :) I wanted to self-evaluate how I can perform with most textbook based answers, That said please do not think these certifications ain't useful, they are certainly very useful. I prepped for CKA for a week time with daily 4 hours. If you are working with K8s daily, its a smooth ride. I am assuming here that you are well versed with K8s hence reading this article. I made some notes which I will mention here. These are not shortcuts but majorly questions appear on these topics.
- Get Familiar with
kubeadmway of upgrading cluster including worker Nodes. Refer here - Get very much familiar with
kubeletinstallations and configuration details. - Get Familiar with Kubernetes networking addons.
- Get familiar with how
kube-proxyruns and debug logs - Get familiar how to grep
iptableentries for checking services IPs - Get Familiar with manifests in
/etc/manifests/kubernetes/ - Get familiar how certificates are stored and used for each K8s component( etcd, kubelet, api-server). Refer here
- Get very much familiar with RBAC
- Get familiar with how
CertificateSigningRequestsare created for users and Certificates are approved. Refer here - Be aware of some openssl commands to view certificates (
openssl x509 -in file-path.crt -text -noout) - Practice and masterkubectl Imperative commands for creating
Pod,Deployment,Service,ClusterRole,ClusterRoleBinding,ServiceAccount,Secret - Get familiar with kubectl top command
- How to create
labelsforpodsandnamespaces. - Get familiar with
kubectlconfigcommands with jsonpath queries - Get familiar with how to record commands and view them via rollout command
- Get Familiar with etcd backup and restore. Refer here
- Get Familiar with
DrainingandUncordoningNodes - Get very much familiar with jsonpath . This needs some practice. Refer here
- Get familiar with creating
initcontainers. - Get familiar with creating
sidecarcontainers for existing app containers. (You cannot edit the pod directly. You need to get the yaml in file and apply it after deleting the old pod) - Get very much familiar with creating
PersistentVolume,PersistentVolumeClaimsand mounting Volumes in Pod (Note that you cannot deletePVCuntil Pod is deleted). Refer here - Get Familiar with
Ingressand try to play around w/o adding hosts and how they are attached toIngressControllers - Get Familiar with
NodePortfor services and how they can be created viakubectl Imperative commands - Get very much familiar with
NetworkPolicies. I found this very useful. - Be aware of what is
StaticPods and how are they created. - Get familiar with Rollout commands
- Practice at least 3 mock exams to understand time management. Killer.sh is also an amazing simulator
Note: Tmux is not a must and bash k8s source code completion may not be needed. You can easily make it if you know what has to be done.