Manage Kubernetes Controllers and Deployments
In this lab, you’ll practice how to manage the Kubernetes api server and pods. When you’re finished, you’ll have the required knowledge to interact with the Kubernetes api server, the anatomy of the requests, and how to manage pods using labels and probes.
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
Inspect Kubernetes Controllers
Even in its simplest installation, Kubernetes makes use of controllers. To start this lab, you will inspect the most common controllers used in the Kubernetes cluster deployed in your lab environment.
Challenge
Work with Deployment and ReplicaSet Controllers
The Deployment and ReplicaSet controllers in kubernetes allow you to define a desired state, and the Deployment Controller changes the actual state to the desired one at a controlled rate. In this challenge, you will try out both controllers and use them to rollout and rollback previous versions of your application.
Challenge
Deploy DeamonSet to Ensure Your Application Runs in All Nodes
DeamonSets are used to ensure an application is deployed in all the nodes. This is useful, for example, to ensure log collection agents run on all hosts forming your cluster. You will use a DeamonSet to run an app in all nodes forming your cluster.
Challenge
Create a Stateful Application with StatefulSet
Some applications like databases need persistent storage to provide data durability (application state). Here, you will deploy a caching service using the StatefulSet controller.
Challenge
Use Job and CronJob Controllers
Jobs are used to perform a specific task. This controller will keep re-running the pod until it successfully terminates. To finish up the directed portion of the lab, you will deploy a simple Job resource to automate a task, and then you will ensure the task is run on a schedule by using the CronJob controller.
Challenge
The Last Challenge
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.