- Lab
- A Cloud Guru
Using Pod Management Resources in Kubernetes
Kubernetes resources allow you to define the desired state for containerized workloads in a Kubernetes cluster. In this lab, you will have the opportunity to test your knowledge of the various ways to run these workloads. You will need to select the appropriate resource for each use case and use it to run Pods in the cluster.
Path Info
Table of Contents
-
Challenge
Run a Collection of Pods That Can Be Updated with Zero Downtime
We have a web application that needs multiple instances for reliability. These instances need to be able to scale easily, and we need to be able to roll out code changes with zero downtime. Luckily, the application itself is stateless, which should make this a bit easier.
Create an object called
web
in thedefault
Namespace to manage this workload. You will need to determine the proper object type to use. Provide3
replicas of the application. For now, you can just thenginx:stable
image. -
Challenge
Run a Collection of Stateful Pods That Need a Sticky Identity
We have another web application that is a little older. Unfortunately, it was built in a stateful fashion, and we haven't had a chance to refactor it yet. This application will need to have a sticky identity, such as a fixed order and the sticky Pod names for all of its replicas.
Create an object called
legacy
in thedefault
Namespace to run this workload, using whatever object type you think is appropriate given these requirements. It should have5
replicas and use thenginx:stable
image. -
Challenge
Run a Containerized Task on a Schedule
Our final workload is a data cleanup task. It needs to run to completion once every minute.
Create an object called
data-cleanup
in thedefault
Namespace. Once again, use the object type that you feel best meets the stated requirements. Use thebusybox:stable
image to run the commanddate
once every minute.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
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.