The Kubernetes Insider provides quick and easy access to Kubernetes Pods/Deployments and Services, running in Docker Desktop Kubernetes.
In Docker Desktop -
- Go to Preferences -> Kubernetes -> Check "Enable Kubernetes"
- Go to Preferences -> Extensions -> Check "Enable Docker Extensions"
The docker extension
cli is provided by default on the current versions of Docker Desktop.
Users can run the command below to install the extension, pulling the latest version and dependencies from Docker Hub -
docker extension install spurin/kubernetes-insider:latest
Extensions are available for Docker Desktop using the Marketplace -
Go to Dashboard -> Add Extensions -> Click on Marketplace tab -> Search for Kubernetes Insider -> Click on Install
-
From a terminal, navigate to
kubernetes-insider
root directory. -
Build the pre-requisite API image -
(cd image/kubernetes-insider-api; docker build -t spurin/kubernetes-insider-api:latest .)
-
Run the following command to build the extension -
make build-extension
-
Run the following command to install the extension -
make install-extension
This extension wouldn't be possible without the amazing efforts of loft and their open sourced Vcluster Docker Desktop Extension. The team at loft were able to solve a necessary problem, i.e. how to access a working kubeconfig that relates to the Docker Desktop in-built Kubernetes Server. Around this, they also built a handy control loop in React/Typescript that checks whether or not Kubernetes is running. This extension re-uses the control loops and adds a volume share to the kubeconfig file.
Great efforts loft! 🚀