Skip to content
Opod

Operate

Connector setup

What to prepare on each service before you connect it — the grants, policies, IdP client, webhooks and buckets — what Verify checks, what the control plane writes there, and each adapter's limits.

In short

Connectors explains how a connector is verified and saved. This page explains the other half: what you set up on your service first. For each adapter it gives the address shape and every option, the grants or policy the control plane's user needs, what Verify actually checks, what the control plane writes, and the limits you should know before you rely on it. What the control plane does is read from the 0.3.6 code. The steps on your side (the Keycloak, Okta and Entra ID settings, the nats-server and Alertmanager samples, the IAM and Vault policies) are a starting point: check them against your provider's own documentation. A line that says after 0.3.6 describes the next release.

When you need it

  • Verify answers refused or missing and you need the exact grant, policy or object it expects.
  • Your security team asks what the control plane's user may do in the database, bucket, Vault or NATS account.
  • You must route, deduplicate or parse what arrives: the alert payload, the usage table, the log records.
  • You want to know what Verify does not prove, so a green check is not read as more than it is.

Do it

  1. Find your adapter below

    Each section starts with a Prepare list. Do every item on your service, with your own tools.

  2. Verify, then save

    On the console's Connectors page, fill the port's card and press Verify, then Save. Or send the same through the API, as Connectors → A save for each port shows. A credential is sealed with the install key and never shown again.

  3. Check the real traffic

    Verify proves less than the real traffic does (each section says what it checks). After the restart, read the port's doctor row and look on your side for the first rows, records or alerts.

Check it worked

kubectl -n opodcp exec deploy/opodcp -- /opodcp doctor
curl -s -H "$H" https://cp.example.com/api/v1/connectors | jq '.[] | {port, adapter, running: [.running[]? | {ok, mode, detail}]}'

Each connected port reads connected with a green row. Then check your side: a row in the usage table, a record in the log index, an alert after POST /api/v1/connectors/notifier/test.

If it fails

Verify answerWhat it meansLook at
unreachableno answer from the control plane's pod within 5 sDNS, the port, a NetworkPolicy or firewall from namespace opodcp
refusedthe service answered and refused the credential or the grantthe user, password, token or policy in the adapter's Prepare list
missingthe service let the control plane in, but the database, bucket, directory, realm or mount is not therethe object the adapter's Prepare list says must exist first
invalida required field is empty, or the address is malformedthe field the detail names
no-probethe adapter has no live check (notifier, checkpoints, the shared-volume KV store)the adapter's own test, below

An error detail is redacted. A DSN keeps only its table, schema, sslmode and connect_timeout parameters; every other query value reads •••.

Up to and including 0.3.6, a setting that does not open at start-up is logged whole

When a saved events URL, usage DSN, secrets URL or logs URL does not open as the control plane starts, the warning it logs, and the secrets and logs rows of opodcp doctor, can carry the setting's password or token, most of all when the URL is malformed. With the logs connector on, that line also reaches your collector. The release after 0.3.6 redacts them the same way as a Verify detail. Until then, rotate a credential that was saved in a setting that did not open.

Up to and including 0.3.6, a saved events URL or usage DSN that does not open leaves its row green

The control plane starts anyway: on the in-process bus, or with usage buffering in its database. In 0.3.6 the events row then reads in-process fan-out + journal — enough for one replica and the usage row reads NO USAGE SINK IS CONNECTED, as if nothing were saved; only the start-up warning says what failed. In the release after 0.3.6 both rows are red and read … is configured (OPODCP_EVENTS_URL) but NOT running: <reason> (or OPODCP_USAGE_DSN), and usage.no-sink names the reason. In 0.3.6, press Verify on the port: it tests what is saved.

Usage sinks

The usage port sends one row per request to your store. The database only buffers the rows until the sink acknowledges them (Usage). All four sinks share these rules:

  • Shipping runs every 15 s in batches of up to 1,000 rows. A failed batch backs off from 15 s, doubling, to at most 5 min.
  • Delivery is at least once. The table below says which sinks drop a replayed batch.
  • The sink's mark (how far it has taken the spool) is kept per sink address: scheme://host/db.table, postgres://host/db (table) or s3://bucket/prefix @ host|region. A new password keeps the mark. A new host, database, table or prefix is a new sink: it is sent every row the spool still holds. Switching back resumes from the old mark.
  • A DSN that is set but cannot open (for example S3 with no keys) does not stop the control plane: it boots with no sink, and the doctor and usage.no-sink say no sink is connected. Read the control plane's log for the reason.

