docs/static/v0.6/installation/kubernetes/minikube/index.html
Manage your Minikube clusters with Meshery. Deploy Meshery in Minikube in-cluster or outside of Minikube out-of-cluster. Note: It is advisable to Install Meshery in your Minikube clusters
Prerequisites
Also see: Install Meshery on Kubernetes
Follow the steps below to install Meshery in your Minikube cluster.
Read through the following considerations prior to deploying Meshery on Minikube.
Start the minikube, if not started using the following command:
`minikube start --cpus 4 --memory 8192 --kubernetes-version=v1.14.1`
Check up on your minikube cluster :
`minikube status`
Verify your kubeconfig’s current context.
`kubectl config current-context`
`$ MESHERY_SERVER_CALLBACK_URL=https://custom-host mesheryctl system start`
Meshery should now be running in your Minikube cluster and Meshery UI should be accessible at the INTERNAL IP of meshery service.
mesheryctlUse Meshery’s CLI to streamline your connection to your Minikube cluster. Configure Meshery to connect to your Minikube cluster by executing:
`$ mesheryctl system config minikube`
Once configured, execute the following command to start Meshery.
`$ mesheryctl system start`
If you encounter any authentication issues, you can use mesheryctl system login. For more information, click here to learn more.
For detailed instructions on installing Meshery using Helm V3, please refer to the Helm Installation guide.
You may also manually generate and load the kubeconfig file for Meshery to use:
The following configuration yaml will be used by Meshery. Copy and paste the following in your config file :
`apiVersion: v1
clusters:
- cluster:
certificate-authority-data: < cert shortcutted >
server: https://192.168.99.100:8443
name: minikube
contexts:
- context:
cluster: minikube
user: minikube
name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
user:
client-certificate-data: < cert shortcutted >
client-key-data: < key shortcutted >`
Note: Make sure current-context is set to minikube.
To allow Meshery to auto detect your config file, Run :
`kubectl config view --minify --flatten > config_minikube.yaml`
Meshery should now be connected with your managed Kubernetes instance. Take a look at the Meshery guides for advanced usage tips.
Follow the installation steps to setup the mesheryctl CLI and install Meshery.
Users using docker driver : After completing the Meshery installation, execute the following commands to establish connectivity between Meshery Server and Kubernetes cluster:
docker network connect bridge meshery\_meshery\_1
docker network connect minikube meshery\_meshery\_1
To establish connectivity between a particular Meshery Adapter and Kubernetes server, use “docker ps” to identify the name of the desired container, and execute the following commands:
docker network connect bridge \< container name of the desired adapter \>
docker network connect minikube \< container name of the desired adapter \>
Install Meshery on Docker (out-of-cluster) and connect it to your Minikube cluster.
`$ mesheryctl system start -p docker`
Configure Meshery to connect to your cluster by executing:
`$ mesheryctl system config minikube`
Once you have verified that all the services are up and running, Meshery UI will be accessible on your local machine on port 9081. Open your browser and access Meshery at http://localhost:9081.
kubectl config view --minify --flatten \> config\_minikube.yaml
To access Meshery’s UI, please refer to the instruction for detailed guidance.