Configuration
The Helm chart sets these variables. Set them yourself when you run components without the chart.
Generated from servtuner commit 5b46cdad0e5c.
| Variable | Meaning | Values | Read by |
|---|---|---|---|
SERVTUNER_BASE_PATH |
context path the UI is hosted under (frontend.basePath); validated at start, an invalid value stops the container. Served under this path and also at /, so an ingress may pass the prefix through or strip it |
/ (default), /servtuner/, /tools/servtuner/ui/ |
frontend |
SERVTUNER_SCHEMA_DIR |
directory of the RunSpec and event schemas (schema/json); the api image sets it, the chart does not |
path | api |
SERVTUNER_API_PORT |
api listen port | integer | api |
SERVTUNER_SECRET_STORE |
where saved targets’ keys live (secretStore): Secrets in the runs namespace, files under the data directory (local development only), or nowhere |
kubernetes (chart default), file, none (the api’s own default) |
api |
SERVTUNER_RUN_SECRETS_DIR |
where a subprocess run or a target check gets the Secrets it names, as files for servtuner run --secrets-dir; deleted when the run or check ends. The chart mounts a memory-backed emptyDir there |
path; default <data dir>/run-secrets |
api |
SERVTUNER_RUNNER |
runner implementation. The api’s own default is subprocess (dev, single node, CI); the chart sets kubernetes |
subprocess, kubernetes |
api |
SERVTUNER_BENCH_BINARY |
path to the servtuner binary; required for the subprocess runner |
path | api (runner) |
SERVTUNER_API_URL |
URL bench uses to reach the api. Subprocess runner: default https://localhost:<port> (http:// in platform). Kubernetes runner: required; the chart sets the api Service, <scheme>://<fullname>-api.<namespace>.svc:<port> |
URL | api (runner) |
SERVTUNER_ENGINE_OVERRIDE |
**dev and e2e only, never set by the chart.** Passed to bench as --engine-override, so a run needs no real load engine |
null |
api (runner) |
SERVTUNER_RUNS_NAMESPACE |
namespace for bench Jobs, ConfigMaps, Secrets | namespace name (release namespace by default) | api |
SERVTUNER_BENCH_SERVICE_ACCOUNT |
ServiceAccount for bench Jobs | name | api (runner) |
SERVTUNER_BENCH_IMAGE |
bench image for Jobs | image reference | api (runner) |
SERVTUNER_IMAGE_REGISTRY |
global.imageRegistry without a trailing slash, or empty; offered as the registry of managed vLLM images |
host[:port][/path] | api |
SERVTUNER_OFFLINE |
offline: no public datasheet fallback, AWS pricing refused; passed to bench Jobs |
true / false |
api, bench |
SERVTUNER_BENCH_CPU, _MEMORY |
the bench pod’s requests, equal to its limits (Guaranteed QoS); bench.resources |
Kubernetes quantities; default 2, 2Gi |
api (runner) |
SERVTUNER_BENCH_TARGET_ANTI_AFFINITY |
keep the bench pod off the nodes of the workloads under test (target.workload and every upstream’s); bench.targetAntiAffinity |
required (default), preferred (single-node clusters) |
api (runner) |
SERVTUNER_BENCH_JOB_TTL_SECONDS |
ttlSecondsAfterFinished of bench Jobs; the spec ConfigMap and token Secret are owned by the Job and go with it |
seconds; default 3600 |
api (runner) |
SERVTUNER_BENCH_START_TIMEOUT_SECONDS |
a bench pod that has not started by then (unschedulable, image pull failing) fails the run with the reason, and its Job is deleted | seconds; default 300 |
api (runner) |
SERVTUNER_IMAGE_PULL_SECRETS |
global.imagePullSecrets and imagePullSecrets names for bench pods, comma-separated, each once |
names | api (runner) |
SERVTUNER_DATA_FS_GROUP |
the bench pod’s fsGroup, so it can write the data volume (api.fsGroup) |
integer; default 10001 |
api (runner) |
SERVTUNER_PROMETHEUS_URL |
Prometheus base URL, used as a RunSpec default | URL | api, bench |
SERVTUNER_TUNING_MONITOR |
How Prometheus finds a managed vLLM: podmonitor (Prometheus Operator) or scrape-annotations (community chart), from tuning.monitor |
podmonitor | scrape-annotations |
api |
SERVTUNER_AUTH_MODE |
User auth: local checks every route; none checks nothing, the explicit opt-out |
local (default) | none |
api |
SERVTUNER_AUTH_METHODS |
How users sign in under local, in chain order |
comma list of local, forward_header; default local |
api |
SERVTUNER_AUTH_SETUP_TOKEN_FILE |
The setup token that creates the first admin (read from a Secret file, never stored); without it no admin can be created | path | api |
SERVTUNER_AUTH_SESSION_IDLE_SECONDS |
A session ends after this long unused | seconds; default 43200 | api |
SERVTUNER_AUTH_SESSION_ABSOLUTE_SECONDS |
A session ends this long after sign-in, whatever its use | seconds; default 604800 | api |
SERVTUNER_AUTH_COOKIE_SECURE |
false only for a plain-HTTP install not on localhost: the cookie then loses Secure and the __Host- prefix |
true (default) | false |
api |
SERVTUNER_AUTH_LOCKOUT_MAX_FAILURES |
Failed logins per username before it is locked | integer; default 5 | api |
SERVTUNER_AUTH_LOCKOUT_WINDOW_SECONDS |
The window failures are counted in, and how long the lock lasts | seconds; default 900 | api |
SERVTUNER_AUTH_FORWARD_USER_HEADER |
The header the trusted proxy names the user in (forward_header) | header name; default X-Forwarded-User |
api |
SERVTUNER_AUTH_FORWARD_DISPLAY_NAME_HEADER |
Optional header with a new user’s display name | header name | api |
SERVTUNER_AUTH_FORWARD_EMAIL_HEADER |
Optional header with a new user’s email | header name | api |
SERVTUNER_AUTH_FORWARD_PROVISIONING |
What a forwarded subject with no servtuner user gets | refuse (default) | viewer |
api |
SERVTUNER_TUNING_NAMESPACES |
Namespaces where managed vLLM targets may be stored and deployed, from rbac.tuning.namespaces; unset grants none |
comma-separated names | api |
SERVTUNER_STORAGE_BACKEND |
bundle store | file, s3 |
api, bench |
SERVTUNER_DATA_DIR |
data directory (file backend) | path | api, bench |
SERVTUNER_DATA_CLAIM |
PVC to mount in Jobs at the data directory (file backend) | claim name | api (runner) |
SERVTUNER_STORAGE_NODE_PINNED |
data volume is RWO, so Jobs must share the api’s node | true, false |
api (runner); recorded as storage.node_pinned |
SERVTUNER_API_COMPONENT_LABEL |
key=value label selecting the api pod, for the runner’s RWO pod affinity |
label selector | api (runner) |
SERVTUNER_S3_ENDPOINT, _REGION, _BUCKET, _PREFIX |
S3 location (s3 backend; endpoint empty for AWS) | strings | api, bench |
SERVTUNER_S3_FORCE_PATH_STYLE |
path-style addressing | true, false |
api, bench |
SERVTUNER_S3_CHECKSUM_MODE |
checksum behaviour | when_required, when_supported |
api, bench |
SERVTUNER_S3_PART_SIZE_MIB |
multipart part size for uploads (storage.s3.partSizeMiB) |
whole MiB, at least 5; default 16. A larger file goes up in parts, aborted on failure | bench (the api passes it to Jobs) |
SERVTUNER_S3_PRESIGN |
download links (storage.s3.presign) |
true: GET /runs/{id}/files/{path} answers 307 to a 5-minute presigned GET (SigV4); false (default): the api streams the file |
api |
SERVTUNER_S3_CREDENTIALS_SECRET, _ACCESS_KEY_KEY, _SECRET_KEY_KEY |
the Secret (in the runs namespace) and the two keys bench Jobs read AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from, by reference; credentials source secret only |
Secret name, key names | api (runner) |
SERVTUNER_S3_CREDENTIALS_SOURCE |
credential source | secret (keys in AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY), ambient (default credential chain) |
api, bench |
SERVTUNER_TLS_MODE |
default transport mode | mtls, platform |
api |
SERVTUNER_TLS_HOP_BENCH_API, _BENCH_PROMETHEUS, _INGRESS_API, _OBJECT_STORE, _POSTGRES |
effective mode of each hop, never inferred | mtls, platform |
api; runner passes bench’s hops to Jobs |
SERVTUNER_TLS_CERT_FILE, SERVTUNER_TLS_KEY_FILE |
api certificate and key (mounted kubernetes.io/tls Secret) |
path; set only when an mtls hop needs it | api |
SERVTUNER_TLS_CLIENT_CA_FILE |
private CA the api listener verifies client certificates against (never the combined bundle, which admits public CAs). Default: ca.crt beside SERVTUNER_TLS_CERT_FILE. The chart sets it when the ingress/bench-api hops are mtls, pointing at the ca.crt of the CA Secret (tls.caSecretRef, else the api certificate Secret) |
path; mtls only | api |
SERVTUNER_TLS_BENCH_SECRET |
name of the bench client-certificate Secret, in the runs namespace | Secret name; set only when needed | api (runner) |
SERVTUNER_TLS_CA_SECRET |
Secret in the runs namespace whose ca.crt verifies the api for bench (servtuner run --tls-ca-file): tls.caSecretRef, else the bench Secret (cert-manager writes the issuing CA into it). With tls.caSecretRef and a separate runs namespace, that Secret must exist in the runs namespace too |
Secret name; bench-api hop mtls only |
api (runner) |
POD_NAMESPACE |
the api pod’s namespace (downward API), for the RWO pod affinity to the api pod | namespace | api (runner) |
SSL_CERT_FILE |
combined system + private CA bundle built by the init container | /etc/servtuner/ca/bundle.crt; set only when some hop is mtls |
api (standard) |
SERVTUNER_DATABASE_HOST, _PORT, _NAME, _USER |
Postgres connection | strings | api |
SERVTUNER_DATABASE_SSLMODE |
Postgres TLS | verify-full (client cert), disable |
api |
SERVTUNER_DATABASE_PASSWORD |
database password; set only when the postgres hop is platform |
from a Secret | api |
X-Forwarded-Prefix |
Context path from a proxy that strips its prefix. For that request it overrides SERVTUNER_BASE_PATH. The rule is in frontend/nginx.conf.template: each segment is 1 to 64 characters of A-Z a-z 0-9 . _ ~ - and is not . or ... An invalid value, or a duplicated header, is ignored and the env path is used. |
Data directory
Section titled “Data directory”With the file storage backend, bench and the API resolve the data directory in this order: SERVTUNER_DATA_DIR, then $XDG_DATA_HOME/servtuner, then ~/.local/share/servtuner.
Secrets directory
Section titled “Secrets directory”bench reads each Secret named by a RunSpec as files in <secrets dir>/<name>/<key>. The directory is the --secrets-dir flag, then SERVTUNER_SECRETS_DIR, then /etc/servtuner/secrets.