Postgres

Address: postgres://user:PASSWORD@pg.example.com:5432/analytics?table=opod_usage&sslmode=require. The alias postgresql:// also works.

ParameterDefaultMeaning
tableopod_usagethe table, optionally schema-qualified: reporting.opod_usage. Lower case letters, digits and _, 63 characters at most per part
schemaautomanual: the control plane changes nothing and writes only once your DBA has run the SQL Verify shows
any other—passed to the Postgres driver (pgx): sslmode, sslrootcert, connect_timeout, …

Prepare:

-- in the database the DSN names
CREATE ROLE opod_usage LOGIN PASSWORD 'PASSWORD';
GRANT CONNECT ON DATABASE analytics TO opod_usage;
GRANT USAGE, CREATE ON SCHEMA public TO opod_usage;   -- Postgres 15+ no longer grants CREATE on public

If opod_usage or opod_usage_schema already exists, the control plane's user must own it: only a table's owner may add a column. In schema=manual mode the user needs only INSERT on the table and SELECT on <table>_schema.

Verify connects, then looks the table up. A table that does not exist yet is ok (it is created on Save). A password or role failure is refused; a database that does not exist is missing. It also returns the schema state: the step the table records, the steps this release would run, whether the user may run them (naming the grant that is missing) and their SQL.

What it writes: table <table> with its version table <table>_schema. 25 columns: endpoint_id, endpoint_name, team, event_id, ts (timestamptz), api_key_id, user_id, model, protocol, prompt_tokens, completion_tokens, latency_ms, ttft_ms, outcome, tenant, cell, region, workload_type, job_id, gpu_seconds, node_id, kind (default request), cached_tokens, class, operation. The primary key is (endpoint_id, event_id, kind), and each batch is one transaction of INSERT … ON CONFLICT DO NOTHING, so a replayed row is ignored.

ClickHouse

Address: clickhouse://opod:PASSWORD@ch.example.com:8123/opod?table=opod_usage over HTTP, or clickhouses://…:8443/… over HTTPS. In 0.3.6, give the port with clickhouses://: with none it defaults to 8123, not 8443; in the release after 0.3.6 it defaults to 8443. The database and the table must be plain identifiers (letters, digits, _); after 0.3.6 anything else is refused when the DSN is read. TLS trusts the system CAs; there is no CA option. table defaults to opod_usage; schema=manual works as for Postgres. The user and password travel as the X-ClickHouse-User and X-ClickHouse-Key headers.

Prepare: the database must exist; only the table is created.

CREATE DATABASE IF NOT EXISTS opod;
CREATE USER opod IDENTIFIED BY 'PASSWORD';
GRANT CREATE TABLE, INSERT, SELECT, ALTER ADD COLUMN, ALTER MODIFY SETTING ON opod.* TO opod;
GRANT SELECT ON system.databases TO opod;
GRANT SELECT ON system.tables TO opod;

Verify runs SELECT 1, checks that the database exists and whether the table does. 401, 403, an authentication failure or code 516 is refused; code 81 (no such database) is missing.

What it writes: <db>.<table>, ENGINE = MergeTree ORDER BY (cell, endpoint_id, ts), ts as DateTime64(3, 'UTC'), with the same columns as Postgres, and the version table <db>.<table>_schema. Each batch is sent as JSONEachRow with insert_deduplication_token=opod-usage-<first seq>-<last seq>.

Duplicates: ClickHouse drops a replayed batch only on a Replicated* or Shared* engine, or once the control plane has set non_replicated_deduplication_window = 1000 on the table (that is why it needs ALTER MODIFY SETTING). Otherwise a retried batch can land twice: count distinct (endpoint_id, event_id, kind) when you read.

Manual mode

In 0.3.6, with schema=manual the control plane still sets non_replicated_deduplication_window on the table, so keep the ALTER MODIFY SETTING grant or set it yourself. In the release after 0.3.6, manual mode changes nothing: the ALTER TABLE … MODIFY SETTING non_replicated_deduplication_window = 1000 statement is listed with the schema SQL that Verify shows, and until you run it a replayed batch can count twice (the doctor says at-least-once).

Parquet

Removed in the release after 0.3.6 — use S3

The Parquet sink writes inside the control plane's pod, and a restart wipes that directory, so rows the database had already handed over are lost. The release after 0.3.6 removes it: a saved parquet:// setting then reads as an unknown scheme on Verify, Save and start-up. S3 writes the same Parquet files, one object per batch, to any S3-compatible bucket (MinIO on premises).

