- Create an Azure Account and a service principal.
- Fork this repo and set it up with spacelift.io or equivalent
- Set ARM_CLIENT_ID, ARM_CLIENT_SECRET, ARM_SUBSCRIPTION_ID, ARM_TENANT_ID using the values when you created the service principal.
- Make sure to set the directory to azure-aks/
- Run and apply the Terraform (took me 5 minutes)
- Navigate to the IP address of the load balancer (Kubernetes services / coder-k8s-cluster / Services & Ingresses.
- Create the initial username and password.
- Go to Templates, click Develop in Kubernetes, and click use template
- Click create template (it will refresh and prompt for 3 more template inputs)
- Set var.use_kubeconfig to false
- Set var.namespace to coder
- Click create template
With the admin user created and the template imported, we are ready to launch a workspace based on that template.
- Click create workspace from the kubernetes template (templates/kubernetes/workspace)
- Give it a name and click create
- Within three minutes, the workspace should launch.
From there, you can click the Terminal button to get an interactive session in the k8s container, or you can click code-server to open up a VSCode window and start coding!