Skip to main content

Control Plane Connection

You're reading API Gateway 1.0.0. The newest release is 1.2.0. Go to the newest release
note

This step is optional. Configure it only if the gateway needs to sync API artifacts from the WSO2 APIM control plane or API Platform Cloud control plane.

The WSO2 API Platform gateway supports two fundamentally different deployment approaches, distinguished by the direction of API flow.

In this model, the platform control plane pushes APIs to the gateway via a persistent WebSocket connection. Use this approach when APIs are managed centrally and distributed to one or more gateway instances.

Create a secret for the registration token:

The registration token is generated when you register the gateway with your control plane. Refer to the setup guide for your control plane to obtain it:

kubectl create secret generic gateway-cp-token \
--namespace <your-namespace> \
--from-literal=token='your-registration-token'

Configure the chart:

gateway:
config:
controller:
gateway_name: "prod-gateway"
server:
gateway_id: "prod-gateway"
controlplane:
insecure_skip_verify: true
reconnect_initial: 1s
reconnect_max: 5m
polling_interval: 15m
sync_batch_size: 50
gateway_name: "prod-gateway" # must match the gateway name registered in the controlplane
controller:
controlPlane:
host: "apim-wso2am.example.com:9443"
token:
secretName: "gateway-cp-token"
key: token

Was this page helpful?