With the token created, deploy the zone control plane on your Kubernetes cluster:
-
Create and navigate to the working directory for this guide:
mkdir -p ~/mesh-konnect && cd ~/mesh-konnect
-
Export the KDS global address for your region:
export CONTROL_PLANE_URL="grpcs://$KONNECT_REGION.mesh.sync.konghq.com:443"
-
Create the kong-mesh-system namespace:
kubectl create namespace kong-mesh-system
-
Add the Kong Mesh Helm repository:
helm repo add kong-mesh https://kong.github.io/kong-mesh-charts
-
Update your Helm repositories:
-
Store the control plane token in a Kubernetes secret:
echo "
apiVersion: v1
kind: Secret
metadata:
name: cp-token
namespace: kong-mesh-system
type: Opaque
stringData:
token: $CONTROL_PLANE_TOKEN
" | kubectl apply -f -
-
Create the Helm values file:
cat <<EOF > values.yaml
kuma:
controlPlane:
mode: zone
zone: zone-1
kdsGlobalAddress: $CONTROL_PLANE_URL
konnect:
cpId: $CONTROL_PLANE_ID
secrets:
- Env: KMESH_MULTIZONE_ZONE_KDS_AUTH_CP_TOKEN_INLINE
Secret: cp-token
Key: token
ingress:
enabled: true
egress:
enabled: true
EOF
-
Install Kong Mesh:
helm upgrade --install -n kong-mesh-system kong-mesh kong-mesh/kong-mesh -f values.yaml
Once the zone control plane is running, it connects to the global control plane and appears in Konnect.