Volume 11 · Chapter 4 — Advanced Cloud Architecture, Azure Solution Architect & Enterprise Platform Engineering
Azure Kubernetes and Container Platforms
4.1 Introduction
Containers and Kubernetes are the portable, resilient foundation for modern workloads, and AKS provides managed Kubernetes with Azure integration. Volume 8, Chapter 6 covered AKS in production depth (node pools, autoscaling, workload identity, zero-downtime deploys); this chapter takes the architect’s view of when to choose Kubernetes at all, and how to run it as a governed platform for many teams rather than a collection of hand-built clusters.
4.2 Choosing the Right Container Platform
Kubernetes is powerful but heavy. The architect first asks whether the workload actually needs it: Azure Container Apps offer serverless containers with autoscaling (including to zero), ingress, and revisions for most microservices at a fraction of the operational cost, while AKS is justified when you need the full Kubernetes API, complex orchestration, specific ecosystem tooling, or multi-cloud portability. Adopting Kubernetes for résumé reasons rather than requirements is a common, expensive mistake.
flowchart TB
Need{"Need full K8s API,\ncomplex orchestration,\nor portability?"} -- "No" --> ACA["Azure Container Apps\n(serverless, less ops)"]
Need -- "Yes" --> AKS["AKS\n(managed Kubernetes)"]
AKS --> Plat["Run as a governed\nplatform for many teams"] 4.3 AKS as a Governed Platform
When AKS is the right choice, the architect designs it as a platform product with guardrails, not a shared free-for-all: node pools separating system, user, and spot/specialized workloads; namespaces with resource quotas and network policies isolating teams; a private cluster with no public API endpoint; Entra ID + Kubernetes RBAC for access; Workload Identity for secretless pod-to-Azure auth; Key Vault via the CSI driver; and image scanning and signing in the pipeline. All of it is codified so teams deploy onto a governed, self-service platform.
4.4 Registry, Security, and Delivery
Azure Container Registry stores signed, scanned private images. Containers run least-privilege - non-root, read-only filesystems, minimal base images. Delivery flows through pipelines that build, scan, and roll out via readiness-gated updates or GitOps (Flux), with autoscaling (HPA/KEDA plus Cluster Autoscaler) and Pod Disruption Budgets making scaling and upgrades non-disruptive.
When would you choose Azure Container Apps over AKS?
I choose Container Apps when I want the benefits of containers and serverless scaling without the operational weight of running Kubernetes, which covers most microservice and event-driven workloads. Container Apps gives autoscaling (including scale-to-zero via KEDA), ingress, revisions for blue-green/canary, and Dapr integration, while Azure manages the underlying orchestration - so a team gets modern container deployment with far less to operate: no cluster upgrades, node management, or Kubernetes expertise required. I choose AKS instead when the workload genuinely needs the full Kubernetes API and ecosystem - complex orchestration, custom operators, specific CNCF tooling, fine-grained control over scheduling and networking, or multi-cloud portability of Kubernetes manifests - or where an existing Kubernetes investment and skill set make it the natural home. The deciding question is whether the workload’s requirements justify Kubernetes’ operational surface; if a handful of stateless services just need to scale and receive traffic, Container Apps delivers that with a fraction of the burden, and reserving AKS for the cases that truly need its power avoids paying Kubernetes’ complexity tax unnecessarily.
How do you design a multi-team AKS platform that is secure and self-service?
I treat AKS as a platform product with strong, automated guardrails so teams self-serve safely rather than each building bespoke, inconsistent clusters. I separate workloads with node pools (system vs user vs spot/specialized) and isolate teams and environments with namespaces plus resource quotas and network policies, so one team cannot starve or reach into another. Security is baked in: a private cluster with no public API endpoint, Entra ID integrated with Kubernetes RBAC for access, Workload Identity so pods authenticate to Azure services with no stored secrets, Key Vault via the CSI driver, pod security standards, and image scanning and signing enforced in the pipeline. Networking uses Azure CNI with an ingress controller and WAF, and autoscaling combines HPA/KEDA with the Cluster Autoscaler, with sane requests/limits and Pod Disruption Budgets so scaling and upgrades are safe and non-disruptive. Delivery is GitOps or pipeline-driven with progressive rollout, and observability (managed Prometheus/Grafana, Container Insights, OpenTelemetry) is standard. Crucially, all of this is codified as IaC and platform templates, and onboarding a team or app means consuming those templates, so the secure, governed configuration is the default and the easy path. The goal is developer self-service within automated guardrails - teams move fast on a paved road while the platform team owns security, governance, and the operational baseline.
4.5 Banking Enterprise Scenario
A bank runs its microservices on a governed, private AKS platform. New teams onboard by consuming platform IaC templates that provision a namespace with quotas, network policies, Workload Identity, and a CI/CD pipeline that scans and signs images to ACR. System, user, and spot node pools separate workloads, KEDA scales settlement consumers on queue depth, and readiness-gated rollouts with Pod Disruption Budgets keep deployments and upgrades non-disruptive. Simpler internal services that do not need Kubernetes’ full power run on Azure Container Apps instead, reserving AKS’s complexity for the workloads that justify it.
Chapter Revision Notes
- Ask whether the workload needs Kubernetes - Container Apps fits most microservices with less ops.
- Reserve AKS for full-K8s needs: complex orchestration, ecosystem tooling, portability.
- Run AKS as a governed platform: node pools, namespaces+quotas, private cluster, Workload Identity.
- Enforce least-privilege containers, signed/scanned images, and network policies.
- Codify the platform as IaC templates so teams self-serve on a secure paved road.