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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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
.
- Import Code and Setup Environment
- Import the code from this GitHub Repository: https://github.com/linuxacademy/content-az400-lab-resources.git
- Go to Pipelines > Environments to make Azure DevOps aware of your AKS cluster.
- Create an Azure Container Registry (ACR), with the premium SKU, and admin enabled.
- Create a service connection for ACR in Azure DevOps.
- Create the CI/CD Pipeline
- 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 pipline YAML to include your ACR DNS name.
- Access the AKS Cluster
- Access the AKS cluster from cloud shell using the command
az aks get-credentials
. - List the Kubernetes services.
- Copy the
External IP
from theazure-vote-front
service into a new browser tab. - Vote for Dogs or Cats.
- Access the AKS cluster from cloud shell using the command