Skill 1.2.3

Deploy and manage applications to Azure Kubernetes Service (AKS) by using manifest files

Key Concepts

A manifest is a YAML file that describes Kubernetes objects. A Deployment declares a Pod template (image, ports, environment variables, resource requests and limits, probes) and a replica count, and manages a ReplicaSet that keeps that number of Pods running. A Service gives the Pods a stable virtual IP and DNS name, and a ConfigMap or Secret supplies configuration. kubectl apply -f creates or updates objects so that the cluster matches the files.

Changing the image in a Deployment starts a rolling update that replaces Pods gradually; kubectl rollout status follows it and kubectl rollout undo returns to the previous ReplicaSet. AKS pulls from ACR when the registry is attached to the cluster, which grants the kubelet identity AcrPull. Namespaces separate applications and teams, and readiness probes keep traffic away from Pods that are not ready.