Using Pod Management Resources in Kubernetes

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

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 the default Namespace to manage this workload. You will need to determine the proper object type to use. Provide 3 replicas of the application. For now, you can just the nginx:stable image.

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 the default Namespace to run this workload, using whatever object type you think is appropriate given these requirements. It should have 5 replicas and use the nginx:stable image.

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 the default Namespace. Once again, use the object type that you feel best meets the stated requirements. Use the busybox:stable image to run the command date once every minute.

Additional Resources

Welcome to TortoiseCorp! We work to build the future of fruit, lettuce, and heat lamps.

We have an array of digital offerings that require a variety of workloads. We want to run these in Kubernetes. As our Kubernetes and cloud native expert, we'll be relying on you to examine the requirements and determine the best way to run each workload in our Kubernetes cluster!

Feel free to check the Kubernetes documentation for examples of how to create the necessary objects.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?