Deploy a Stateless Application in a Kubernetes Cluster


15 students completed the lab in ~36m

Total available time: 1h:0m

Be the first to rate this lab!

Lab Overview

Kubernetes is a popular orchestration tool for managing containerized applications. Kubernetes is production-ready and used by enterprises around the world. With Kubernetes, you can automatically deploy, scale, rollout updates, rollback, and recover container applications. In this Lab, you will learn how to deploy a stateless application in a Kubernetes cluster that you build from the ground up using Linux virtual machines.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Set up a Kubernetes master node
  • Set up a Kubernetes worker node
  • Deploy a stateless application in a Kubernetes cluster
  • Create a Kubernetes service to allow access to the application from outside the cluster
  • Effectively manage Kubernetes clusters from the command-line

Lab Prerequisites

You should be familiar with:

  • Kubernetes concepts
  • Working at the command-line in Linux

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

Follow these steps to learn by building helpful cloud resources

Logging into the Microsoft Azure portal

Begin the Lab by logging into the Microsoft Azure portal

Connecting to the Lab Provisioned Virtual Machine

Use an SSH client to connect to the virtual machine created for you

Configuring a Kubernetes Master Node

Set up the Kubernetes control plane on a CentOS 7 Linux VM

Configuring a Kubernetes Worker Node

Prepare a CentOS 7 Linux VM to be a Kubernetes worker node for a single node cluster

Deploying a Stateless Application in the Kubernetes Cluster

Deploy an application in a Docker image in the cluster

Cleaning Up Your Kubernetes Cluster

Tear down the Kubernetes resources you created in the Lab