Kubernetes
I started with plain Docker then moved to using Docker Compose so that I could manage groups of containers.
When I found out healthcheck in Docker and Docker Compose reported status but would not restart unhealthy container(s) for me, I started looking at Docker Swarm.
Months and years passed and Kubernetes became the hip thing so here I am, trying to jump past Docker Swarm straight to Kubernetes. Henceforth "K8s". An example of that "time passing" thing, I spent a year making ArcGIS Enterprise work in Docker Compose (and never finished), now Esri supports it in Kubernetes.
So, jumping in. Right now.
Single node?
Well, at this moment in time all I want is a working healthcheck / restart thing. Maybe K8s offers a nice web interface? I have no idea. Once I have a single node functioning 100%, I can think about > 1 node. (I have Raspberry Pis!!!)
Even if you pine for a life in the Cloud with hundreds or thousands of servers at your beck and call, a single node is a good starting point.
Here is a guide! I love guides. https://bell-sw.com/announcements/2022/09/14/how-to-create-a-single-node-kubernetes-cluster/ Dmitry makes the case for a single node.
For a test, what I want is
- Varnish as a reverse proxy, with HTTPS supported.
- A way to maintain the certificates for HTTPS (certbot)
- A sample web server.
Resources
The home page. https://kubernetes.io/