Address: parquet:///var/lib/usage (an absolute directory in the control plane's pod). parquet://dir/sub is relative to the pod's working directory.

Prepare: the directory must be writable by user 65532 (the pod's user) on a filesystem that outlives the pod. The pod's root filesystem is read-only, and the only writable directory the chart mounts is an emptyDir, which is lost on every restart. The chart has no value to mount your own volume, so in 0.3.6 use S3 or a database sink for anything you must keep.

Verify checks that the directory exists (missing if not), then creates and removes a .opod-verify-* file (refused if it cannot).

What it writes: <dir>/<YYYY-MM-DD>/<HH>/usage-seq-<first>-<last>.parquet (the UTC hour of the first row, sequence numbers padded to 20 digits), Snappy-compressed, written to a temporary file and renamed. A replayed batch has the same name and replaces the file. GPU-hours per day go to <dir>/gpu-daily/<day>.csv.

S3

Address: s3://opod-usage/usage?region=eu-west-1&accessKey=ACCESS-KEY&secretKey=SECRET-KEY.

ParameterDefaultMeaning
regionus-east-1the bucket's region. An AWS bucket in any other region must set it: the host is built as s3.<region>.amazonaws.com
endpoint—another S3 store: https://minio.example.com:9000, scheme, host and port, no path
pathStyleon with endpoint0 turns path-style addressing off; it matters only with endpoint
accessKey, secretKey, sessionToken—static credentials; the DSN is then sealed

Credentials: in 0.3.6 the usage sink takes static keys only: in the DSN, or as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY through the chart's extraEnv. It does not use IRSA, EKS Pod Identity or an instance role (the batch-file store does). In the release after 0.3.6 it follows the batch-file store's rule: both keys in the DSN, or neither — then AWS_* and MINIO_* variables, then the cloud's identity (IRSA, EKS Pod Identity, an instance role).

Prepare: the bucket, and a policy like this one:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["s3:PutObject", "s3:DeleteObject"],
    "Resource": "arn:aws:s3:::opod-usage/usage/*"
  }]
}

Writes need only s3:PutObject. s3:DeleteObject is for Verify, which writes <prefix>/.opod-verify and removes it.

Verify answers refused on 403, InvalidAccessKeyId or SignatureDoesNotMatch, and missing on NoSuchBucket.

What it writes: <prefix>/<YYYY-MM-DD>/<HH>/usage-seq-<first>-<last>.parquet, one PUT per batch, content type application/vnd.apache.parquet, and <prefix>/gpu-daily/<day>.csv. A replayed batch has the same key; on a versioned bucket the replaced copy stays as a noncurrent version.

Which sinks drop a replayed batch

SinkA batch sent twice
Postgres✅ ignored: the primary key refuses the second row
ClickHouse🟡 dropped only on a replicated table or with the deduplication window set; else counted twice
Parquet (up to 0.3.6)✅ the file is replaced
S3✅ the object is replaced

Database (state)

The database is set by the chart, not on the Connectors page: ports.state.dsnSecret names a Secret holding the DSN. See Configuration → Database.

Address: URL form only, postgres://opodcp:PASSWORD@pg.example.com:5432/opodcp?sslmode=require; the key=value form is refused. Every driver parameter passes through.

Prepare: an empty database whose owner is the control plane's user, or at least CREATE on the current schema. No extension is needed. Replicas take a Postgres advisory lock while they run the schema steps; a replica that waits about 5 min for it gives up with ErrSchemaLocked.

Verify (POST /api/v1/connectors/state/verify) accepts an empty database or one this release can open. A schema newer than this release is invalid; so is a store from before 0.3.0 (it has a schema_version table): restore a backup into an empty database instead.

Move it with opodcp store move --to <dsn>, Postgres to Postgres: see Backup and restore.

Event bus: NATS

Address: nats://opod:PASSWORD@nats.example.com:4222/opod. The path is the subject prefix; with no path it is opod.events.

What it uses: core NATS publish and subscribe, not JetStream. There is no stream, no consumer and no replay: an event another replica missed while it was disconnected is not sent to it again. Each replica still journals its own events in the database, which is what the console resumes from. NATS 2.2 or later is needed (message headers).

Prepare a NATS user that may publish and subscribe on:

SubjectCarries
<prefix>.>every event, as <prefix>.<type>, for example opod.alert.fired. Header Opod-Origin: <host>/<pid>; body {seq, ts, type, subject, data}
<prefix>_observe.>after 0.3.6: the lease holder's per-endpoint state, so a standby answers status the same way. Header Opod-Endpoint

