hands-on lab

Deploy a Stateless Application in a Kubernetes Cluster on Azure

1h 30m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description


This is an outdated lab, view the newer version of the lab hosted on AWS

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:




May 18th, 2021: Resolved an issue with missing Kubernetes CLI on Worker node

May 9th, 2020: Resolved an issue preventing package installations in the Azure Red Hat VMs 

April 14th, 2020: Added a validation check function to validate students' progress

About the author
Logan Rakai
Lead Content Developer - Labs
Learning paths

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Security Specialist (CKS), Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.

LinkedIn, Twitter, GitHub

Lab steps
Logging in to the Microsoft Azure Portal
Connecting to the Lab Provisioned Azure Virtual Machine
Configuring a Kubernetes Control Plane Node
Configuring a Kubernetes Worker Node
Deploying a Stateless Application in the Kubernetes Cluster on Azure
Cleaning Up Your Kubernetes Cluster