- Fork this repo and set it up with spacelift.io or equivalent
- Create a Digital Ocean API Key and set it as DIGITALOCEAN_TOKEN
- Make sure to set the root directory to digitalocean-k8s/
- Run and apply the Terraform (took me 10 minutes)
- Navigate to the IP address of the load balancer (Networking / Load Balancers).
- 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!