opod.> does not cover opod_observe.>: the first token differs. Grant both. No _INBOX subject is needed.

# nats-server authorization block
authorization {
  users = [
    { user: opod, password: PASSWORD,
      permissions: { publish: ["opod.>", "opod_observe.>"], subscribe: ["opod.>", "opod_observe.>"] } }
  ]
}

Authentication: a user and password in the URL. A token-only URL (nats://TOKEN@host), a credentials file, an NKey or a JWT is not supported in 0.3.6. In the release after 0.3.6, a token-only URL works: a user with no password is sent as the token. The client reconnects every 2 s without limit; the doctor shows disconnected (reconnecting) meanwhile.

Verify connects, flushes and closes: an authentication error is refused, anything else unreachable. In 0.3.6 it does not check subject permissions, and a permission violation later is not reported in the doctor: check the server's log after the first save. In the release after 0.3.6, Verify subscribes to <prefix>.> and <prefix>_observe.> and publishes once, so a subject the user may not use is refused and named; and a violation while running counts as a failure and turns the events row red with the server's message.

Single sign-on: OIDC

The settings are in Users, roles and SSO. What to set up at your identity provider:

Prepare a client:

At the providerValue
Client typeconfidential (with a secret) or public (no secret; PKCE alone)
Grant typeauthorization code; PKCE S256
Redirect URIhttps://cp.example.com/api/v1/auth/oidc/callback (OPODCP_PUBLIC_URL + that path, or OPODCP_OIDC_REDIRECT_URL)
Scopes the control plane asks foropenid profile email groups (fixed)
ID tokenmust carry the groups claim (groups, or OPODCP_OIDC_ROLE_CLAIM)

Groups come from the ID token only, never from the userinfo endpoint. The claim may be a JSON list or one string split by commas or spaces. To put groups in the ID token:

  • Keycloak: add a Group Membership mapper to the client (or a client scope named groups), token claim name groups, Full group path off, Add to ID token on.
  • Okta: in the app's Sign On tab, add a groups claim named groups with a filter, for example Starts with opod-.
  • Microsoft Entra ID: set groupMembershipClaims in the app manifest. Entra sends group object IDs, so the role map names IDs: OPODCP_OIDC_ROLE_MAP=0f3c…=admin.

An issuer that refuses a scope it does not know (groups) cannot be used in 0.3.6, because the scope list cannot be changed.

The issuer must match exactly. iss in the provider's discovery document must equal OPODCP_OIDC_ISSUER. Verify ignores a trailing /; sign-in does not.

Who a user is: the name is the first of the claims email, preferred_username, name, sub that is present; that name is the actor in the audit stream, and the user id is oidc:<sub>. The role is the highest one the role map gives the user's groups, else OPODCP_OIDC_DEFAULT_ROLE (default viewer). It is set at sign-in and kept for the session's 24 h.

Verify reads <issuer>/.well-known/openid-configuration and then its jwks_uri. A 404 is missing (check the realm); a document with no jwks_uri or another issuer is invalid. It does not check the client id, the secret or the redirect URI: sign in once to prove those.

Sign-in errors land on /?sso=error#reason=…. A login has 10 minutes from Sign in with SSO to the callback, and works once.

More than one replica

In 0.3.6 a login's state is held in the memory of the replica that started it. With more than one replica behind the Service, a callback that reaches another replica fails with unknown or expired login state. Until that is fixed, turn on session affinity (sticky sessions) at your ingress for the control plane's host, or run one replica while you depend on SSO.

Logout ends the control plane's session only; it does not sign the user out at the provider.

If SSO cannot start (for example OPODCP_PUBLIC_URL is missing, or the role map names a role that does not exist), the doctor's identity row is red with OIDC misconfigured: <reason>, and GET /api/v1/auth/oidc/start answers 404. When the provider does not answer, it answers 502.

Alerts: the notifier

OPODCP_NOTIFY_URLS takes one URL per destination, comma-separated. The scheme picks the adapter. All of them share these rules:

  • One POST per fired and per resolved transition, Content-Type: application/json, User-Agent: opodcp-notify. Any 2xx is delivered.
  • An acknowledge is not sent. A sticky alert that an acknowledge resolves sends no resolve either: close its incident or thread on your side.
  • Each delivery has 10 s. A failed one is not retried and not queued: it is counted in opodcp_notify_failures_total{adapter}, the sink's doctor row turns red until a later delivery to it succeeds, and the alert stays in the console.
  • A firing alert is sent once; it is not sent again while it stays open.

In the release after 0.3.6, deliveries are queued and retried

Every alert state the control plane records reaches every sink: fired, acknowledged and resolved, including a sticky alert a rollout raised and an acknowledge from the console. Each state waits in the database, per alert and sink, until the sink takes it, so a standby that takes over carries on. A network error, a 5xx, 408 or 429 is retried after 10 s, doubling to 5 min, honouring Retry-After, for as long as the state is still wanted. Any other 4xx is not retried, and the row says why. A resolve goes only to a sink that took the fire, and an alert resolved before its fire got through sends nothing. Each tick sends at most 100, four at once, critical first. Delivery is at least once: PagerDuty and Alertmanager drop a repeat, while a Slack message can post twice. To group a storm into one message, point the notifier at your Alertmanager. The first start after the upgrade takes the alerts open then as already sent, so it pages nobody again.

  • A list with a PagerDuty key, a Slack URL, a user and password, or a credential parameter (token=, secret=, …) is stored sealed. A plain https:// URL with a secret in its path is not recognised as one: put such a URL in a Secret, or give the webhook a user and password.

Verify answers no-probe. Save, wait for the restart, then send a test: POST /api/v1/connectors/notifier/test sends one alert (id al_test_<n>, kind connector.test, severity warning, title TEST alert from opod — nothing is wrong) to every sink, fired and at once resolved.

Webhook

Address: https://hooks.example.com/opod, or https://user:PASSWORD@hooks.example.com/opod for basic authentication. There is no custom header and no signature.

Body:

{
  "event": "fired",
  "alert": {
    "id": "al_9k2m4x", "kind": "endpoint.degraded", "object": "ep_7f3a", "objectName": "chat",
    "severity": "serious", "title": "chat is degraded", "detail": "1 of 2 workers ready", "remedy": "…",
    "sticky": false, "firedAt": "2026-11-12T08:14:03Z", "lastSeenAt": "2026-11-12T08:14:03Z",
    "healthy": 0, "tenant": "default", "cell": "cell-1", "region": "", "workloadType": "inference"
  },
  "sentAt": "2026-11-12T08:14:03Z"
}

event is fired or resolved; a resolved alert also carries resolvedAt and resolvedReason. severity is warning, serious or critical.

Alertmanager

Address: alertmanager+https://am.example.com (or alertmanager+http://). /api/v2/alerts is added unless the URL has it.

What it sends: a list with one alert. Labels alertname (the alert's kind), severity, object, objectName, cell, tenant, workload_type and source="opodcp"; annotations summary, description, remedy and opod_alert_id; startsAt, and endsAt on resolve. Route on source="opodcp":

route:
  routes:
    - matchers: ['source="opodcp"']
      receiver: platform-oncall

Up to and including 0.3.6, a firing alert is posted once, so Alertmanager resolves it by itself after its resolve_timeout (default 5 min) even while it is still open in the control plane. Raise resolve_timeout, or alert from the scrape (opodcp_alerts_open) instead, if that matters to you. In the release after 0.3.6, an open alert is sent again every minute with endsAt four minutes ahead, as Prometheus does, so it stays open in Alertmanager while it is open here, and expires a few minutes after a control plane that stops sending.

Slack

Prepare: create a Slack app, turn on Incoming Webhooks, and add a webhook to the channel. Address: its URL with slack+ in front: slack+https://hooks.slack.com/services/T000/B000/XXXX. It is stored sealed.

What it sends: {"text": ":red_circle: [FIRED] <title> — <detail>\n_remedy:_ <remedy>"}, and on resolve :large_green_circle: [RESOLVED] <title> — <detail>.

PagerDuty

Prepare: on the PagerDuty service, add an Events API v2 integration and copy its integration key. Address: pagerduty://<integration key>. It is stored sealed. Events go to https://events.pagerduty.com/v2/enqueue; the EU service region is not supported in 0.3.6.

What it sends: event_action trigger or resolve, dedup_key = the alert id, and on trigger a payload with summary (title), severity (warning → warning, serious → error, critical → critical), source opodcp/<cell>, component (the object), group (workload type), class (the kind) and custom_details (detail, remedy, object, tenant).

Logs: OTLP and Splunk

The settings are in Observability → Logs. OPODCP_LOGS_HEADERS (key=value,…) is set through the chart's extraEnv in 0.3.6; it is not a Connectors setting there. In the release after 0.3.6 it is one: a Secret with the key headers, stored sealed like the token.

What each stream carries: cp is every log record of the control plane process. audit is every event that names who acted (actor, by or user); events is every other event. usage.*, metrics.* and fleet.* events are never shipped. Each event goes to one stream, and each replica ships only the events it published.

OTLP

Address: http://otel-collector.observability:4318. Give the host and port with no path: /v1/logs is then added. In 0.3.6 a URL with any other path is used exactly as given. In the release after 0.3.6 one rule holds for logs, metrics and Verify: /v1/logs is added unless the URL already ends in it, so a path prefix works (…/otlp → …/otlp/v1/logs).

What it sends: OTLP/HTTP protobuf, not compressed. A token is sent as Authorization: Bearer <token> unless OPODCP_LOGS_HEADERS sets Authorization. Resource attributes service.name=opodcp, service.version and opod.cell; each record has stream = cp, audit or events. https:// trusts the system CAs; add your CA with SSL_CERT_FILE through extraEnv.

Leaders and front doors ship their own records to the same collector (OPOD_OTLP_LOGS_ENDPOINT). In 0.3.6 they get no token and no headers, and on core v0.4.6 they always post to /v1/logs on the host and port, so a collector that requires authentication receives the control plane's records and not the leaders'; accept unauthenticated OTLP from namespace opodcp, for example on a second receiver. In the release after 0.3.6, with a leader on core v0.4.7, the control plane hands them the token and OPODCP_LOGS_HEADERS as OPOD_OTLP_HEADERS — Authorization=Bearer <token> unless one of your headers sets Authorization — from item otlp-headers of the endpoint's auth Secret (never in the pod spec), and the leader keeps the URL's path by the rule above. A running leader picks it up with its next rollout. Core sends the same headers with its traces, so a separate traces collector sees the logs token.

Verify posts {} to <url>/v1/logs with the token: 401 or 403 is refused, 404 is missing. In the release after 0.3.6 it posts where the exporter will, with OPODCP_LOGS_HEADERS as well as the token.

Splunk HEC

Prepare: an HTTP Event Collector token in Splunk. Set the index on the token: the control plane sends no index field, so the token's default index applies. Allow the sourcetypes opodcp:cp, opodcp:audit and opodcp:events.

Address: https://splunk.example.com:8088; /services/collector/event is added when the URL has no path. The token is required and is sent as Authorization: Splunk <token>. TLS trusts the system CAs; there is no option to skip verification.

What it sends: one POST per batch of newline-separated events, each with time, host (the pod name), source=opodcp, sourcetype=opodcp:<stream> and an event object with message, level, cell, stream and every attribute. Leaders send nothing to Splunk.

Verify reads /services/collector/health. It does not test the token: the first real batch does. Check the doctor's logs row (sent, failed) after the restart.

A log setting that cannot run (an unknown adapter, no URL, Splunk with no token) never stops the control plane: it keeps writing to stdout, and the doctor's logs row says the adapter is not running and why.

Metrics push: OTLP

Address: OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.observability:4318. /v1/metrics is added after the URL unless it already has it, so a path prefix works (…/otlp → …/otlp/v1/metrics). OTEL_EXPORTER_OTLP_METRICS_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS go through extraEnv in 0.3.6; in the release after 0.3.6 the headers are a Connectors setting (a Secret with the key headers).

What it sends: every 30 s, OTLP JSON, not compressed, with resource service.name=opodcp/<cell>. Gauges and counters only (counters as cumulative sums); histograms are not pushed, so opodcp_http_request_duration_seconds is on the /metrics scrape only. A failed push is not retried. /metrics keeps serving beside the push.

Verify posts {} to the metrics URL without OTEL_EXPORTER_OTLP_HEADERS in 0.3.6. A collector that requires those headers answers refused to Verify while the real push works: read the doctor's metrics row (sent N, failed N) instead. In the release after 0.3.6 Verify sends the headers.

Traces: OTLP

Address: OPODCP_TRACES_URL=http://otel-collector.observability:4318, rendered into every leader and front door as OPOD_OTLP_ENDPOINT. On core v0.4.6 a leader uses the host and port only and always posts to /v1/traces; it sends no token and no header. A leader on core v0.4.7 keeps the path (/v1/traces is added unless the URL ends in it) and can send headers, but the control plane renders none into it yet. The collector must take unauthenticated OTLP/HTTP from the leader pods. OPODCP_TRACES_SAMPLE_RATIO (0–1) is rendered as OPOD_TRACE_SAMPLE_RATIO; a value outside 0–1 is not rendered, so leaders trace every request, and the doctor row turns red.

Verify posts {} to <url>/v1/traces from the control plane's pod; the doctor dials the collector's host and port (default 4318) with 2 s. Neither proves the leaders reach it. A leader picks up a new address at its next rollout.

Secret store: Vault

Address: vaults://VAULT-TOKEN@vault.example.com:8200/secret/opod (HTTPS, system CAs) or vault://… (plain HTTP). The first path segment is the KV mount, the rest the base path. The token is the URL's user part, else VAULT_TOKEN through extraEnv. Only token authentication is supported; VAULT_NAMESPACE, VAULT_CACERT and the Kubernetes or AppRole auth methods are not.

Prepare: a KV version 2 mount and a token with this policy:

path "secret/data/opod/*" {
  capabilities = ["create", "update", "read"]
}

read is for opodcp secrets sync, which compares before it writes. Nothing is ever deleted: a deleted endpoint's record stays, so no delete is needed.

What it writes: one record per Kubernetes Secret, at <mount>/data/<base>/<secret name>: opodcp-ep-<name>…-auth (items join-token, admin-token, auth.json, policy.json, remote-key) and opodcp-hub (item token). Each change of an endpoint's auth.json or policy.json writes a new KV version. An opodcp-connector-<port> Secret is recorded each time the control plane writes it (today the one is opodcp-connector-kvstore, the workers' copy of a saved store password, written on an apply of a plan with a peer tier); opodcp secrets sync records any it missed, for example when Vault was down.

Verify reads /v1/sys/health: active, standby and performance standby are ok; uninitialised and sealed are errors. In 0.3.6 that is all it reads, and sys/health needs no token, so Verify does not prove the token or the policy. Run opodcp secrets sync once after you save: its answer lists written, same and failed per Secret, and it exits non-zero if any record failed.

In the release after 0.3.6, Verify and the doctor's secrets row also ask POST /v1/sys/capabilities-self for <mount>/data/<base>/opodcp-verify. A token Vault does not accept is refused; a policy that lacks create, update or read there is refused and names what is missing. Vault's built-in default policy allows that call, so a token issued with no_default_policy reads refused as well; attach the default policy, or grant update on sys/capabilities-self.

Checkpoints: PVC

Address: OPODCP_JOB_CHECKPOINTS=pvc://fast-ssd?size=50Gi. An empty class (pvc://?size=50Gi) uses the default StorageClass; size defaults to 20Gi. hostpath, hostpath:// or empty is the default.

Prepare: a StorageClass that provisions volumes dynamically.

What it does: one claim opodcp-job-<name>-ckpt per training job, ReadWriteOnce, in the control plane's namespace, created at the job's first attempt and kept across preemption and cancel. It is deleted only when the job is purged, and never when the job's spec named its own claim. With hostpath, checkpoints go to /data/models/checkpoints/<job> on the node.

Verify answers no-probe. A malformed URL, or an s3://, gs:// or azblob:// one, is not refused on Save: the control plane runs on hostpath, and the doctor's checkpoints row is red with running with hostpath.

Batch files: S3

Address: the OPODCP_BATCH_FILES_* settings in Connectors → Ports. OPODCP_BATCH_FILES_PREFIX is empty by default: files go to the bucket root. Without OPODCP_BATCH_FILES_ENDPOINT the store is AWS S3.

Credentials: both keys, or neither. With neither, the control plane tries AWS_* and MINIO_* environment variables and then the cloud's identity (IRSA or EKS Pod Identity). The chart's ServiceAccount takes no annotations: for IRSA, use EKS Pod Identity, or set serviceAccount.create=false and serviceAccount.name to a ServiceAccount you annotated.

Prepare: the bucket (the control plane never creates it), and:

{
  "Version": "2012-10-17",
  "Statement": [
    { "Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetBucketLocation"], "Resource": "arn:aws:s3:::opod-batches" },
    { "Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:AbortMultipartUpload"], "Resource": "arn:aws:s3:::opod-batches/*" }
  ]
}

