Scaling with Stateless Containers in Kubernetes

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Stateless applications are a great tool to help facilitate robustness and high availability. In this lab, you will get hands-on with stateless containers. You will have the opportunity to design an application with stateless containers, and you will be able to see how easy it is to scale stateless applications in Kubernetes.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure the App’s Containers to Be Stateless

Make the container file system for the app’s containers read-only.

The application needs to be able to write to /tmp. You will need to create an external volume to allow the application to write to this directory at runtime.

You can find a deployment descriptor for the app at /home/cloud_user/pirate-day.yml.

Scale the Application Up

Increase the number of replicas for the application to 5.

Additional Resources

Welcome to PirateCorp! A company that exists to promote pirate-related history and lore!

We're developing our new website, Is It International Talk Like a Pirate Day?. This site will inform the public of whether or not it is currently International Talk Like a Pirate Day.

We have some tasks that need to be done in order to continue to grow and develop our application.

In this exercise, you will need to help ensure the application is stateless by setting the container file system to read-only and using external volumes to handle any directories the application needs to write data to. Then, scale the application by increasing the replica count.

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?