---
title: "Configuration"
description: "The chart settings most installs change (database, admin token, install key, tolerations, leader placement, resources, exposure) and every OPODCP_* variable the binary reads."
url: "https://opod.io/docs/control-plane-install/configuration/"
markdown_url: "https://opod.io/docs/control-plane-install/configuration.md"
section: "Install"
last_updated: "2026-10-31"
---

# Configuration

> The chart settings most installs change (database, admin token, install key, tolerations, leader placement, resources, exposure) and every OPODCP_* variable the binary reads.

## In short

You configure the control plane in two places. Chart values (`helm upgrade --set …`) set what the release itself needs: the database, the admin token, the install key, where pods run, their resources and how endpoints are reached. Every other service it talks to (a usage sink, OIDC, alerts, logs) is a connector that an admin saves on the console's **Connectors** page. A chart value change rolls the control plane pod; a change that touches pod templates waits for each endpoint's next rollout.

## When you need it

- Your GPU nodes carry a taint of their own, and nothing is placed on them.
- Leaders land on GPU nodes and you want them on cheap CPU nodes instead.
- Workers need more CPU or memory than the default floor, or a memory ceiling.
- You want endpoints reachable from outside the cluster through your Gateway or Ingress.
- You reinstall over a kept database and must bring back its install key.
- You need a proxy, a custom CA bundle or an OIDC claim name that has no chart value.

## Do it

1. **Read what runs now**

   ```bash
   export CP=https://cp.example.com
   export OPODCP_URL=$CP   # the opodcp CLI reads these two
   export OPODCP_TOKEN=$(kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d)
   export H="Authorization: Bearer $OPODCP_TOKEN"
   helm get values opodcp -n opodcp
   curl -s -H "$H" $CP/api/v1/config | jq -r '.env[] | select(.set) | "\(.name)=\(.value // "(" + .redaction + ")")"'
   ```

   `helm get values` prints only what you set. `/api/v1/config` (admin) prints every `OPODCP_*` variable the pod runs with, a secret shown as `(secret)`. Each row also carries `chart` (the value that sets it) and `helm` (the upgrade line that changes it).

2. **Change the value**

   ```bash
   helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values \
     --set-json 'workloads.tolerations=[{"key":"sku","operator":"Equal","value":"gpu","effect":"NoSchedule"}]'
   kubectl -n opodcp rollout status deploy/opodcp
   ```

3. **Roll the endpoints, if the value changes pod templates**

   Tolerations, resources, images and TLS change the pods the control plane renders. Running endpoints keep their pods and report `template-drift` until you roll them:

   ```bash
   kubectl -n opodcp exec deploy/opodcp -- /opodcp doctor | grep template-drift
   opodcp endpoint rollout --wait --note 'new tolerations' chat
   ```

## Check it worked

```bash
kubectl -n opodcp get deploy opodcp -o json \
  | jq -r '.spec.template.spec.containers[0].env[] | select(.name=="OPODCP_WORKLOAD_TOLERATIONS") | .value'
# [{"effect":"NoSchedule","key":"sku","operator":"Equal","value":"gpu"}]
```