What it writes: one object per file, <prefix>/<file id>, 200 MB at most. Downloads are presigned URLs (redirects live 5 min), unless OPODCP_BATCH_FILES_DOWNLOADS=proxy.

Verify checks only that the bucket exists and the credential may see it. It passes with read-only rights, so run one small batch after you save (Jobs and batches). NoSuchBucket is missing; AccessDenied or a bad key is refused.

KV store: a shared volume

arrives in the release after 0.3.6 The second kvstore adapter, shared-volume. There is no server: each endpoint with a vLLM peer worker gets its own volume, and vLLM's own file tier writes the KV blocks there. The peer tier through it is proven for vLLM on NVIDIA and refused by name on every other vendor (KV tiers → The peer tier).

Address: OPODCP_KVSTORE_URL=pvc://nfs-rwx?size=200Gi. The host is a StorageClass; an empty class (pvc://?size=200Gi) uses the cluster's default class. size is each endpoint's volume and defaults to 200Gi. The parse is the one Checkpoints: PVC uses.

Prepare: a StorageClass that provisions ReadWriteMany volumes dynamically: an NFS provisioner, CephFS, Lustre, or a cloud file share (Amazon EFS, Filestore, Azure Files). A block-storage class (EBS, a local-path class) gives ReadWriteOnce only and does not bind. Every worker node must be able to mount it.

