Hey everyone! I'm using Docker for fun, running a few containers with a compose file for apps like Nextcloud, Minecraft, Pi-hole, and I'm thinking about adding JupyterHub. However, I keep seeing that Kubernetes is recommended for JupyterHub. But does this mean I have to swap everything over to Kubernetes since it seems pretty different from Docker Compose? Is there a way to keep it all in one place without a complete overhaul?
4 Answers
You might want to check out the JupyterHub deployment resources on GitHub here: https://github.com/jupyterhub/jupyterhub-deploy-docker. It's a good place to start to see how JupyterHub can fit into your plans without too much hassle.
I tried bridging the gap between Docker Compose and Kubernetes using Kompose, which can convert your Docker Compose files into Kubernetes resource files. It's not entirely straightforward—you need to migrate your containers and volumes manually. It's more complex than the jump from Docker to Docker Compose, but it could work out for you if you're up for it! Just be prepared to edit the output YAML files.
If you decide to dive into Kubernetes, I recommend giving kind a shot. It's a user-friendly way to set up your K8s environment and helped me go from Docker Compose to Kubernetes pretty smoothly. I still use Docker Compose for a lot of my daily tasks, though!
I'm still using Docker Swarm for my production setup, despite my experiments with Kubernetes blowing up my mini cluster. If you're looking for something simpler while transitioning, sticking with Docker Swarm for now might be a good bridge before going fully into Kubernetes.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux