This guide creates a Konnect-managed global control plane, connects a Kubernetes zone, and verifies that the zone is online.
Create a new global control plane running v3, deploy a 3.x zone control plane with its Konnect credentials, and verify that the zone connects.
Prerequisites
Kong Konnect
If you don’t have a Konnect account, you can get started quickly with our onboarding wizard.
- The following Konnect items are required to complete this tutorial:
- Personal access token (PAT): Create a new personal access token by opening the Konnect PAT page and selecting Generate Token.
-
Set the personal access token as an environment variable:
export KONNECT_TOKEN='YOUR KONNECT TOKEN'
kongctl v1.28.4+
This tutorial uses kongctl to manage Konnect resources programmatically. We recommend keeping kongctl up to date with the latest version (1.28.4).
- Install kongctl from developer.konghq.com/kongctl.
-
Verify the installation:
kongctl version
Create the global control plane
- In the Konnect sidebar, click Service Mesh.
- Click Create a service mesh.
- In the Name field, enter
example-cp. - From the Version dropdown menu, select “v3”.
- Click Save.
-
Copy the control plane ID and export it:
export CONTROL_PLANE_ID='YOUR_CONTROL_PLANE_ID' -
Export your Konnect region:
export KONNECT_REGION='us'
Add the zone
- In the Konnect sidebar, click Service Mesh.
- Click example-cp.
- Click Create zone.
- Select Kubernetes.
- In the Name field, enter
zone-1. - In the Use token from system account dropdown menu, select the name under Autogenerate new system account with the name.
- Click Create system account and issue token.
- Copy the generated zone token and export it to your environment:
export CONTROL_PLANE_TOKEN='YOUR_GENERATED_ZONE_ACCESS_TOKEN' - Run the commands provided in Konnect to deploy the zone control plane.
- Once the zone is connected, click Close.
Validate
Confirm the zone is connected to your global control plane:
- In the Konnect sidebar, click Service Mesh.
- Click example-cp.
- Confirm that
zone-1appears in the list of zones with an Online status.
If a zone is missing or not Online, check:
- The zone’s control plane logs
- Outbound access to the KDS address
- The control plane ID
- The system account’s
Connectorrole and token
Cleanup
Remove the Kubernetes zone
Delete the test namespace:
kubectl delete namespace kong-mesh-demoUninstall the zone release:
helm uninstall kong-mesh --namespace kong-mesh-systemDelete the zone namespace and the cp-token Secret in it:
kubectl delete namespace kong-mesh-systemDelete the control plane
Delete the example-cp control plane. This also removes its mesh configuration:
- In the Konnect sidebar, click Service Mesh.
- Click example-cp.
- From the Actions dropdown menu, select “Delete control plane”.
- In the confirmation dialog, enter
example-cp. - Click Yes, delete.
Delete the system account
Delete the system account that the zone wizard created for zone-1:
- In the Konnect sidebar, click Organization.
- Click the System Accounts tab.
- Click the system account created for
zone-1. - From the Actions dropdown menu, select “Delete”.
- In the confirmation dialog, enter the name of the system account.
- Click Yes, remove.