- Lab
- A Cloud Guru
Deploy Applications to Azure Kubernetes Service (AKS)
In this lab, you will be using an existing Azure Kubernetes Service (AKS) managed cluster. You will learn how to easily create a containerized application, push it to a container registry attached to the AKS cluster, and deploy the application to the cluster. For this lab, you should have a basic understanding of Containers and Kubernetes.
Path Info
Table of Contents
-
Challenge
Create Your Application
- Clone the working files from the following Github repository:
https://github.com/pluralsight-cloud/aks-deploy-applications-lab.git
- Clone the working files from the following Github repository:
-
Challenge
Build and Push your Container Image to Azure Container Registry
-
Build the application using the Dockerfile in the cloned repository.
-
Push the container image to the provided Azure Container Registry, using the name myapp and the tag latest
Tip: You can save the name of the container registry to a variable named ACR using the following command:
ACR=$(az acr list --query [].name --output tsv)
-
-
Challenge
Deploy Your Application to the Cluster
-
Update the placeholder values in the myapp-deployment.yaml deployment manifest with the unique name of your Azure Container Registry.
-
Deploy your application using the provided Kubernetes deployment manifest named: myapp-deployment.yaml
-
Deploy a service to expose your application using the proivided Kubernetes service manifest named: myapp-service.yaml
Tip: You can save the name of your resource group and AKS cluster variables named RG and AKS respectively using the following command:
RG=$(az group list --query [].name --output tsv) AKS=$(az aks list --query [].name --output tsv)
-
-
Challenge
Test Your Application
- Test your application by accessing it using HTTP using the IP address of the Kubernetes service.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.