What it does: for each endpoint with a peer worker, one claim opodcp-ep-<name>-<id>-kvshared (ReadWriteMany, the URL's class and size, owned by the endpoint) mounted at /data/kvshared on every peer worker, and one Deployment opodcp-ep-<name>-<id>-kvprune that runs opod cache kv-prune --dir /data/kvshared --max-gb <85 % of the size> --every 10s. Both go when the endpoint is deleted, or when its plan has no peer worker any more. A claim's class and size never change in place: after you change the URL, delete the claim (kubectl -n opodcp delete pvc <name>) and the next rollout makes it again. The volume is your storage: no node disk is claimed in the ledger.

A burst stays near the cap. The pruner walks the whole volume every 10 s. On a network filesystem each directory listing is a round trip, so the chart's pruner (core v0.4.8) lists 32 directories at once, passes again 1 s after a pass that found growth, trims ahead of the growth it measured, and while idle reads the volume's free space every second to start a pass as soon as a burst begins. On NFS, with a 1 GiB claim and a 0.85 GiB cap, two hosts writing 60 new documents each peaked at 0.95–1.08 × the cap in four runs. Core v0.4.7's pruner reached 1.26 × when the burst began right after an idle pass, and v0.4.6's about 2.3 ×. Keep the 15 % between the cap and the claim's size: the engine's writes fail while the volume is full.

Verify answers no-probe: the control plane does not read StorageClasses. A URL that does not parse (a bad size) is invalid. A class that does not exist, or cannot give ReadWriteMany, shows on the endpoint instead: it reads degraded with KVSharedVolumePending (<claim>): <reason>: <message>, the provisioner's own event, for example ProvisioningFailed: storageclass.storage.k8s.io "nfs-rwx" not found.

KV store: Valkey or Redis

The peer KV tier this store serves is refused on every engine and vendor in 0.3.6 (KV tiers → The peer tier), so a connected store stays unused today.

Address: OPODCP_KVSTORE_URL=redis://valkey.example.com:6379, and the password in OPODCP_KVSTORE_PASSWORD; a password in the URL is refused. rediss:// (TLS) is not supported. Or let the chart run one: --set kvStore.enabled=true starts one Valkey replica (LRU eviction, no persistence, a generated 40-character password in Secret <release>-kvstore-auth) and builds the URL itself. In 0.3.6, use a password of letters and digits on your own store: it is placed in the workers' store URL as it is. In the release after 0.3.6 any password works: the control plane's copy for the workers is percent-encoded, and the store client decodes it.

Verify connects, sends AUTH when a password is set, then PING. NOAUTH is refused. In the release after 0.3.6 it also reads INFO memory, and so does the doctor's kvstore row: a store with no cap (maxmemory 0) or one that does not evict (maxmemory-policy noeviction, Redis's default) is invalid, because a KV cache in it either grows until its host runs out of memory or stops taking writes with nothing said. Set maxmemory and maxmemory-policy allkeys-lru; a volatile-* policy passes with a note, since it evicts only keys with a TTL. A store that refuses INFO keeps the PING answer and says the two values are unread.

Ports set by the chart

These ports are not Connectors settings. Each has its setup page:

PortSet up
registry (ghcr.io, a private registry)Air-gapped install, Supply chain
autoscaler (embedded, KEDA)Autoscaling
gangs (Deployments, LeaderWorkerSet)Gangs
cloud (onprem, aws, gcp, azure)Kubernetes
fabric (pcie+ethernet, InfiniBand, RoCE)Gangs → Fabrics. InfiniBand or RoCE is chosen from the link layer of the RDMA NIC the probe reads; both use the same plumbing and become a domain only after a fabric proof passes

Last updated · Source: content/docs/control-plane-operate/connector-setup.mdx · View as Markdown