Component ยท Data side
gateway-operator 0.11.0
BOTH Component Gateway
What it is
The gateway-operator is a Kubernetes operator in the data plane. It watches gateway custom resources such as APIGateway and RestApi and installs the gateway Helm chart (controller and runtime) when it sees one.
Why it exists
Installing a gateway for each organization and environment should be a declarative resource, not a manual Helm command.
How it works
- Version 0.11.0, installed by the script ensure-gateway-operator.sh into openchoreo-data-plane.
- It sees an APIGateway custom resource and installs the gateway chart using the values from the referenced ConfigMap.
- It also reconciles resources such as RestApi that describe routes.
- On Choreo Cloud the data plane runs it under the name api-platform-operator.
Identity and access
It uses Kubernetes permissions inside the cluster. It passes the gateway registration token to the controller from the referenced Secret.
Key facts
- Version
- 0.11.0
- Namespace
- openchoreo-data-plane
- Watches
- APIGateway, RestApi and more
- Side
- Data plane (gateway)
Talks to (3)
- deploys to APG gateway-controller APIGateway CR to controller+runtimeK8s CR reconcile
- deploys to APG gateway-controller Installs controller and runtime from ConfigMap valuesHelm
- deploys to Per-organization gateways The API Platform operator turns each APIGateway object into a gateway controller and runtime pairAPIGateway custom resource
Used by (1)
- needed by APIGateway CR Operator reconciles CR and installs gateway chartCR watch