Using Mesh Manager, you can create global Control Planes to manage your Kong Mesh meshes. This guide explains how to configure a global Control Plane and then install the Kubernetes demo app to test out the Kong Mesh interface in Konnect.
Configure a Mesh global Control Plane with the Kubernetes demo app
Prerequisites
- A Kubernetes cluster with load balancer service capabilities
-
kubectlinstalled and configured - The latest version of Kong Mesh
Create a global Control Plane in Konnect
Before you can add services or apply configurations, you must create a global Control Plane.
- In Mesh Manager, click New Global Control Plane.
- Name the Control Plane
example-cpand click Save.
The global Control Plane is now created but has no functionality until you connect a zone.
Create a zone in the global Control Plane
After creating the global Control Plane, add a zone to connect services and receive configuration updates.
- In the
example-cpControl Plane, click Create Zone. -
Enter
zone-1as the name, then click Create Zone & generate token.The zone name must use lowercase alphanumeric characters or hyphens, and start and end with an alphanumeric character.
- Follow the Helm and token setup instructions in the UI. Once the zone is running, it will appear in Mesh Manager.
You now have a minimal Kong Mesh mesh. The next step is to add services.
Add services to your mesh
To test your mesh, deploy the Kubernetes demo app:
kubectl apply -f https://raw.githubusercontent.com/kumahq/kuma-counter-demo/master/demo.yaml
kubectl wait -n kuma-demo --for=condition=ready pod --selector=app=demo-app --timeout=90s
This creates:
-
demo-app: a counter web app on port 5000 -
redis: the backing data store
To see these services:
- Open Mesh Manager, select
example-cp, and click Meshes. - Click Default, then go to the Services tab.
Configure kumactl to connect to the global Control Plane
Because the mesh is deployed on Kubernetes,
kumactlis read-only. You manage resources usingkubectl. Still, it’s best practice to configurekumactlfor visibility and diagnostics.
- In Mesh Manager, select
example-cp. - From the Actions menu, choose Configure kumactl and follow the steps.
-
Verify the demo services are running:
kumactl get dataplanesCopied!
You should see two data planes: demo-app and redis.
See the kumactl command reference for more information.
Conclusion
You’ve successfully:
- Created a global Control Plane in Konnect
- Added a zone
- Deployed demo services
- Connected
kumactlto your Control Plane
Next steps
Try enabling traffic permissions on your demo services to explore Kong Mesh’s policy features.