08 - Deploy Apps on AKS
Learn how to deploy and expose containerized AI APIs to Azure Kubernetes Service.
Welcome to Lab 08! In this module, you will take a local Python application and deploy it to a production-grade Kubernetes cluster in Azure.
Azure Kubernetes Service (AKS) simplifies the deployment, management, and scaling of containerized applications. It offloads much of the operational overhead of managing Kubernetes to Azure, allowing you to focus on your application code.
What You Will Build
In this hands-on lab, we will:
- Containerize: Build a Docker image for a Python AI Inference API.
- Store: Push the image to your private Azure Container Registry (ACR).
- Provision: Spin up a managed AKS cluster, navigating Azure for Students quota and policy limitations.
- Deploy: Write and apply Kubernetes
deployment.yamlandservice.yamlmanifests. - Expose: Route internet traffic directly to your API using an Azure Load Balancer.
Prerequisites
Before starting, ensure you have:
- An active Azure subscription (Azure for Students is fully supported).
- The Azure CLI installed and authenticated (
az login). - Docker installed and running locally.
- The
kubectlcommand-line tool installed.
Let's dive into the core concepts and get our hands dirty with Kubernetes!
