Docker Desktop
Connect Infra App to your local Kubernetes cluster in Docker Desktop
Prerequisites
Install Docker Desktop
Enable Kubernetes
Access Docker Desktop preferences by click on the Docker Desktop menu bar icon and then Preferences...

Navigate to Kubernetes in the sidebar, then click Enable Kubernetes. Finally click Apply & Restart

Connect Infra App
Infra App will automatically work with Docker Desktop. Simply open it by clicking on the Cluster Switcher and then choosing docker-desktop:

Voila! Infra App is now connected to Docker Desktop's Kubernetes cluster:
Installing Metrics Server
Metrics server isn't included with Docker Desktop's installation of Kubernetes, and the default metrics-server setup guide won't work out of the box. Follow the steps below to install metrics server:
Download the latest components.yaml file from https://github.com/kubernetes-sigs/metrics-server/releases and open it in your text editor.
Then, add the line --kubelet-insecure-tls under the args: section:
Warning: This setting should only be used for the local Docker Desktop Kubernetes cluster, and not recommended for any hosted or production clusters.
Last, apply the modified components.yaml config file to your cluster.
Last updated
Was this helpful?