I'm rebuilding my game platform on Azure Kubernetes Service, all in Terraform, one module at a time.
So far:
- Remote state in Azure storage, locked with a blob lease (the Azure version of S3 plus a lock table).
- A planned network with separate subnets for the cluster, private endpoints and a future VPN gateway.
- AKS with two node pools: one for system add-ons, one for apps.
- Overlay networking with Cilium, so pods get addresses from their own range instead of using up the network's, and network policies are enforced with eBPF.
- A private container registry that the cluster pulls from by identity, so there are no image-pull passwords.
- CI that builds the image, scans it with Trivy, and pushes it using OIDC.
To keep it cheap I stop the cluster between sessions and avoid the paid extras. Next up: Argo CD, so Git becomes the single source of truth for what runs in the cluster.