What you will learn
- Say what runs on cloud-dp-oc-cp and what runs on cloud-dp-oc-dp
- Say how an organisation's name is turned into a namespace
- Explain which cluster opens the connection to which, and why that matters
- Tell the Valkey and gateway on the data plane from the look-alikes on cloud-cp
Before you start
- cloud-cp: Choreo Labs' own control plane Not started In progress Done
- The four planes Not started In progress Done
On this page
Two of the five clusters work as a pair. One holds the control plane that customers’ OpenChoreo objects are managed through. The other is where the customers’ agents run. This lesson opens both.
Cluster 2: cloud-dp-oc-cp, the customer control plane
cloud-dp-oc-cp is the OpenChoreo control plane for customer work. It is a k3s cluster, not EKS. Two things on it matter most.
- A gateway in front of the OpenChoreo API. The API is
openchoreo-api, the one that platform-api, which you met in the last lesson, forwards calls to. - The Cluster-gatewayA WebSocket hub on the OpenChoreo control plane. The cluster-agent in each other plane dials it over mutual TLS, and work for the plane travels down that line.See it in the glossary. The cluster-gateway and secret-manager-api run in the
openchoreo-control-planenamespace of this cluster, as far as the files show. On AWS the cluster-gateway has an internal and a public load balancer service, and both forward port 443 to port 8443 of the gateway. On dev there is one load balancer service with the same port mapping.
The cluster-gateway is the hub that the other planes dial. A plane’s cluster-agent opens a secure WebSocket connection to it, and both sides show certificates. So the customer-side clusters reach in to the hub. The control plane does not need inbound access to them for this line.
One namespace for each organisation
On Choreo Cloud, each organisation gets a namespace of its own in OpenChoreo. Platform-api works the name out from the organisation’s id, so the same id gives the same name. The pattern is wc-<8 hex of the org id>-<8 hex of its sha256>, with the hyphens of the id left out and the letters in lower case. Here is the same idea with a made-up id, not a real one.
Cluster 3: cloud-dp-oc-dp, the customer data plane
cloud-dp-oc-dp is the data plane. It runs the customers’ agents, and it is also where the AI gateway of each organisation environment runs. On the environments where the orchestrated gateway is on (dev, stage-v2, prod-v2 and prod-v2-eu), the provisioner, which runs on cloud-cp, applies a gateway ResourceType, the gateway Resource and a ResourceReleaseBinding for each organisation environment. All of its writes to OpenChoreo go through platform-api. On stage and prod, platform-api’s own hook applies the gateway objects. Lesson L12.2.3 follows both paths. The data plane then renders the gateway. On AWS it is exposed through an internet-facing ingress for the agent-manager host names.
The data plane also runs Valkey, the store of the rate-limit counters of the API Platform gateways. It is installed by a HelmRelease in the openchoreo-data-plane namespace.
Who dials whom
The control side does not need to reach into the data side’s network for the cluster-agent line. The data plane’s cluster-agent dials out to the cluster-gateway on cloud-dp-oc-cp. That is the same direction as on-prem, where the data side opens the line.
Your turn
Open Try it. The cloud-dp-oc-cp card for prod-v2 is open. Read what runs on it, then press cloud-dp-oc-dp and compare. Find the cluster-gateway and the rate-limit Valkey. Which side of the map are they on?
Recap
cloud-dp-oc-cpis a k3s cluster with the customer control plane. It holds the gateway in front of the OpenChoreo API and the cluster-gateway that the other planes dial.- Each organisation is one namespace, and its name comes from the organisation id, so the same id gives the same name.
cloud-dp-oc-dpis the data plane. It runs customers’ agents, the per-organisation gateways and the Valkey that holds rate-limit counters.- The plane clusters dial out to the cluster-gateway. The control plane does not dial in.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)