ON-PREM CHOREO CLOUD BOTH

What it is

The OpenChoreo cluster-gateway is a WebSocket hub on the control plane. The cluster-agent in every other plane dials out to it and keeps the connection open. The control plane then sends instructions down those connections.

Why it exists

Control planes should not store the credentials of every cluster they manage. Because each plane opens the connection outward, the control plane does not need to reach into the plane.

How it works

  • Serves the plane WebSocket (path /ws) on port 8443. The OpenChoreo API and the controller-manager call its internal API (/api/*) on port 8444, and a plain health endpoint answers on 8080.
  • The WebSocket uses mutual TLS. The gateway's own certificate is signed by the control plane CA named cluster-gateway-ca, which the setup scripts copy into each plane namespace as a ConfigMap so the agent can check it. The gateway asks every agent for a certificate and accepts it only if it chains to the clientCA of a plane resource with the same plane ID.
  • By default the agent certificate comes from a CA that each plane makes for itself and stores in the cluster-agent-tls secret. The setup scripts register that CA on the plane resource as its clientCA.
  • The internal API on 8444 asks callers for a client certificate from a separate internal CA. The chart turns this on by default (clusterGateway.internalMtls.enabled).
  • The gateway keeps the agent connections in its own memory, so the chart allows exactly one replica.
  • On Choreo Cloud the same role is played by the cluster-gateway on cloud-dp-oc-cp.

Identity and access

Both sides present certificates (mutual TLS). A plane that cannot present a certificate signed by the expected authority cannot connect, and a certificate that is valid for one plane resource is not accepted for another.

Key facts

Ports
8443 (plane WebSocket), 8444 (internal API), 8080 (health)
Replicas
1 (the chart allows no more)
Namespace
openchoreo-control-plane
Side
Control plane

Used by (2)

  • called by OpenChoreo controller-manager
    The controller reaches plane agents only through the cluster-gateway internal API
    HTTPS on port 8444, proxied to the plane agent over its WebSocket
  • called by OC cluster-agent
    Plane registration and commands
    mTLS WebSocket (agent dials out) on 8443