Deploying Applications on AKS

Azure Compute Solutions

Florin Angelescu

Azure Cloud Architect

Deploy applications

Deploy Deny

Deploy Deny

  • You don't deploy containers directly.
  • You describe the desired state of your application.
  • Kubernetes handles the rest.
Azure Compute Solutions

Deploy applications

 

Deployment

 

  • You define through the manifest:

    • How many instances
    • Which image to use
    • How they should behave
  • Kubernetes keeps reality aligned with that definition.

Azure Compute Solutions

From image to pods

 

Deployment

 

 

  • Applications deployed to AKS are packaged as container images.
  • Typically stored in Azure Container Registry.
Azure Compute Solutions

From image to pods

Deployment

Deployment

  • AKS pulls the specified image.
  • Schedules pods onto available nodes in the cluster.
Azure Compute Solutions

From image to pods

 

Deployment

 

  • Pod = one running instance of your application.

  • Multiple replicas are defined:

    • Kubernetes creates multiple pods
    • Potentially across different nodes
    • Improves availability and resilience
Azure Compute Solutions

Deployments and replicas

 

Deployment

 

  • Kubernetes deployment is responsible for managing pods over time.
  • Ensures the correct number of replicas are running.
  • Replaces pods automatically if they fail.
Azure Compute Solutions

Deployments and replicas

 

Deployment

 

  • A pod crashes or a node becomes unavailable.
  • Kubernetes detects the issue.
  • Recreates the pod elsewhere in the cluster.
Azure Compute Solutions

Exposing applications

Replicas

  • 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.
Azure Compute Solutions

Exposing applications

Replicas

  • Internal services:
    • For cluster-only communication
Azure Compute Solutions

Exposing applications

Replicas

  • Load-balanced services (external):
    • Expose applications externally
    • Using Azure infrastructure
Azure Compute Solutions

Verifying application state

 

Replicas

 

  • Kubernetes provides status information for:

    • Deployments
    • Pods
    • Services
  • Helps confirm:

    • Workloads are healthy
    • Still starting up
Azure Compute Solutions

Recap

Kubernetes

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.

Azure Compute Solutions

Let's practice!

Azure Compute Solutions

Preparing Video For Download...