The Kubernetes network policies you need today
In the dynamic world of Kubernetes, container orchestration is just the tip of the iceberg....
Dec 16, 2021
Without a doubt, Kubernetes is the most prominent container orchestration tool. And you’ve probably noticed that many positions available to IT professionals require Kubernetes experience. One way to gain or prove your Kubernetes knowledge is by becoming a Certified Kubernetes Administrator (CKA).
This certification is issued by the Cloud Native Computing Foundation (CNCF) in collaboration with the Linux Foundation. They offer three Kubernetes related certifications:
The CKA exam is the most general of the three and consists of practical, hands-on questions to be solved in a Linux command-line interface within a tight time limit. It’s designed to test an individual’s ability to design, build, manage, and debug Kubernetes clusters and cloud-native applications. As a result, it covers almost every element of Kubernetes and assumes you have a thorough understanding of the platform. The practical, hands-on nature of the test makes it more valuable than many other certifications in the industry.
As more and more companies turn to Kubernetes, the demand for specialized knowledge of the platform has increased. Kubernetes isn’t the only one of its kind available on the market, but it’s clearly the winner in its category. According to the CNCF report, more than 75% of the companies surveyed use a Kubernetes-based platform. This includes big companies like Google, Spotify, and GitHub.
If you’re thinking about becoming a CKA, rest assured that acquiring Kubernetes skills will definitely increase your marketability. This article will guide you through every step of the process.
Anyone can take the exam, regardless of their existing certifications; but if you’ve never worked with Kubernetes, it will be a challenge. Refreshing your knowledge of the following topics can help you get up to speed:
$ export KUBE_EDITOR=“nano”
Besides the technical requirements, here are some other details that will be useful to know:
Being prepared for the topics you’ll see on the exam will also make you more confident going into the test. In the next section, I’ll break down what topics you can expect to see.
The exam curriculum describes what you need to know for the exam, but here’s a brief rundown:
Start by reading the exam curriculum. Understanding what they expect from you will provide a guideline during your learning path. You’ll also need to check which Kubernetes and kubectl versions will be used during the exam.
Take your time preparing for this exam. It’s not easy. The CKA course with practice tests by Mumshad Mannambeth of KodeKloud is a great resource as you study. The course covers all of the relevant topics and offers practice tests on their provided platform. This also means you don’t need to run some personal Kubernetes cluster during the course, which will save you time and money.
The Certified Kubernetes Administrator course by Zeal Vora is also highly rated.
Either one of these courses can be purchased on Udemy, which regularly gives substantial discounts on courses. You can also use the Kubernetes Fundamentals course of CNCF, but it’s a lot more expensive.
Regardless of which course you use, try to understand every topic that they cover. Some topics won’t relate to Kubernetes directly, but they’re useful for understanding the fundamentals.
Prepare some aliases in your terminal. An alias will help you to save time while typing, but only if you exercise with them! Don’t configure too many aliases or it will become too difficult or overwhelming.
Below is a basic but useful alias:
$ alias k=kubectl
You can also enable kubectl bash-completion to improve your speed:
$ source <(kubectl completion bash)
Exercise is the key to success for this exam, and you should try to do as many exercises as possible.
Because of its hands-on nature, it’s very important that you become familiar with the practical side of the exam. Take your time during your first attempt to solve the exercises and use the official Kubernetes docs to find the proper solutions. You’re allowed to use them during your exam, so learn to take advantage of this resource and bookmark important parts.
Since you’re only allowed to have one tab open, it’s important to learn to navigate quickly through the Kubernetes docs. It is allowed to create a folder structure in your bookmarks. Bookmark every type of Kubernetes resource you find useful (e.g., how to create a configMap, how to create a NodePort service, etc.). Try to improve your speed by using those bookmarks during solving exercises.
There are a few commands that it’s nice to have on hand. For example, I found this command to generate the YAML file useful:
$ kubectl xxx –dry-run -o yaml > output.yaml
You may still have to make manual updates in the YAML file, but this command will help get you started. You definitely want to avoid writing from an empty YAML file.
Another very handy command is:
$ kubectl explain
This command describes the types and attributes you need to define for a resource.
“Kubernetes The Hard Way” is a tutorial developed by Kelsey Hightower (Principal Engineer at Google) to walk you through setting up Kubernetes from scratch. You should go through this at least once. It’s a useful resource for understanding the setup and components of Kubernetes. Although it’s not a requirement for the exam, you will learn a lot from it, and it will help you improve your troubleshooting skills.
Make sure you have access to some ‘test’ environment. You can use a local environment like minikube to get started, but in a later stage, a cloud environment is recommended. Creating load balancers and ingress controllers will be hard in a local environment.
Google Cloud offers a free tier where you can spend $300 in credits. This is more than enough to run your own Kubernetes cluster in the cloud. But don’t forget to turn off your cluster when you’re not exercising!
There are many useful exercises to prepare for your CKA exam. Here are a few of the best:
The only runtime-driven, open-source first, cloud security platform:
Continuously minimizes cloud attack surface
Secures your registries, clusters and images
Protects your on-prem and cloud workloads
In the dynamic world of Kubernetes, container orchestration is just the tip of the iceberg....
This guide explores the challenges of RBAC implementation, best practices for managing RBAC in Kubernetes,...
In the evolving landscape of technology, cloud agnosticism has seen increasing traction. This refers to...