Welcome to Service Mesh Hub, the open-source, multi-cluster, multi-mesh management plane. Service Mesh Hub simplifies service-mesh operations and lets you manage multiple clusters of a service mesh from a centralized management plane. Service Mesh Hub takes care of things like shared-trust/root CA federation, workload discovery, unified multi-cluster/global traffic policy, access policy, and more.
Service Mesh Hub has a CLI tool called
meshctl that helps bootstrap Service Mesh Hub, register clusters, install meshes, and more. Get the latest
meshctl from the releases page on solo-io/service-mesh-hub.
You can also quickly install like this:
curl -sL https://run.solo.io/meshctl/install | sh
Once you've downloaded the correct binary for your architecture, run the following to make sure it's working correctly:
You can add
meshctl to your path for global access on the command line. See:
Spinning up clusters with Kind (Kubernetes in Docker)
You should have access to a Docker daemon along with
kind installed for the following to work.
If you have access to a single Kubernetes cluster, skip to the section below for a single cluster.
To spin up two Kubernetes clusters with Kind, run:
meshctl demo init
This will spin up two Kubernetes clusters in Docker with Istio installed on each. Additionally, this will install Service Mesh Hub on one of the clusters. Both clusters will be registered with Service Mesh Hub under the names
remote-cluster, which will be used throughout the documentation.
Creating cluster "management-plane-bdefd91b0749a8854b3af6d7e44a1f53" ... ✓ Ensuring node image (kindest/node:v1.17.0) 🖼 ✓ Preparing nodes 📦 ✓ Writing configuration 📜 ✓ Starting control-plane 🕹️ ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 Set kubectl context to "kind-management-plane-bdefd91b0749a8854b3af6d7e44a1f53" You can now use your cluster with: kubectl cluster-info --context kind-management-plane-bdefd91b0749a8854b3af6d7e44a1f53 Thanks for using kind! 😊 Creating cluster "remote-cluster-88c93dcb26cfed3408ee0e64579a70cb" ... ✓ Ensuring node image (kindest/node:v1.17.0) 🖼 ✓ Preparing nodes 📦 ✓ Writing configuration 📜 ✓ Starting control-plane 🕹️ ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 Set kubectl context to "kind-remote-cluster-88c93dcb26cfed3408ee0e64579a70cb" You can now use your cluster with: kubectl cluster-info --context kind-remote-cluster-88c93dcb26cfed3408ee0e64579a70cb Have a nice day! 👋
To connect to each of the clusters, run the following:
export MGMT_PLANE_CTX=kind-management-plane-bdefd91b0749a8854b3af6d7e44a1f53 export REMOTE_CTX=kind-remote-cluster-88c93dcb26cfed3408ee0e64579a70cb
Then you can run the following to connect to the management-plane cluster:
kubectl --context $MGMT_PLANE_CTX get po -n service-mesh-hub
You should see Service Mesh Hub 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:
You should see something similar:
✅ Kubernetes API ----------------- ✅ Kubernetes API server is reachable ✅ running the minimum supported Kubernetes version (required: >=1.13) ✅ Service Mesh Hub Management Plane ------------------------------------ ✅ installation namespace exists ✅ components are running ✅ Service Mesh Hub check found no errors
Setting up Kind and multiple clusters on your machine isnt’ 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.
You should be ready to run the steps in the rest of the Guides.
Cleaning up this demo environment is as simple as running the following:
meshctl demo cleanup
In this quick-start guide, we installed Service Mesh Hub. If these installation usecases were to simplistic or not representative of your environment, please check out our Setup Guide. Otherwise, please check out our Guides to explore the power of Service Mesh Hub.