I’m taking a small detour today, to a topic that’s not strictly Go-related, but which I get asked about a lot: Docker and Kubernetes.
Starting on Monday, in what is likely to become a 2- or 3-week series, I’m going to be deploying a small Go app I wrote, to Kubernetes on Google Cloud.
I’ve done this before, but it’s been a few years, so I’m a bit rusty. And Kubernetes has changed (as it always does), so there are sure to be some educational bumps along the way.
My general plan of attack:
- Make sure the app is building and running against a modern version of Go (I haven’t touched it in years, so this might require some tinkering)
- Make it work from a Docker container.
- Set up a Kubernetes cluster on Google Cloud (GKE).
- Write a helm chart for the app
- Deploy the app
- Automate deployment my build pipeline
- Optional: Set up logging and monitoring, or other extras, if interest and time permit.
I hope you’ll join me!