Bootstrap Gloo Mesh on Kind

The easiest way to get started with Gloo Mesh is by using Kind to run local Kubernetes clusters in Docker. There is a demo command in meshctl that will create a full demonstration environment on your local system. All you need is Docker, Kind, and kubectl installed.

If you prefer to use an existing Kubernetes cluster, check out our Setup Guide.

To spin up two Kubernetes clusters with Kind, run:


meshctl demo istio-multicluster init

GLOO_MESH_LICENSE_KEY=<your_key_here> # You'll need to supply your own key
meshctl demo istio-multicluster init --enterprise --license $GLOO_MESH_LICENSE_KEY

The command will do the following:

Creating cluster mgmt-cluster with ingress port 32001
Creating cluster "mgmt-cluster" ...
 ✓ Ensuring node image (kindest/node:v1.17.5) �
 ✓ Preparing nodes ��
 ✓ Writing configuration ��
 ✓ Starting control-plane 🕹
 ✓ Installing CNI ��
 ✓ Installing StorageClass ��
Set kubectl context to "kind-mgmt-cluster"
You can now use your cluster with:

kubectl cluster-info --context kind-mgmt-cluster

...

Creating cluster remote-cluster with ingress port 32000
Creating cluster "remote-cluster" ...
 ✓ Ensuring node image (kindest/node:v1.17.5) �
 ✓ Preparing nodes ��
 ✓ Writing configuration ��
 ✓ Starting control-plane 🕹
 ✓ Installing CNI ��
 ✓ Installing StorageClass ��
Set kubectl context to "kind-remote-cluster"
You can now use your cluster with:

kubectl cluster-info --context kind-remote-cluster

To connect to each of the clusters, run the following:

export MGMT_CONTEXT=kind-mgmt-cluster
export REMOTE_CONTEXT=kind-remote-cluster

Then you can run the following to connect to the mgmt-cluster cluster:

kubectl --context $MGMT_CONTEXT get po -n gloo-mesh

You should see Gloo Mesh installed:

NAME                              READY   STATUS    RESTARTS   AGE
csr-agent-8445578f6d-6hzls        1/1     Running   0          3m28s
mesh-discovery-8657d4dd66-dlks8   1/1     Running   0          3m32s
mesh-networking-58b68b7b6-ljjcr   1/1     Running   0          3m32s

To verify the installation came up successfully and everything is in a good state:

meshctl check

You should see something similar to the following:

Gloo Mesh
-------------------
✅ Gloo Mesh pods are running

Management Configuration
---------------------------
✅ Gloo Mesh networking configuration resources are in a valid state

Setting up Kind and multiple clusters on your machine isn't always the easiest, and there may be some issues/hurdles you run into, especially on “company laptops” with extra security constraints. If you ran into any issues in the previous steps, please join us on the Solo.io slack and we'll be more than happy to help troubleshoot.

Next steps

In this quick-start guide, we installed Gloo Mesh and registered clusters. If these installation use cases were too simplistic or not representative of your environment, please check out our Setup Guide. Otherwise, please check out our Guides to explore the power of Gloo Mesh.

Clean up

Cleaning up this demo environment is as simple as running the following:

meshctl demo istio-multicluster cleanup