Advanced Rollout with Kubernetes Deployments

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The basic features of Kubernetes can be used to implement advanced Deployment strategies such as blue/green Deployments. In this lab, you will have the opportunity to try your hand at implementing these strategies in Kubernetes.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Perform a Rolling Update

There is a Deployment in the hive Namespace called web-frontend.

Update the image used in the Deployment’s Pod to nginx:1.16.1.

Perform a Blue/Green Deployment

There is a Deployment in the hive Namespace called internal-api-blue.

A Service called api-svc directs traffic to this Deployment’s Pods.

You can find a YAML manifest for the Deployment at /home/cloud_user/internal-api-blue.yml. Make a copy of this manifest at /home/cloud_user/internal-api-green.yml. Modify the manifest to create a green Deployment called internal-api-green. For the green Deployment, use the image linuxacademycontent/ckad-nginx:green.

Update the Service to point only to the green Deployment’s Pods.

Additional Resources

Welcome to HiveCorp, a software design company that is totally not run by bees!

We need to ship some new software versions for our Kubernetes applications!

There is a web frontend application that needs to be updated to a new version. Since this application is customer-facing, use a rolling update to roll out the new version with zero service interruptions.

We also have an internal API that needs to be updated. The team is concerned about some stability issues that have occurred during past Deployments, leading to lost productivity. Use a blue/green Deployment strategy to test the new version and ensure that it is working before directing user traffic to it.

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?