docs/static/v0.8/installation/kubernetes/kind/index.html
Manage your KinD clusters with Meshery. Deploy Meshery in your KinD cluster.
Also see: Install Meshery on Kubernetes
Follow the steps below to install Meshery in your KinD cluster.
Read through the following considerations prior to deploying Meshery on KinD.
Start KinD if it is not already started using the following command:
`kind create cluster`
Check the status of your KinD cluster:
`kind get clusters`
Verify your kubeconfig’s current context.
`kubectl config current-context`
mesheryctl#Verify your Meshery context
Verify that your current Meshery context is set for an in-cluster deployment (platform: kubernetes) by executing:
`$ mesheryctl system context view`
If the context is not set to platform: kubernetes, you can create a new context with Kubernetes as the platform using the following command.
`$ mesheryctl system context create context-name --platform kubernetes --url http://localhost:9081 --set --yes`
With your KIND cluster configured as your current-context, start Meshery.
`$ mesheryctl system start -p kubernetes`
See Helm Installation guide.
Meshery deploys with LoadBalancer service type by default. If you are using KinD, you may need to expose the Meshery service. A universal option is to use mesheryctl system dashboard --port-forward. A KIND-specific option is to use the Cloud Provider KIND. Cloud Provider KIND runs as a standalone binary in your host and connects to your KIND cluster and provisions new LoadBalancer containers for your Services.
Note: The --port-forward flag is intended for use exclusively when Meshery is deployed in a Kubernetes cluster (platform: kubernetes).
Optionally, you can verify the health of your Meshery deployment using mesheryctl system check.
You’re ready to use Meshery! Open your browser and navigate to the Meshery UI.
After successfully deploying Meshery, you can access Meshery’s web-based user interface. Your default browser will automatically open and navigate to Meshery UI (default location is http://localhost:9081).
You can use the following command to open Meshery UI in your default browser:
`$ mesheryctl system dashboard `
If you have installed Meshery on Kubernetes or a remote host, you can access Meshery UI by exposing it as a Kubernetes service or by port forwarding to Meshery UI.
`$ mesheryctl system dashboard --port-forward `
Depending on how you have networking configured in Kubernetes, you can use kubectl to port forward to the Meshery UI.
`$ kubectl port-forward svc/meshery 9081:9081 --namespace meshery`
After installing Meshery, regardless of the installation type, it is important to verify that your kubeconfig file has been uploaded correctly via the UI.
Connected.#Customizing Your Meshery Provider Callback URL
Meshery Server supports customizing your Meshery Provider authentication flow callback URL. This is helpful when deploying Meshery behind multiple layers of networking infrastructure.
For production deployments, it is recommended to access the Meshery UI by setting up a reverse proxy or using a LoadBalancer. By specifying a custom redirect endpoint, you can ensure that authentication flows complete successfully, even when multiple routing layers are involved.
Note : For production deployments, it is important to select the Remote Provider in order to control which identity providers are authorized. Learn more about this in the Extensibility: Providers guide.
Define a custom callback URL by setting up the MESHERY_SERVER_CALLBACK_URL environment variable before installing Meshery.
To customize the authentication flow callback URL, use the following command:
$ MESHERY\_SERVER\_CALLBACK\_URL=https://custom-host mesheryctl system start
Meshery should now be running in your Kubernetes cluster and the Meshery UI should be accessible at the EXTERNAL IP of the meshery service.