Trying to set up meshery with docker but cannot detect the cluster

I have set up meshery repository locally and installed docker/docker desktop along with the mesher extension.

Now when I try executing

mesheryctl system start

I get

Error: CreateFile C:\Users\dsawa\.kube\config: The system cannot find the path specified.. Your local context is configured to run Meshery on Kubernetes using the default token.
The Kubernetes cluster is not accessible. Please confirm that the cluster is running. See https://docs.meshery.io/installation/quick-start for additional instructions.

I see that the config doesn’t detect the docker host, can someone throw light on what steps to follow to troubleshoot this? Quite possible that my understanding of the flow is incomplete so would appreciate any clarifications.

You have to confirm if your Kubernetes cluster is running and if there is a configuration file at that location.

  1. Confirm that you have Enabled Kubernetes on the Docker desktop.
  2. If the cluster is already running, use kubectl to (re)generate the configuration file. kubectl config view --raw > C:\Users\dsawa\.kube\config and try again.

Please let me know if I misunderstood or if you have been able to resolve it.

ok. thanks for the response. I have enabled kubernetes and a cluster is running on my docker desktop. This resource Deploy on Kubernetes with Docker Desktop | Docker Docs was helpful in setting up the cluster on docker desktop.

1 Like