Manage the Kubernetes API Server and Pods
In this lab, you'll practice managing the Kubernetes API Server and pods. When you're finished, you'll have the required knowledge to interact with the Kubernetes API Server, will have learned about the anatomy of its requests, and will have used labels and probes to manage pods.
Terms and conditions apply.
Lab info
Lab author
Challenge
Get Started in the Lab Environment
Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!
Challenge
Use Kubectl to Interact with the Kubernetes API Server
You'll use kubectl commands to get information about your cluster from the Kubernetes API server, and will create new workloads.
Challenge
Interact with the K8s API Server Using curl
Using curl, you'll replicate the connections made by the kubectl binary to the Kubernetes (K8s) API Server. This will also help you understand the anatomy of the requests.
Challenge
Use Labels to Connect Workloads
Labels are used by Kubernetes to identify and group resources. You'll use labels to add and remove a pod from an existing deployment.
Challenge
Work with Pods
Pods are the smallest deployable units of computing that you can create and manage in Kubernetes. In this challenge you will configure probes to ensure the pod is healthy and ready to receive traffic. You will also include init containers in your definition to run any setup scripts.
Challenge
It's a Wrap!
Welcome to the final challenge! This is your last chance to experiment in the environment. Clicking Finish Lab will end this little world that flittered into existence just for you.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Basic knowledge about the Kubernetes architecture, containers, and basic networking
- Familiarity with yaml files, being able to understand their contents
- Familiarity with the Linux CLI (Command Line Interface)
- Ability to edit text files using vim