The variable beside each value in [Set from a chart value](#set-from-a-chart-value) is the one to look for. The console shows the same on **Settings → Effective configuration**, each row with the `helm upgrade` line that changes it.

## If it fails

| Message                                                                                            | Cause                                                   | Fix                                                             |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | --------------------------------------------------------------- |
| `ports.usage is not a chart value any more: connector settings are saved on the Connectors page …` | a connector value from a `0.2.1` values file            | add `--set ports.usage=null`, then save it on **Connectors**    |
| `ports.state.dsn carries a user or a password in its address`                                      | a credential in a plain value                           | put the whole DSN in a Secret; set `ports.state.dsnSecret.name` |
| `ha.postgres.provide and ports.state.dsn (or its Secret) are both set`                             | two databases asked for                                 | keep one                                                        |
| `replicas > 1 cannot run under nodeSelector kubernetes.io/hostname`                                | an HA release pinned to one node                        | remove the hostname from `nodeSelector`                         |
| A new default did not arrive after an upgrade                                                      | plain `--reuse-values`                                  | upgrade again with `--reset-then-reuse-values`                  |
| A plan is refused `E-NODE-TAINTED`                                                                 | `workloads.tolerations` does not cover the node's taint | set the value the refusal names in `details.set`                |

## Two places: chart values and connectors

The chart carries **one connector setting, the database**. Every other connector (usage sink, events, logs, metrics, traces, OIDC, notifier, secret store, checkpoints, batch files, KV store) is saved by an admin on the console's **Connectors** page, into the database. See [Connectors](https://opod.io/docs/control-plane-operate/connectors/). This page covers the chart values you set at install, for `0.3.0`. The full table is the [Helm values reference](https://opod.io/docs/control-plane-reference/helm-values/). In `0.2.1` the database was an embedded SQLite file on a volume and the connectors were chart values under `ports.<port>`; see [Releases](https://opod.io/docs/get-started/releases/).

Change a value with:

```bash
helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values --set <key>=<value>
```

Use `--reset-then-reuse-values`, never plain `--reuse-values`, which drops every default a newer chart added. The console's **Settings → Effective configuration** shows each `OPODCP_*` variable the control plane runs with and the exact `helm upgrade` that changes it.

## Database

| Value                        | Default | Meaning                                                           |
| ---------------------------- | ------- | ----------------------------------------------------------------- |
| `ports.state.dsnSecret.name` | `""`    | a Secret in the release namespace holding the whole DSN           |
| `ports.state.dsnSecret.key`  | `dsn`   | the Secret's item                                                 |
| `ports.state.dsn`            | `""`    | a plain `postgres://host/db` with no credential in it             |
| `ports.state.adapter`        | `""`    | your declaration of the adapter; checked against the DSN's scheme |

```bash
kubectl -n opodcp create secret generic opod-state-dsn \
  --from-literal=dsn='postgres://opod:…@pg.example.com:5432/opod?sslmode=require'
helm upgrade --install opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --create-namespace \
  --set ports.state.dsnSecret.name=opod-state-dsn \
  --set ports.state.adapter=postgres
```

Give one of `dsn` or `dsnSecret`, never both: both set fails the render. A plain DSN with a user, a password, or a credential in its query fails the render too. `ports.state.dsnSecret` is new in `0.3.0`.

With no database, the control plane starts in setup mode and asks for one until it answers. `ha.postgres.provide=true` lets the chart run a CloudNativePG Postgres instead; it fails the render when `ports.state.dsn` or its Secret is also set. See [High availability](https://opod.io/docs/control-plane-install/high-availability/). Any other `ports.<port>` value fails the render: connector settings are not chart values any more.

## The admin token

`admin.token` (or `admin.existingSecret`, a Secret with item `token`) is a **bootstrap** credential. Empty, the chart generates one once into `<release>-opodcp-admin` and keeps it across upgrades and uninstalls. Every action taken with it is audited as `static-admin`, so the doctor's `identity` row stays red while the shared token still works. A configured OIDC issuer retires the token. Local users do not: users beside a working token is the worse doctor state, because acting as `static-admin` stays possible. Emptying `admin.token` alone does not remove it, because the chart keeps the generated token in its Secret. See [Users, roles and SSO](https://opod.io/docs/control-plane-security/authentication/).

```bash
# bring your own bootstrap token, kept in a Secret you manage
kubectl -n opodcp create secret generic opod-admin --from-literal=token="$(openssl rand -hex 20)"
helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values \
  --set admin.existingSecret=opod-admin
# read the token the chart generated, when you did not bring one
kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d; echo
```

## The install key

The install key is new in `0.3.0`. It seals every connector credential the control plane stores in its database (envelope encryption with Google Tink). Empty, the chart mints 32 random bytes once into `<release>-opodcp-install-key` and keeps it across upgrades and uninstalls.

| Value                       | Meaning                                                  |
| --------------------------- | -------------------------------------------------------- |
| `installKey.existingSecret` | a Secret with item `keys`                                |
| `installKey.keys`           | base64 keys, comma-separated; the first seals new values |

```bash
# save the key the chart minted, beside your database backup
kubectl -n opodcp get secret opodcp-install-key -o jsonpath='{.data.keys}' | base64 -d > install-key.txt
# a reinstall over the same database reuses it
kubectl -n opodcp create secret generic opod-install-key --from-file=keys=install-key.txt
helm upgrade --install opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp \
  --set installKey.existingSecret=opod-install-key --set ports.state.dsnSecret.name=opod-state-dsn
```

**Keep the install key with your database backups.** The database without it holds no readable credential. A lost key loses the stored credentials, never the data: you enter them again on the Connectors page. To rotate, put the new key first, save each connector again, then drop the old key.

## Tolerations for your GPU nodes

`tolerations` applies to the `opodcp` pod only. `workloads.tolerations` applies to **every pod the control plane creates**: leaders, workers, gang parts, prefetch, warm, eval and cache-prune Jobs, and training Jobs.

```bash
helm upgrade … --set-json 'workloads.tolerations=[{"key":"sku","operator":"Equal","value":"gpu","effect":"NoSchedule"}]'
```

You do not need it for a GPU pool tainted with its own device resource (`nvidia.com/gpu`, `amd.com/gpu`, `gpu.intel.com/*`, the Tenstorrent resource). A node with a taint nothing tolerates is measured and counted, never placed on, and a plan that names it is refused `E-NODE-TAINTED` with the exact value to set. Operators `Exists` and `Equal` only. Changing this value changes pod templates: running endpoints report template drift and take it on their next rollout. Preflight (`nodes.taints`) and doctor (`node-taints`) also print the value to set.

## Where leaders and front doors run

The control plane picks each leader's and door's node by a fixed rule and pins it with a required node affinity:

1. nodes labelled `opod.io/leaders=prefer`
2. then nodes with no accelerator
3. then the node with the fewest leaders and doors
4. then the node name

A node labelled `opod.io/leaders=avoid` is never picked. `workloads.leaderPool` (it is new in `0.3.0`) is a label selector (for example `opod.io/pool=fronts`) that keeps every leader and door inside the nodes it matches. Preflight (`fronts.pool`) and doctor (`leader-fence`) warn when fewer than two nodes may hold one.

```bash
opodcp node label --cp https://cp.example.com --token "$OPODCP_TOKEN" node-a opod.io/leaders=avoid
# node node-a: opod.io/leaders=avoid
opodcp nodes --leaders     # reads OPODCP_URL and OPODCP_TOKEN when --cp and --token are left out
```

Flags go before the node name: the command stops reading flags at the first word that is not one.

`opodcp node label` and `opodcp nodes` are new in `0.3.0`. A pin moves only when its node may no longer hold a front: fenced, outside the pool, tainted or gone. Labelling a node `prefer` steers the next pick, not a running leader.

## Resources and scheduling

| Value                                 | Default                       | Meaning                                                                                                                                                          |
| ------------------------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `resources`                           | 100m / 256Mi, limit 1Gi       | the `opodcp` pod                                                                                                                                                 |
| `workerResources.requests`            | 500m CPU, 2Gi                 | the floor a worker is scheduled at; raise for large models                                                                                                       |
| `workerResources.limits.memory`       | `""`                          | a memory ceiling per worker; set it on machines shared with other work                                                                                           |
| `workloads.leader.resources`          | 100m / 256Mi, no memory limit | each leader; is new in `0.3.0`                                                                                                                                   |
| `workloads.gateway.resources`         | 100m / 192Mi, no memory limit | each front door; is new in `0.3.0`                                                                                                                               |
| `workloads.worker.startBudgetMinutes` | `90`                          | a worker never Ready this long is restarted; `0` turns it off; is new in `0.3.0`                                                                                 |
| `kvOffload.maxNodePct`                | `50`                          | the share of one node's memory its KV cache tiers may take; past it a plan is refused `E-KV-RAM`; is new in `0.3.0`                                              |
| `priorityClasses.*`                   | created                       | `opodcp-serving` (100000) above `opodcp-batch` (10000) above `opodcp-batch-preemptible` (1000), all below `system-cluster-critical`; an empty name = no priority |
| `priorityClasses.nodePressure`        | `""`                          | `system-cluster-critical` lets the cache prune and the probe run on a node under DiskPressure                                                                    |
| `allowNodeConsolidation`              | `false`                       | `true` lets Karpenter or cluster-autoscaler move our pods; `0.2.1` ignored this value                                                                            |
| `kube.qps`, `kube.burst`              | `0` (50 / 100)                | the control plane's client-side budget against the API server                                                                                                    |
| `api.rateLimit.rps`, `.burst`         | `0` (off)                     | a per-caller API rate limit; over it, `429` with `Retry-After`                                                                                                   |

A change to worker, leader or door resources is a pod-template change and rides each endpoint's next rollout.

A realistic set for large models on machines shared with other work:

```yaml
# values-resources.yaml
resources: { requests: { cpu: 200m, memory: 512Mi }, limits: { memory: 2Gi } }
workerResources:
  requests: { cpu: "4", memory: 32Gi }   # a 70B model's host-side buffers
  limits: { memory: 64Gi }               # a ceiling, because the machine runs other jobs
workloads:
  leader:  { resources: { requests: { cpu: 250m, memory: 512Mi }, limits: { memory: 1Gi } } }
  gateway: { resources: { requests: { cpu: 200m, memory: 256Mi }, limits: { memory: 512Mi } } }
  worker:  { startBudgetMinutes: 120 }   # big weights take long to load the first time
kvOffload: { maxNodePct: 40 }
priorityClasses: { nodePressure: system-cluster-critical }
kube: { qps: 100, burst: 200 }           # a cell with hundreds of endpoints
api: { rateLimit: { rps: 20, burst: 40 } }
```

```bash
helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values -f values-resources.yaml
opodcp endpoint rollout --wait --note 'new worker resources' chat   # each endpoint takes the new template
```

## How endpoints are reached

By default an endpoint is reachable inside the cluster through its Service, in plain HTTP on port 8080. To reach endpoints from outside, set a host pattern and let the control plane render one route per endpoint:

```yaml
endpoints:
  expose: auto              # auto · gateway · ingress · none
  gateway: { name: "", namespace: "", sectionName: "" }
  ingress:
    host: "{endpoint}.{cell}.example.com"
    className: nginx
    tlsSecret: ""
    annotations: { cert-manager.io/cluster-issuer: letsencrypt }
```

Set `endpoints.ingress.host` in a values file or with `--set-json`: `--set` reads braces as a list. Its default is `""` (no route); in `0.2.1` it was `{endpoint}.{cell}.example.com`. `endpoints.expose` and `endpoints.gateway` are new in `0.3.0`. `tlsSecret` and `annotations` are read only when `className` is set. `auto` attaches an `HTTPRoute` to your Programmed Gateway when one exists, else an `Ingress` through your class, else nothing. With `gateway`, every endpoint apply is refused `E-GATEWAY-NOT-READY` while no Gateway is ready. Your Gateway or Ingress terminates TLS with your certificate. See [Network and TLS](https://opod.io/docs/control-plane-security/network-tls/), including `endpoints.tls.embedded` for in-cluster TLS.

## RBAC and the service account

| Value                   | Default | Meaning                                                                                                                                               |
| ----------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `rbac.create`           | `true`  | render the Role, ClusterRole and their bindings; `false` when your platform team applies them                                                         |
| `rbac.nodeDrain`        | `true`  | the cluster-wide `create` on `pods/eviction` that a full **Drain** needs; `false` removes that one rule, and evacuating our own workloads still works |
| `serviceAccount.create` | `true`  | render the ServiceAccount `<release>-opodcp`                                                                                                          |
| `serviceAccount.name`   | `""`    | the ServiceAccount to run as; empty = the release's own                                                                                               |

A cluster whose platform team owns every role, and that allows no cross-namespace eviction:

```bash
helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values \
  --set rbac.create=false --set rbac.nodeDrain=false \
  --set serviceAccount.create=false --set serviceAccount.name=opod-cp
```

With `rbac.create=false`, the grants listed in [What the control plane may do in your cluster](https://opod.io/docs/control-plane-install/kubernetes/#what-the-control-plane-may-do-in-your-cluster) must already be bound to that ServiceAccount, or the doctor's `executor` row and every apply fail with `forbidden`.

## Engine images

`engineImages.*` names the leader image and one worker image per engine and vendor, each pinned by digest. A plan pins the images it runs when it is created; only a rollout re-pins them. To serve a pair the chart has no named value for, add `OPODCP_IMAGE_<ENGINE>_<VENDOR>` through `extraEnv`. To use your own registry, see [Air-gapped install](https://opod.io/docs/control-plane-install/air-gapped/).

```yaml
engineImages:
  vllmNvidia: registry.example.com/opod/opod-worker-vllm-nvidia@sha256:…   # your mirror of the same digest
  trtllmNvidia: registry.example.com/opod/trtllm-nvidia@sha256:…            # setting it accepts NVIDIA's NGC licence
extraEnv:
  - { name: OPODCP_IMAGE_SGLANG_TT, value: "registry.example.com/opod/sglang-tt@sha256:…" }   # a pair with no named value; the planner still refuses a pair its engine cannot run
```

```bash
opodcp images matrix     # every engine × vendor pair and the image the executor will use
```

## Extra environment

`extraEnv` adds environment to the `opodcp` container, in Kubernetes `EnvVar` form. Use it for variables with no named value: `HTTPS_PROXY` and `NO_PROXY`, `SSL_CERT_FILE`, the OIDC claim names (`OPODCP_OIDC_ROLE_CLAIM`, `OPODCP_OIDC_TEAM_CLAIM`, `OPODCP_OIDC_REDIRECT_URL`), `OTEL_EXPORTER_OTLP_HEADERS`, `OPODCP_LOGS_HEADERS`. Put anything that carries a token in a Secret and use `valueFrom.secretKeyRef`. A name the chart already sets is rejected by the API server as a duplicate. [Environment variables](#environment-variables) lists which variables have no chart value.

```yaml
extraEnv:
  - name: HTTPS_PROXY
    valueFrom: { secretKeyRef: { name: corp-proxy, key: url } }
```

## Environment variables

Read what a running control plane uses, with secrets redacted:

```bash
curl -s -H "$H" https://cp.example.com/api/v1/config | jq '.env[] | select(.name | startswith("OPODCP_WORKER"))'
kubectl -n opodcp exec deploy/opodcp -- /opodcp serve -h | sed -n '/^environment/,$p'
```

The `opodcp` binary reads its settings from `OPODCP_*` variables. `opodcp serve -h` lists every name. The chart sets most of them from its values; you rarely set one by hand. The default below is the binary's own, used when the variable is unset. This list describes `0.3.0`: in `0.2.1` the connector variables came from chart values under `ports.<port>`. These names are new in `0.3.0`: `OPODCP_MODE`, `OPODCP_FLEET_CELLS`, `OPODCP_INSTALL_KEYS`, `OPODCP_HELM_RELEASE`, `OPODCP_CHART_REF`, `OPODCP_CHART_VERSION`, `OPODCP_KEDA_SUBSTRATE`, `OPODCP_NODE_SCALING`, `OPODCP_ALLOW_NODE_CONSOLIDATION`, `OPODCP_GPU_SLICES_PER_CARD`, `OPODCP_GPU_SLICE_CHOICES`, `OPODCP_KV_TIER_MAX_PCT`, `OPODCP_WORKER_START_BUDGET_MIN`, `OPODCP_LEADER_POOL`, `OPODCP_LEADER_CPU_REQUEST`, `_MEMORY_REQUEST` and `_MEMORY_LIMIT`, `OPODCP_GATEWAY_CPU_REQUEST`, `_MEMORY_REQUEST` and `_MEMORY_LIMIT`, `OPODCP_DOOR_IMAGE`, `_REPLICAS`, `_CPU_REQUEST` and `_MEMORY_REQUEST`, `OPODCP_EXPOSE`, `OPODCP_GATEWAY_NAME`, `_NAMESPACE` and `_SECTION`, `OPODCP_INFERENCEPOOL`, `OPODCP_INFERENCEPOOL_GATEWAY_NAMESPACE` and `_LABELS`, `OPODCP_IMAGE_EPP` and `OPODCP_TRACES_SAMPLE_RATIO`.

### Set from the release

The chart fills these from the release itself. No value changes them.

| Variable                                                    | Default                                     | Meaning                                                                                                                                                                                                              |
| ----------------------------------------------------------- | ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OPODCP_ADDR`                                               | `:8080`                                     | the listen address                                                                                                                                                                                                   |
| `OPODCP_DATA`                                               | `/var/lib/opodcp`                           | a scratch directory; it holds only the Sigstore root cache                                                                                                                                                           |
| `OPODCP_NAMESPACE`                                          | `opodcp`                                    | where endpoints are created; the release's namespace (`opod` in `0.3.0`)                                                                                                                                             |
| `OPODCP_HELM_RELEASE`                                       | `opodcp`                                    | the release name, for the `helm upgrade` lines the console prints (`opod` in `0.3.0`)                                                                                                                                |
| `OPODCP_CHART_VERSION`                                      | `""`                                        | the chart version installed                                                                                                                                                                                          |
| `OPODCP_SELF_URL`                                           | `""`                                        | this control plane's Service address, which the node probes report to. From the release after 0.3.6, only a control plane outside its cluster is pushed to at this address; one inside reads each probe on port 9147 |
| `OPODCP_POD_NAME`, `OPODCP_NODE_NAME`                       | `""`                                        | the pod's name and node (downward API)                                                                                                                                                                               |
| `OPODCP_DOOR_ROUTES_CONFIGMAP`, `OPODCP_DOOR_URL`           | `""`                                        | the cell door's routes ConfigMap and address, with `door.enabled`                                                                                                                                                    |
| `OPODCP_EVENTS_URL`                                         | `""` = the embedded journal                 | the chart's NATS, with `ha.nats.provide`; a saved events connector wins                                                                                                                                              |
| `OPODCP_KVSTORE_URL`, `_SECRET`, `_SECRET_KEY`, `_PASSWORD` | `""`; the secret key defaults to `password` | the chart's KV store, with `kvStore.enabled`; a saved KV store connector wins                                                                                                                                        |

### Set from a chart value

| Variable                                                                             | Chart value                                                                   | Default when unset                                                                                                 |
| ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `OPODCP_CELL`                                                                        | `cell.name`                                                                   | `default`                                                                                                          |
| `OPODCP_SERVICE_DOMAIN`                                                              | `cell.serviceDomain`                                                          | `<namespace>.svc`                                                                                                  |
| `OPODCP_MODE`                                                                        | `mode`                                                                        | `cell`                                                                                                             |
| `OPODCP_FLEET_CELLS`                                                                 | `fleet.cells`                                                                 | `""`; a JSON list of `{name, url, tokenFile}`                                                                      |
| `OPODCP_ADMIN_TOKEN`                                                                 | `admin.token` or `admin.existingSecret`                                       | `""`; the binary refuses to start without it, unless `OPODCP_BOOTSTRAP_ADMIN_PASSWORD` or `OPODCP_INSECURE` is set |
| `OPODCP_INSTALL_KEYS`                                                                | `installKey.*`                                                                | `""`                                                                                                               |
| `OPODCP_LICENCE_KEY`                                                                 | `licence.*`                                                                   | `""` = the free tier                                                                                               |
| `OPODCP_STATE_DSN`                                                                   | `ports.state.dsn` or `ports.state.dsnSecret`                                  | `""` = setup mode                                                                                                  |
| `OPODCP_STATE_ADAPTER`                                                               | `ports.state.adapter`                                                         | `""`; `postgres` with `ha.postgres.provide`                                                                        |
| `OPODCP_KUBE_QPS`, `OPODCP_KUBE_BURST`                                               | `kube.qps`, `kube.burst`                                                      | `0` = 50 and 100                                                                                                   |
| `OPODCP_API_RATE_RPS`, `OPODCP_API_RATE_BURST`                                       | `api.rateLimit.*`                                                             | `0` = off                                                                                                          |
| `OPODCP_TRUSTED_PROXIES`                                                             | `api.trustedProxies`                                                          | `""`, comma-separated CIDRs                                                                                        |
| `OPODCP_CONTROLLERS`                                                                 | `controllers`                                                                 | `""` = every loop                                                                                                  |
| `OPODCP_AUTOSCALER`                                                                  | `autoscaler.adapter`                                                          | `embedded`                                                                                                         |
| `OPODCP_KEDA_SUBSTRATE`                                                              | `substrate.keda.enabled`                                                      | off                                                                                                                |
| `OPODCP_CLOUD`                                                                       | `cloud.provider`                                                              | `onprem`                                                                                                           |
| `OPODCP_NODE_SCALING`                                                                | `cloud.nodeScaling`                                                           | off                                                                                                                |
| `OPODCP_ALLOW_NODE_CONSOLIDATION`                                                    | `allowNodeConsolidation`                                                      | off                                                                                                                |
| `OPODCP_IMAGES_VERIFY`                                                               | `images.verify`                                                               | `warn`                                                                                                             |
| `OPODCP_IMAGES_TRUST`                                                                | `images.trust`                                                                | `""`; a JSON list                                                                                                  |
| `OPODCP_IMAGES_TRUST_ROOT`                                                           | `images.trustRoot`, `images.trustRootConfigMap`                               | `auto`; a ConfigMap becomes a file path                                                                            |
| `OPODCP_IMAGE_LEADER`, `OPODCP_IMAGE_LLAMACPP_CPU`, `OPODCP_IMAGE_<ENGINE>_<VENDOR>` | `engineImages.leader`, `engineImages.llamacppCpu`, the other `engineImages.*` | none: an unset image is refused by name                                                                            |
| `OPODCP_IMAGE_EPP`, `OPODCP_IMAGE_FABRIC_PROBE`                                      | `engineImages.epp`, `engineImages.fabricProbe`                                | `""`                                                                                                               |
| `OPODCP_IMAGE_PULL_SECRET`                                                           | `imagePullSecrets[0].name`                                                    | `""`                                                                                                               |
| `OPODCP_HUB_ENDPOINT`                                                                | `weights.hubEndpoint`                                                         | `""` = the public Hub                                                                                              |
| `OPODCP_SKIP_SOURCE_CHECK`                                                           | `weights.skipSourceCheck`                                                     | off                                                                                                                |
| `OPODCP_CATALOG_PUBKEY`, `OPODCP_CATALOG_REQUIRE_SIGNED`                             | `weights.catalogPubKey`, `weights.catalogRequireSigned`                       | `""`, off                                                                                                          |
| `OPODCP_WORKER_MTLS`                                                                 | `workers.mtls`                                                                | `allow`; an unknown value is read as `allow`                                                                       |
| `OPODCP_WORKER_REJECT_BEARER`                                                        | `workers.rejectBearer`                                                        | off                                                                                                                |
| `OPODCP_WORKER_CPU_REQUEST`, `OPODCP_WORKER_MEMORY_REQUEST`                          | `workerResources.requests.*`                                                  | `500m`, `2Gi`                                                                                                      |
| `OPODCP_WORKER_MEMORY_LIMIT`                                                         | `workerResources.limits.memory`                                               | `""` = no limit                                                                                                    |
| `OPODCP_LEADER_CPU_REQUEST`, `_MEMORY_REQUEST`, `_MEMORY_LIMIT`                      | `workloads.leader.resources.*`                                                | `100m`, `256Mi`, no limit                                                                                          |
| `OPODCP_GATEWAY_CPU_REQUEST`, `_MEMORY_REQUEST`, `_MEMORY_LIMIT`                     | `workloads.gateway.resources.*`                                               | `100m`, `192Mi`, no limit                                                                                          |
| `OPODCP_WORKER_START_BUDGET_MIN`                                                     | `workloads.worker.startBudgetMinutes`                                         | `90`; `0` = off                                                                                                    |
| `OPODCP_KV_TIER_MAX_PCT`                                                             | `kvOffload.maxNodePct`                                                        | `50`; 1 to 100                                                                                                     |
| `OPODCP_WORKLOAD_TOLERATIONS`                                                        | `workloads.tolerations`                                                       | `""`; a JSON list                                                                                                  |
| `OPODCP_LEADER_POOL`                                                                 | `workloads.leaderPool`                                                        | `""` = every node                                                                                                  |
| `OPODCP_PRIORITY_CLASS_SERVING`, `_BATCH`, `_BATCH_PREEMPTIBLE`, `_NODE_PRESSURE`    | `priorityClasses.*`                                                           | `""` = no priority                                                                                                 |
| `OPODCP_AMD_PRIVILEGED_FALLBACK`                                                     | `substrate.amdDevicePlugin.privilegedFallback`                                | off                                                                                                                |
| `OPODCP_GPU_SLICES_PER_CARD`, `OPODCP_GPU_SLICE_CHOICES`                             | `substrate.nvidiaDevicePlugin.timeSlicing.*`                                  | `4`; an empty list (the chart sets `2,4,8`)                                                                        |
| `OPODCP_LWS_ENABLED`                                                                 | `substrate.leaderWorkerSet.enabled`                                           | off; on = a gang plan is refused while the LeaderWorkerSet controller is missing                                   |
| `OPODCP_RDMA_DEVICE_PLUGIN`                                                          | `substrate.rdmaDevicePlugin.enabled`                                          | off                                                                                                                |
| `OPODCP_RDMA_RESOURCE`, `OPODCP_RDMA_NETWORK`                                        | `fabric.rdmaResource`, `fabric.networkAttachment`                             | `""` (the chart sets `rdma/hca_shared_devices_a`, `opodcp-rdma`)                                                   |
| `OPODCP_FABRIC_HOSTNETWORK`                                                          | `fabric.hostNetwork`                                                          | off                                                                                                                |
| `OPODCP_INFERENCEPOOL`                                                               | `inferencePool.enabled`                                                       | off                                                                                                                |
| `OPODCP_INFERENCEPOOL_GATEWAY_NAMESPACE`, `_LABELS`                                  | `inferencePool.gatewayPods.*`                                                 | `envoy-gateway-system`; empty labels = Envoy Gateway's own                                                         |
| `OPODCP_DOOR_IMAGE`, `_REPLICAS`, `_CPU_REQUEST`, `_MEMORY_REQUEST`                  | `door.*`                                                                      | `""`, `2`, `100m`, `64Mi`                                                                                          |
| `OPODCP_TLS_EMBEDDED`                                                                | `endpoints.tls.embedded`                                                      | **on** when unset; the chart always sets it, `0` by default                                                        |
| `OPODCP_TLS_CERT_DAYS`, `OPODCP_TLS_RENEW_DAYS`                                      | `endpoints.tls.certDays`, `.renewDays`                                        | `3650`, `30`                                                                                                       |
| `OPODCP_EXPOSE`                                                                      | `endpoints.expose`                                                            | `auto`                                                                                                             |
| `OPODCP_GATEWAY_NAME`, `_NAMESPACE`, `_SECTION`                                      | `endpoints.gateway.*`                                                         | `""` = the one Programmed Gateway                                                                                  |
| `OPODCP_INGRESS_HOST`, `OPODCP_INGRESS_CLASS`                                        | `endpoints.ingress.host`, `.className`                                        | `""`                                                                                                               |
| `OPODCP_INGRESS_TLS_SECRET`, `OPODCP_INGRESS_ANNOTATIONS`                            | `endpoints.ingress.tlsSecret`, `.annotations`                                 | `""`; set only with a class                                                                                        |
| `OPODCP_LEADER_ISOLATION`                                                            | `networkPolicy.leaderIsolation.enabled`                                       | off                                                                                                                |
| `OPODCP_LEADER_ISOLATION_DETECT_API_SERVER`                                          | `networkPolicy.leaderIsolation.detectAPIServer`                               | on                                                                                                                 |
| `OPODCP_LEADER_ISOLATION_FROM`                                                       | `networkPolicy.leaderIsolation.from`                                          | `""`; a JSON list                                                                                                  |
| `OPODCP_LEADER_ISOLATION_SCALER_NAMESPACE`, `_SCALER_LABELS`                         | `networkPolicy.leaderIsolation.scaler.*`                                      | the release's namespace; `app.kubernetes.io/name=keda-operator`                                                    |

Each chart value reaches the binary as the variable beside it. For example, this upgrade sets three of them:

```bash
helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values \
  --set workers.mtls=require \
  --set workloads.worker.startBudgetMinutes=120 \
  --set images.verify=enforce
kubectl -n opodcp get deploy opodcp -o json \
  | jq -r '.spec.template.spec.containers[0].env[] | select(.name|test("WORKER_MTLS|START_BUDGET|IMAGES_VERIFY")) | "\(.name)=\(.value)"'
# OPODCP_WORKER_MTLS=require
# OPODCP_WORKER_START_BUDGET_MIN=120
# OPODCP_IMAGES_VERIFY=enforce
```

### Saved on the Connectors page

An admin saves these on the **Connectors** page, into the database. They are not chart values. See [Connectors](https://opod.io/docs/control-plane-operate/connectors/).

| Variable                                                                                                                  | Default                           | Meaning                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OPODCP_USAGE_DSN`, `OPODCP_USAGE_ADAPTER`                                                                                | `""`                              | the usage sink; empty = rows stay in the spool                                                                                                                                                                      |
| `OPODCP_USAGE_RETENTION`                                                                                                  | 30 days                           | spool retention, `720h` or `30d`; `0` keeps everything                                                                                                                                                              |
| `OPODCP_USAGE_TRIM_EXISTING`                                                                                              | off                               | also trim rows written before retention was set                                                                                                                                                                     |
| `OPODCP_EVENTS_URL`                                                                                                       | `""`                              | `nats://host:4222`: every event is also published there; wins over `ha.nats.provide`                                                                                                                                |
| `OPODCP_SECRETS_URL`                                                                                                      | `""`                              | `vault://…`: a record of every minted token                                                                                                                                                                         |
| `OPODCP_NOTIFY_URLS`                                                                                                      | `""`                              | alert sinks, comma-separated; empty = the console and `/metrics`                                                                                                                                                    |
| `OPODCP_JOB_CHECKPOINTS`                                                                                                  | `""`                              | job checkpoints; `""` = a host path on the job's node, `pvc://…` = one claim per job                                                                                                                                |
| `OPODCP_LOGS_ADAPTER`, `_URL`, `_TOKEN`, `_STREAMS`                                                                       | `stdout`, `""`, `""`, all streams | where the control plane's records, the audit stream and events go besides stdout                                                                                                                                    |
| `OPODCP_TRACES_URL`                                                                                                       | `""`                              | the OTLP/HTTP collector every leader exports spans to                                                                                                                                                               |
| `OPODCP_TRACES_SAMPLE_RATIO`                                                                                              | `""` = every request              | 0 to 1                                                                                                                                                                                                              |
| `OTEL_EXPORTER_OTLP_ENDPOINT`                                                                                             | `""`                              | push metrics over OTLP/HTTP as well                                                                                                                                                                                 |
| `OPODCP_KVSTORE_URL`, `_SECRET`, `_SECRET_KEY`, `_PASSWORD`                                                               | `""`, `""`, `password`, `""`      | your Redis or Valkey for peer KV tiers (`redis://valkey.example.com:6379`), or, from the release after 0.3.6, `pvc://nfs-rwx?size=200Gi` for one ReadWriteMany volume per endpoint; wins over the chart's `kvStore` |
| `OPODCP_BATCH_FILES_BUCKET`, `_PREFIX`, `_ENDPOINT`, `_REGION`, `_PATH_STYLE`, `_DOWNLOADS`, `_ACCESS_KEY`, `_SECRET_KEY` | `_DOWNLOADS` = `proxy`            | the batch API's object store; an empty bucket = no store                                                                                                                                                            |
| `OPODCP_OIDC_ISSUER`, `_CLIENT_ID`, `_CLIENT_SECRET`                                                                      | `""`                              | SSO; an issuer and a client id turn it on                                                                                                                                                                           |
| `OPODCP_OIDC_ROLE_MAP`, `OPODCP_OIDC_DEFAULT_ROLE`                                                                        | `""`, `viewer`                    | groups to roles                                                                                                                                                                                                     |
| `OPODCP_PUBLIC_URL`                                                                                                       | `""`                              | how browsers reach the console                                                                                                                                                                                      |

```bash
# the same as the Connectors page's Save: the control plane stores it and restarts
curl -s -H "$H" -H 'Content-Type: application/json' -X PUT \
  https://cp.example.com/api/v1/connectors/usage/settings \
  -d '{"set":{"OPODCP_USAGE_DSN":"clickhouse://ch.example.com:8123/opod","OPODCP_USAGE_RETENTION":"14d"}}'
curl -s -H "$H" -H 'Content-Type: application/json' -X PUT \
  https://cp.example.com/api/v1/connectors/usage/settings -d '{"unset":["OPODCP_USAGE_RETENTION"]}'
```

### Only through `extraEnv`

No chart value and no connector field sets these. Add them with `extraEnv`.

| Variable                              | Default                                         | Meaning                                                                  |
| ------------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------ |
| `OPODCP_OIDC_ROLE_CLAIM`              | `groups`                                        | the claim roles are read from                                            |
| `OPODCP_OIDC_TEAM_CLAIM`              | `""`                                            | the claim naming a user's team; unset = unscoped                         |
| `OPODCP_OIDC_REDIRECT_URL`            | `<OPODCP_PUBLIC_URL>/api/v1/auth/oidc/callback` |                                                                          |
| `OPODCP_LOGS_HEADERS`                 | `""`                                            | `k=v,k=v` headers for the logs sink                                      |
| `OTEL_EXPORTER_OTLP_HEADERS`          | `""`                                            | `k=v,k=v` headers for the metrics push                                   |
| `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT` | `""`                                            | wins over `OTEL_EXPORTER_OTLP_ENDPOINT`                                  |
| `OPODCP_BOOTSTRAP_ADMIN_PASSWORD`     | `""`                                            | seeds the local user `admin` while no user exists                        |
| `OPODCP_LEADER_ELECTION`              | on                                              | controller loops run behind a Kubernetes Lease; `0` turns it off         |
| `OPODCP_CACHE_GC`                     | `manual`                                        | `off`, `manual` or `auto`: how far the weight-cache prune goes alone     |
| `OPODCP_SELF_IMAGE`                   | `""` = this pod's own image                     | the image node probes copy the agent from                                |
| `OPODCP_LICENCE_FILE`                 | `""`                                            | a file holding the licence key; `OPODCP_LICENCE_KEY` wins                |
| `OPODCP_CHART_REF`                    | `oci://ghcr.io/opod-io/charts/opodcp`           | the chart the printed `helm upgrade` lines name                          |
| `OPODCP_TLS_CERT`, `OPODCP_TLS_KEY`   | `""`                                            | file paths; with both set, the API serves HTTPS itself                   |
| `OPODCP_INSECURE`                     | off                                             | `1` turns authentication off; local development only, never on a cluster |

```yaml
extraEnv:
  - { name: OPODCP_OIDC_ROLE_CLAIM, value: roles }
  - { name: OPODCP_OIDC_TEAM_CLAIM, value: team }
  - { name: OPODCP_CACHE_GC, value: auto }
  - { name: OPODCP_LEADER_ELECTION, value: "1" }
  - name: OTEL_EXPORTER_OTLP_HEADERS
    valueFrom: { secretKeyRef: { name: otlp-auth, key: headers } }   # "authorization=Bearer …"
```

`OPODCP_URL` and `OPODCP_TOKEN` are read by the `opodcp` CLI commands, not by `opodcp serve`: the control plane's address and a token.
