Deploying Applications on AKS
1. Deploying Applications on AKS
In this video, we'll focus on the practical steps of deploying pre-built containerized applications to AKS and exposing them with Kubernetes services.2. Deploy applications
At this point, you already have an AKS cluster up and running. The next step is running applications on it. In Kubernetes, you don't deploy containers directly. Instead, you describe the desired state of your application and let Kubernetes handle the rest. This approach is what makes Kubernetes powerful.3. Deploy applications
Rather than managing individual containers, you define through the manifest how many instances you want, which image to use, and how they should behave. Kubernetes continuously works to keep reality aligned with that definition.4. From image to pods
Applications deployed to AKS are packaged as container images, typically stored in Azure Container Registry.5. From image to pods
When you create a deployment, AKS pulls the specified image and schedules pods onto available nodes in the cluster.6. From image to pods
A pod represents one running instance of your application. If multiple replicas are defined, Kubernetes creates multiple pods, potentially across different nodes, improving availability and resilience without manual placement.7. Deployments and replicas
A Kubernetes deployment is responsible for managing pods over time. It ensures the correct number of replicas are running and replaces pods automatically if they fail. This means you don't need to restart containers or recreate resources manually.8. Deployments and replicas
If a pod crashes or a node becomes unavailable, Kubernetes detects the issue and recreates the pod elsewhere in the cluster to maintain the desired state.9. Exposing applications
By default, pods are internal to the cluster and can change over time. To make applications reachable, Kubernetes uses services. A service provides a stable endpoint that routes traffic to healthy pods.10. Exposing applications
In AKS, common service types include internal services for cluster-only communication11. Exposing applications
and load-balanced services that expose applications externally using Azure infrastructure. This separation allows pods to come and go without breaking connectivity.12. Verifying application state
Once an application is deployed, it's important to verify that everything is running as expected. Kubernetes provides status information for deployments, pods, and services, helping you confirm whether workloads are healthy or still starting up. Rather than focusing on individual containers, you inspect the state of higher-level resources to understand the overall behavior of your application in the cluster.13. Recap
Deploying applications on AKS is about declaring intent, not managing containers manually. You define what should run, and Kubernetes handles how it runs - scheduling pods, restarting failures, and routing traffic.14. Let's practice!
Head to the exercises to practice creating a Kubernetes deployment for a web app.Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.