- Lab
- A Cloud Guru
Deploy a Python App to an AKS Cluster Using Azure Pipelines
You are responsible for deploying a Python app to AKS. You have the code and a pipeline template, and you must create a CI/CD pipeline in Azure DevOps.
Path Info
Table of Contents
-
Challenge
Create an Azure DevOps Organization
- Log in to the Azure portal using the provided credentials.
- Search for Azure DevOps from the Services menu.
- Create a new organization and project named MyFirstProject.
-
Challenge
Import Code and Set Up Environment
- Import the code from this GitHub repository.
- Go to Pipelines > Environments to make Azure DevOps aware of your AKS cluster.
- Create a service connection for the ACR in Azure DevOps.
-
Challenge
Create the CI/CD Pipeline
- This lab requires the use of a self-hosted agent. Instructions can be found here Self-Hosted Agent Instructions.
- Modify the manifest to change the
azure-vote-front
container image location. - Create a new pipeline from the code in Azure Repos.
- Select an existing YAML from the repository.
- Modify the pipeline YAML to include your ACR DNS name.
- Make sure that the pipeline is using the self-hosted agent.
-
Challenge
Access the AKS Cluster
- Navigate to the AKS cluster from the Azure portal.
- Open up the Kubernetes services.
- Copy the
External-IP
from theazure-vote-front
service into a new browser tab. - Vote for Dogs or Cats.
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.