Skip to content

Instantly share code, notes, and snippets.

@gabhi
Forked from veggiemonk/CKAD.md
Created March 11, 2020 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabhi/70a101de536a3fbf347a9d727c63cdb6 to your computer and use it in GitHub Desktop.
Save gabhi/70a101de536a3fbf347a9d727c63cdb6 to your computer and use it in GitHub Desktop.
CKAD exam preparation

Resources

KUBERNETES CLUSTER

PRACTICE

ARTICLE

VIDEO

HONORABLE MENTION

All the resources are in the Kubernauts list https://docs.google.com/spreadsheets/d/10NltoF_6y3mBwUzQ4bcQLQfCE1BWSgUDcJXy-Qp2JEU/edit#gid=0

Tips

  • questions have a weight, I didn't even read questions with less than 5% on my first pass, I just wrote the number down in the note thingy and did them after all the more valuable questions were done.
  • use the note thingy because you have no way of knowing if you completed a question or not, unless you read the question again and check the cluster which is time consuming.
  • make sure you are working on the right cluster by setting the context at the beginning of each questions. The command is given to you, it will avoid to work on the wrong cluster! (ask me how I know that.....(-_-') )
  • remember to click on the button "end the exam"! I was there for 2 minutes not touching the keyboard wondering why this thing isn't over yet until the proctor reminded me. The button is hidden into the exam settings menu or something like that. A visible button would be nice though because after a 2h high-focus exam, no way I remember that kind of details.
  • before the exam starts, you have to remove all drinks and food, show your ID and show your desktop. I use a laptop with an external monitor so pro-tip: Make sure your cables are long enough or disconnect them completely. (again ask me how I know that.....(-_-') )
  • You can't read out loud or cover your mouth. I had no idea how hard that was until I actually tried!! No kidding.
  • just relax if you see something like "configure fluentd" or "HAproxy". No configuration of external tools will be asked of you! The config file is usually provided.
  • only the kubernetes.io/docs is allowed, know the examples of the documentation (see bookmarks for docs made by @rocketman). It saved me a lot of time to copy/paste examples and adapt them. Make sure the object names/labels are correct. (ok don't ask me how I know that one....)
  • knowing the basics of vim will help: https://devhints.io/vim
  • a few times I had to use cat pod.yaml | sudo tee -a /opt/some/long/cryptic/file.yaml because the file access was root and it was already created. I didn't know if I could overwrite the file with a sudo cp or not.
  • learn to use kubectl explain pod.spec.XXX, it saves time. Although a simple search in the k8s.io/docs might give you the answer too.
  • the problem with the k8s.io/docs is that a CTRL-F/CMD-F might yield results hidden in the left side menu which confused the hell out of me first.
  • using the latest version (1.13) of the documentation was totally fine by me. No need to go back to 1.11 or 1.12
  • check out the help with kubectl bla bla -h, there is usually good examples that you can just copy/paste/adapt.
  • use autocomplete and learn how to use efficiently.
alias k=kubectl
source <(kubectl completion bash) # completion will save a lot of time and avoid typo
source <(kubectl completion bash | sed 's/kubectl/k/g' ) # so completion works with the alias "k"

## good to know
k get po -n prod[TAB]uction # will autocomplete the namespace
k describe po -n production [TAB] # will list the pods in the namespace "production"

I hope it helps.

* For the CKAD, here are my notes: https://gist.github.com/veggiemonk/70d95df77029b3ebe58637d89ef83b6b
* an article with some helpful links: https://medium.com/devopslinks/my-story-towards-cka-ckad-and-some-tips-daf495e711a9
* this list is awesome!! https://docs.google.com/spreadsheets/d/10NltoF_6y3mBwUzQ4bcQLQfCE1BWSgUDcJXy-Qp2JEU/htmlview
* systemd https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
* tmux should be useful as well (https://gist.github.com/MohamedAlaa/2961058).
* practice this in order to understand k8s: https://github.com/kelseyhightower/kubernetes-the-hard-way
* this can help as well: https://github.com/jamiehannaford/what-happens-when-k8s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment