Deployment
Configuring Kubernetes Gateway Agent¶
The agent can be configured in the following ways.
- API Manager as the control plane for APK
- APK as a gateway to API Manager
Common Configurations¶
-
Configure Control Plane(APIM) related configuration in Kubernetes Gateway Agent
Add the following configuration to the values.yaml file to provide control plane related configs to Kubernetes Gateway Agent. Here, the host of the Kubernetes Gateway Agent should be provided.
controlPlane: enabled: true serviceURL: https://apim-wso2am-cp-1-service.apk.svc.cluster.local:9443/ username: admin password: admin environmentLabels: Default skipSSLVerification: true eventListeningEndpoints: amqp://admin:[email protected]:5672?retries='10'&connectdelay='30'
-
Configure Dataplane (APK Gateway) related configuration in Kubernetes Gateway Agent
Add the following configuration to the values.yaml file to provide dataplane related configs to Kubernetes Gateway Agent. Here, the host of the APK Gateway should be provided.
dataPlane: enabled: true k8ResourceEndpoint: https://apk-wso2-apk-config-ds-service.apk.svc.cluster.local:9443/api/configurator/apis/generate-k8s-resources namespace: apk
API Manager as the control plane for APK¶
-
Change the mode of the agent configuration as shown below.
agent: mode: DPtoCP
APK as a gateway to API Manager¶
-
Change the mode of the agent configuration as shown below.
agent: mode: CPtoDP
serviceURL |
Service URL of the API Manager Control Plane |
environmentLabels |
Gateway environment labels can be found under the environments section in the API Manager deployment TOML which sets up the APK gateway. |
eventListeningEndpoints |
Event Listening Endpoint in the API Manager |
Username and Password |
Admin credentials of the API Manager |
k8ResourceEndpoint |
Config deployer service endpoint |
namespace |
Namespace where APK is deployed |
mode |
Mode to set up the agent |