Operate
Connectors
Point each port of the control plane at a service you already run — usage sink, events, logs, metrics, traces, OIDC, alerts, secrets, checkpoints, batch files, KV store.
In short
The control plane works the moment it installs: usage, events, logs, metrics, identity and alerts each run on a built-in default. A connector points one of these ports at a service you already run, such as your ClickHouse for usage, your OIDC provider for sign-in or your PagerDuty for alerts. An admin verifies and saves it on the Connectors page. The setting is stored in the database, a credential sealed with the install key, and the control plane restarts once to apply it. What to prepare on each service first — grants, policies, the IdP client, webhooks — is in Connector setup.
When you need it
- Usage must reach your own store before the database spool fills (alert
usage.no-sink). - People should sign in with your SSO instead of the shared admin token.
- Alerts must reach your pager, chat or Alertmanager.
- You run more than one replica and need a shared event bus.
- You want the control plane's records and audit stream in Splunk or an OpenTelemetry collector.
- Training jobs must resume on any node, or the batch API needs an object store.
Do it
The console's Connectors page does this for one port at a time:
Verify
On the port's card, fill the settings and press Verify. The control plane tries the candidate from its own pod within 5 s. The answer is
ok, or a kind:unreachable,refused,missing,invalidorno-probe(the adapter has no live check; a notifier is checked by a test alert instead). The detail is redacted. A required field left out isinvalidbefore any probe. A usage sink with a table also returns the table's schema state. Nothing is saved, and the eventconnector.verifiedrecords who verified what. With no adapter named, Verify checks the adapter running now; on an embedded default it answersokwith nothing to verify.Save
Press Save. A credential is sealed and never shown again. The control plane answers, publishes
connector.savedwith the names of the saved settings (never a value), and restarts itself. A stored setting wins over the same variable given throughextraEnv: at boot every stored row is set into the process environment, a sealed one opened first.Check
The doctor row turns green. On the next boot the control plane compares each port's adapter with the one the last boot ran, and
connector.changedrecordsfromandtowhen they differ. The first boot records what it runs and announces nothing.
The same through the API (admin):
export H="Authorization: Bearer $(kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d)"
curl -s -H "$H" -X POST https://cp.example.com/api/v1/connectors/usage/verify \
-H 'Content-Type: application/json' -d '{"adapter":"clickhouse","fields":{"dsn":"clickhouse://ch.example.com:8123/opod"}}'
curl -s -H "$H" -X PUT https://cp.example.com/api/v1/connectors/usage/settings \
-H 'Content-Type: application/json' -d '{"set":{"OPODCP_USAGE_DSN":"clickhouse://ch.example.com:8123/opod"}}'In the release after 0.3.6, opodcp connectors verify usage checks the adapter running now from the CLI; it exits 1 when the check fails. See the CLI reference.
POST …/verify takes adapter (its name or scheme; empty = the running one), fields by field key and secrets (field key → the name of a Secret in the namespace). In 0.3.6, fields or secrets sent with no adapter are ignored and the running adapter is verified (the answer says "candidate": false); in the release after 0.3.6 that body is refused 400, field adapter. A credential never goes in the body: name the Secret that holds it. A planned adapter is 422 E-ADAPTER-TARGET; an unknown port is 404.
PUT …/settings takes {"set": {VAR: value}, "unset": [VAR]} (at most 64 KiB). An empty change, a variable of another port, or any setting of the state port is 400 invalid, naming the variables the port takes. The answer:
{
"port": "usage",
"saved": ["OPODCP_USAGE_DSN"],
"restarting": true,
"note": "saved; the control plane restarts now to apply it — running endpoints keep serving, and the console reconnects by itself",
"schema": { "…": "the table after the schema steps ran" }
}schemaError replaces schema when a step was refused. The schema steps of a save get 15 s.
Which replicas restart. In 0.3.6 only the replica that served the save restarts; with replicas above 1, the others keep the settings they started with until they restart too — run kubectl -n opodcp rollout restart deploy/opodcp after a save. In the release after 0.3.6 every replica compares the saved settings with the ones it started with every 5 s and restarts after a random wait of up to 10 s, so all of them run the new settings within about 15 s; the note then reads saved; this replica restarts now to apply it, and every other replica within about 15 s — …. In the release after 0.3.6 a replica that is following a run — a delete, a scale, a wake — also waits for that run to end before it restarts, for at most 3 minutes, so a save no longer leaves the run running with nobody following it until it fails 2 minutes later; the note adds (a replica following a run — a delete, a scale — restarts once the run ends, at most 3 min later).
Check it worked
kubectl -n opodcp exec deploy/opodcp -- /opodcp doctor | grep -E '^. usage '
curl -s -H "$H" https://cp.example.com/api/v1/connectors \
| jq '.[] | select(.port=="usage") | {adapter, running: [.running[] | {ok, mode, detail}], migrate}'A good answer is a doctor row that starts ✔ usage clickhouse connected spool + …, and running[0].ok is true. The console's Connectors card for the port shows the adapter in use and its doctor row in green, and Activity lists connector.saved and, after the restart, connector.changed with from and to.
If it fails
| Answer | Cause | Fix |
|---|---|---|
Verify: "ok": false, "kind": "unreachable" | the service does not answer from the control plane's pod | check DNS, the port and any NetworkPolicy from namespace opodcp |
Verify: "kind": "refused" | the service answered and refused the credential | check the user, password or token |
Verify: "kind": "missing" | the service let the control plane in, but the database, bucket, directory, realm or mount is not there | create it first; Connector setup lists what each adapter needs |
Verify: "kind": "invalid" | a required field is missing or malformed | fill the field the detail names |
Save: 400 invalid OPODCP_X is not a setting of the usage port (it takes: …) | a variable of another port | save it on the port the list names |
Save: 400 invalid the state port is the database itself … | the database is a chart value | change ports.state.dsnSecret with helm upgrade |
Verify: 422 E-ADAPTER-TARGET | the adapter is planned, not built | choose an available adapter (GET /api/v1/connectors lists status) |
Alert connector.sealed | the settings were sealed with another install key | install with that key; see When a stored credential cannot be opened |
Alert connector.failing | the saved service failed its check for 2 minutes | the port's doctor row names the reason; fix it, Verify, Save |
A save for each port
Each body below is a PUT /api/v1/connectors/<port>/settings (admin). The console's form sends the same. Hosts are examples.
put() { curl -s -H "$H" -H 'Content-Type: application/json' -X PUT \
"https://cp.example.com/api/v1/connectors/$1/settings" -d "$2"; echo; }
# usage: a ClickHouse table, kept 14 days in the spool
put usage '{"set":{"OPODCP_USAGE_DSN":"clickhouse://opod:PASSWORD@ch.example.com:8123/opod","OPODCP_USAGE_RETENTION":"14d"}}'
# events: mirror every event to NATS under the prefix opod
put events '{"set":{"OPODCP_EVENTS_URL":"nats://nats.example.com:4222/opod"}}'
# logs: the audit stream and the control plane's records to Splunk
put logs '{"set":{"OPODCP_LOGS_ADAPTER":"splunk-hec","OPODCP_LOGS_URL":"https://splunk.example.com:8088","OPODCP_LOGS_TOKEN":"HEC-TOKEN","OPODCP_LOGS_STREAMS":"cp,audit"}}'
# metrics: push over OTLP as well as the /metrics scrape
put metrics '{"set":{"OTEL_EXPORTER_OTLP_ENDPOINT":"http://otel-collector.observability:4318"}}'
# traces: every leader exports spans, one request in ten
put traces '{"set":{"OPODCP_TRACES_URL":"http://otel-collector.observability:4318","OPODCP_TRACES_SAMPLE_RATIO":"0.1"}}'
# identity: OIDC sign-in, two groups mapped to roles, everyone else a viewer
put identity '{"set":{"OPODCP_OIDC_ISSUER":"https://sso.example.com/realms/main","OPODCP_OIDC_CLIENT_ID":"opod","OPODCP_OIDC_CLIENT_SECRET":"CLIENT-SECRET","OPODCP_OIDC_ROLE_MAP":"opod-admins=admin,opod-ops=operator","OPODCP_OIDC_DEFAULT_ROLE":"viewer","OPODCP_PUBLIC_URL":"https://cp.example.com"}}'
# notifier: one webhook and one PagerDuty service
put notifier '{"set":{"OPODCP_NOTIFY_URLS":"https://hooks.example.com/opod,pagerduty://ROUTING-KEY"}}'
# secrets: a Vault KV v2 record of every minted token
put secrets '{"set":{"OPODCP_SECRETS_URL":"vault://VAULT-TOKEN@vault.example.com:8200/secret/opod"}}'
# checkpoints: one 50 GiB claim per training job, on class fast-ssd
put checkpoints '{"set":{"OPODCP_JOB_CHECKPOINTS":"pvc://fast-ssd?size=50Gi"}}'
# batchfiles: an S3-compatible bucket for /v1/files and /v1/batches
put batchfiles '{"set":{"OPODCP_BATCH_FILES_BUCKET":"opod-batches","OPODCP_BATCH_FILES_ENDPOINT":"https://minio.example.com:9000","OPODCP_BATCH_FILES_PATH_STYLE":"1","OPODCP_BATCH_FILES_ACCESS_KEY":"ACCESS-KEY","OPODCP_BATCH_FILES_SECRET_KEY":"SECRET-KEY"}}'
# kvstore: your Valkey for peer KV tiers; the password in its own field
put kvstore '{"set":{"OPODCP_KVSTORE_URL":"redis://valkey.example.com:6379","OPODCP_KVSTORE_PASSWORD":"PASSWORD"}}'
# …or (the release after 0.3.6) one ReadWriteMany volume per endpoint from your storage class
put kvstore '{"set":{"OPODCP_KVSTORE_URL":"pvc://nfs-rwx?size=200Gi"}}'
# undo one setting: the port falls back to its default for that field
put usage '{"unset":["OPODCP_USAGE_RETENTION"]}'Each save restarts the control plane once, so save a port's settings in one body. Values that carry a credential (OPODCP_LOGS_TOKEN, OPODCP_OIDC_CLIENT_SECRET, OPODCP_BATCH_FILES_ACCESS_KEY, OPODCP_BATCH_FILES_SECRET_KEY, OPODCP_KVSTORE_PASSWORD, and any URL with a user, password or key in it) are sealed and never shown again. Keep them out of your shell history: read the body from a file with -d @usage.json.
How connectors work
Every dependency of the control plane is a port with an embedded default, so the control plane is usable the moment it installs. An admin points a port at your own service on the console's Connectors page. The settings are saved in the database, a credential sealed with the install key, and the control plane restarts itself to apply them. Running endpoints keep serving through the restart.
A reinstall anywhere with the same database address and the same install key brings every connector back. The database itself is the one setting that stays in the chart (ports.state).
Version
On 0.2.1 these settings are chart values under ports.<port>. From 0.3.0, a ports.<port> value other than state fails the render. See Upgrade.
Ports
| Port | Embedded default | Settings you can save |
|---|---|---|
usage | spool: a table in the database; CSV export | OPODCP_USAGE_DSN (postgres://, clickhouse://host:8123/db, s3://bucket/prefix?region=…; parquet:///dir up to 0.3.6 only, see Parquet), OPODCP_USAGE_ADAPTER, OPODCP_USAGE_RETENTION (default 30 days), OPODCP_USAGE_TRIM_EXISTING. See Usage |
events | in-process+journal: in-memory fan-out with a journal in the database, which lets the console resume | OPODCP_EVENTS_URL (nats://host:4222[/prefix]): every event is mirrored to <prefix>.<type>, and events from other replicas fan out locally |
logs | stdout: JSON records on stdout | OPODCP_LOGS_ADAPTER (otlp or splunk-hec, one sourcetype per stream), OPODCP_LOGS_URL (http://otel-collector:4318, https://splunk:8088), OPODCP_LOGS_TOKEN (credential), OPODCP_LOGS_STREAMS (a list of cp, audit, events) |
metrics | prometheus-scrape: /metrics, no credential; the Service carries prometheus.io/scrape and prometheus.io/port | OTEL_EXPORTER_OTLP_ENDPOINT (http://otel-collector:4318): an OTLP/HTTP push every 30 s, beside /metrics |
traces | none: leaders export no spans | OPODCP_TRACES_URL (an OTLP/HTTP collector, rendered into every leader as OPOD_OTLP_ENDPOINT), OPODCP_TRACES_SAMPLE_RATIO (0–1; empty = every request; outside 0–1 turns the doctor row red). A leader picks the address up at its next rollout; the control plane sends no spans itself |
identity | local-users: bcrypt users and sessions, the bootstrap admin from a Secret | oidc: OPODCP_OIDC_ISSUER and OPODCP_OIDC_CLIENT_ID (required), OPODCP_OIDC_CLIENT_SECRET (credential), OPODCP_OIDC_ROLE_MAP (opod-admins=admin,opod-ops=operator), OPODCP_OIDC_DEFAULT_ROLE, OPODCP_PUBLIC_URL (required). See Users, roles and SSO |
notifier | console: alerts in the console and opodcp_alerts_open on /metrics | OPODCP_NOTIFY_URLS, one URL per destination, the scheme picks the adapter: https://… (webhook: POST {event, alert, sentAt}), alertmanager+https://… (Alertmanager v2; /api/v2/alerts is added when missing; an ack is not sent), slack+https://… (incoming webhook), pagerduty://<routing-key> (Events API v2: trigger and resolve; an acknowledge is not sent). A Slack URL and a PagerDuty key are stored sealed |
secrets | kubernetes-secrets | vault: OPODCP_SECRETS_URL (vault://<token>@host:8200/<kv-v2 mount>/<base>; the token may come from VAULT_TOKEN instead) — a KV v2 record of every minted token. Kubernetes Secrets stay what the pods read |
checkpoints | hostpath: under the node model cache; a job resumes on the same node only | pvc: OPODCP_JOB_CHECKPOINTS (pvc://[storageClass]?size=20Gi), one PersistentVolumeClaim per job, so a job resumes on any node |
batchfiles | none: every /v1/files and /v1/batches call answers 501 batch_store_not_configured (E-BATCH-STORE) | s3 (AWS S3, MinIO, Ceph RGW, GCS in S3 mode): OPODCP_BATCH_FILES_BUCKET (required), _PREFIX, _ENDPOINT, _REGION, _PATH_STYLE, _DOWNLOADS (proxy), and _ACCESS_KEY / _SECRET_KEY (credentials). See Jobs and batches |
kvstore | none: a peer KV tier is refused (E-KV-OFFLOAD) | lmcache-redis: OPODCP_KVSTORE_URL (redis://host:6379; a password in the URL is refused), OPODCP_KVSTORE_PASSWORD (credential). The chart's kvStore.enabled builds the URL itself. The control plane only renders the URL into each peer worker and pings it for the doctor. shared-volume (the release after 0.3.6): OPODCP_KVSTORE_URL=pvc://<ReadWriteMany class>?size=200Gi, one volume and one pruner per endpoint (Connector setup) |
state | — (required) | chart only: ports.state.dsnSecret. Moving it is opodcp store move; see Backup and restore |
A saved setting holds the value itself; a value that carries a credential is sealed even when its field is plain. To Verify a candidate without putting its credential in the request, name a Kubernetes Secret in the control plane's namespace that holds the whole value (secrets in the body, by field key, for example {"secrets":{"dsn":"ch-dsn"}}).
Read-only ports in the doctor are set by chart values or by what the probes read:
| Port | Adapters | Set by |
|---|---|---|
executor | kubernetes, the only one | — |
registry | ghcr.io (pull-only public images), private registry (ECR, GAR, ACR, Harbor, zot: tags pinned to digests with the cluster's pull Secret) | engineImages, imagePullSecrets |
cloud | onprem, aws, gcp, azure (defaults and preflight rows; none provisions nodes, and none has run on a real EKS, GKE or AKS cluster yet) | cloud.provider |
autoscaler | embedded (the control plane's loop over each leader's /loadz), keda (one ScaledObject per endpoint) | autoscaler.adapter |
gangs | deployments (one per gang part, no atomic landing), leaderworkerset (atomic landing, group recreate) | substrate.leaderWorkerSet.enabled |
fabric | pcie+ethernet, infiniband, roce | what the probes read on each node |
planned Two shared KV stores are listed as target in the registry: lmcache-server and mooncake-store, for workers to reuse each other's KV cache.
Secrets at rest are the cluster's job. The control plane keeps tokens and its install key as Kubernetes Secrets, and seals the connector credentials it stores with that install key. Turn on your cluster's Secret encryption with your own KMS key (EKS, GKE and AKS each offer it), and that key protects all of them. There is no separate KMS adapter, and none is planned.
The aws, gcp and azure cloud adapters ship from 0.3.0. Up to 0.3.3 the registry listed them as target; from 0.3.4 it lists them as available, with a summary that says they provision no nodes and are not yet proven on a real cluster (Kubernetes).
GET /api/v1/connectors (viewer) lists every port: what it holds, its chart block, what a switch moves (onSwitch), every adapter with its fields and status (available or target), and the port's doctor rows. An admin also gets the values running now, redacted (a credential reads as set or not set), and migrate: the usage backlog a new sink would receive, or the command that moves the port. The metrics, traces and logs ports carry reach: embedded or connected, the scrape URL, and where data is sent.
Usage sinks with a table
A Postgres or ClickHouse sink's table is created and kept by numbered schema steps, never by a write. Verify shows the step the table records, the steps this release would run, whether the sink's user may run them (naming a missing grant) and the SQL. Save runs them; if a step is refused, the settings are saved anyway and rows wait in the spool.
Manual mode for owners who allow no schema change: add schema=manual to the DSN (beside table=). The control plane then runs no step and writes only once your DBA has run the SQL Verify shows.
Test the notifier
POST /api/v1/connectors/notifier/test (admin) sends one alert marked TEST (kind connector.test, never stored) to every sink, fired and at once resolved, so a pager that opens an incident closes it again. It answers {"sent": true|false, "sinks": [ … ]} with one delivery per sink; sent is true only when every sink took both halves. It is a real delivery, and the doctor counts it. With no sink it is 409 E-NO-NOTIFIER.
Record existing tokens in a new secret store
A secret store connected after tokens were minted records only what is written from then on. opodcp secrets sync (or POST /api/v1/connectors/secrets/sync) records every token the Kubernetes Secrets hold. Running it again writes nothing that is already recorded unchanged. With no store it is 400 E-NO-SECRET-STORE.
When a stored credential cannot be opened
A reinstall that minted a new install key over a kept database leaves the stored credentials sealed. They are not applied, each port runs on what the chart sets (if anything), and the alert connector.sealed fires per port with the key id each setting needs and the one held. Install with --set installKey.existingSecret=<the old key's Secret> (list both keys, comma-separated, while you move), or enter the credentials again, which seals them with the current key. While the usage credentials are sealed, usage.no-sink stays quiet.
Connector failing
connector.failing (warning) fires for any connected port whose doctor check has failed for 2 minutes, names the reason and the time it started, and points at Verify. It resolves when the check passes. An embedded default never raises it: a standby replica's red events row on the embedded bus is advice, not an outage.
Last updated · Source: content/docs/control-plane-operate/connectors.mdx · View as Markdown