On this page
What runs in the cluster#
| Part | Pods | Needs |
|---|---|---|
Backend |
principal-backend (api), principal-backend-worker, principal-backend-scheduler |
PostgreSQL, OpenBao, Dex |
Console |
principal-frontend behind Ingress |
Backend |
Admission |
principal-admission (SSO gate, TokenReview webhooks) |
PostgreSQL |
OpenBao |
openbao-0 (3 pods with openbao.replicas: 3) |
Volumes |
Dex |
principal-dex (console, kubectl sign-in) |
Database |
Values: helm show readme <chart>. Principal 7.x upgrades: UPGRADING.md.
Small or highly available#
global.availability sets minimal (default) or ha. Component replica counts override it.
| Part | minimal |
ha |
Notes |
|---|---|---|---|
Backend, Console, Admission, Dex |
1 each |
2 each |
Spread across nodes, 1 kept on drain |
OpenBao |
1 |
3 |
Set openbao.replicas once at install |
PostgreSQL |
External (1 CNPG) |
External (3 CNPG) |
database.mode: cnpg for managed DB |
Backend roles#
Separate deployments keep jobs off console traffic. Single-pod installs split on upgrade without downtime.
| Role | Work | Scaling / failover |
|---|---|---|
api |
Console, API, sign-in, live streams |
Scale by CPU for users |
worker |
Background jobs: apply, drift, discovery, sync |
Add pods for targets, draining requeues jobs |
scheduler |
Triggers scheduled jobs |
DB-elected leader, standby fails over |
Database connections#
Per backend pod: pool, up to 10 lock sessions, 1 maintenance check, 1 listener (none on scheduler). Rolling updates double peak usage: 218 (minimal) or 416 (ha).
CNPG caps at 1000 and rejects values exceeding it. External PostgreSQL (e.g. RDS) must set max_connections above the number printed in install/upgrade notes.
Client addresses behind a proxy#
Trust proxy CIDRs so the backend reads X-Forwarded-For:
backend:
extraEnv:
HTTP_TRUSTED_PROXIES: "10.244.0.0/16"Without this, requests appear from the proxy, breaking token network checks, Last used, audit IPs and rate limits. Pre-sign-in limits apply per IP (4 × RATE_LIMIT_GLOBAL_RPS and RATE_LIMIT_GLOBAL_BURST). Signed-in limits apply per user or token across all IPs.