Kubernetes on Docker Desktop (for learning and development only)#

Important

Docker Desktop is a paid product with a freemium tier for individual developers.

Docker Desktop is bundled with a Kubernetes cluster on a single computer that requires activation in the Docker Desktop’s settings. Docker Desktop is suitable in order to learn about Kubernetes and to develop and test changes, but its not meant to be used for production purposes.

Important

The Zero to JupyterHub guide assumes you’re using a managed Kubernetes service with one of the main cloud platforms and Docker Desktop is not officially supported. You may be able to get help on the Jupyter community forum.

Kubernetes cluster requirements#

All the requirements are implemented in Docker Desktop >= 4.37.1 that includes Kubernetes >= 1.30.5:

Docker Desktop installation#

Follow the installation steps in the offical Docker Desktop’s Manual:

Kubernetes cluster creation#

  1. Click in Settings.

  2. Click in Kubernetes.

  3. Click in Enable Kubernetes.

  4. Click in Apply & restart.

To test if your cluster is initialized, run:

kubectl config get-contexts

The response should list the cluster docker-desktop.

kubectl get node

The response should list one running node.

Congrats. Now that you have your Kubernetes cluster running, it’s time to begin Setting up helm.