Open-source inference server and production cluster for all the models your agent needs.
SIE Cluster Helm Chart
Deploy SIE (Search Inference Engine) to Kubernetes with autoscaling and observability.
Quick Start
helm install sie-cluster oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace sie \
--create-namespace
With the defaults, the chart generates the sie-config admin and read tokens (see sie-config tokens) and installs without a payload store, so work items larger than 1MB fail until one is configured (see Payload store). All worker pools are disabled by default; enable the pools you need (see Configuration).
Local validation
Prepare dependencies from the checked-in Chart.yaml and Chart.lock, then
render with an explicit non-secret payload-store choice:
mise run helm -- dependencies
mise run helm -- lint --set payloadStore.enabled=false
mise run helm -- template --set payloadStore.enabled=false
mise exec -- uv run --frozen --project . pytest -q tools/ci/tests/test_helm_render.py
The task temporarily stages the public model and bundle YAML files into the
chart and removes them after each render. Helm's generated charts/ directory
is ignored and must not be committed. The render tests need that directory, so
run them after dependencies.
Architecture
┌─────────────┐ ┌─────────────────────────────────────┐ ┌──────────────┐
│ Client │────▶│ Gateway (1 replica; 2+ for HA) │◀───▶│ sie-config │
└─────────────┘ └───────────────┬─────────────────────┘ │ (singleton) │
│ └──────────────┘
┌───────────────┼───────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ L4 Pool │ │A100 Pool│ │ CPU Pool│
│ 0-N │ │ 0-N │ │ 0-N │
└─────────┘ └─────────┘ └─────────┘
- Gateway: Stateless request proxy that routes to workers based on GPU type and model affinity. Consumes config via GET/NATS from
sie-config. - sie-config: Authoritative control plane for model/bundle configuration. Serves
/v1/configs/*writes and publishes NATS deltas to the gateway and workers. Deployed as a singleton (replicas: 1,strategy: Recreate). - Worker Pools: StatefulSets per enabled worker group, each with KEDA autoscaling. Routing, metrics, and KEDA scale on the full
(queuePool, machineProfile, bundle)lane.
Helm resolves that physical lane once and reuses it for worker/sidecar env,
heartbeats, physical queue-pool pod metadata, gateway configured profiles, and
every KEDA query. Immutable workload selectors retain the logical pool/bundle
identity published by v0.6.20. Tokens are trimmed, limited to 63 characters, validated against
^[A-Za-z0-9_-]+$, and lowercased. Defaults apply only to omitted
queuePool/machineProfile fields; explicit blank values fail rendering, as do
two enabled entries that normalize to the same physical tuple.
The same render publishes at most 1024 exact tuples to the gateway in
SIE_GATEWAY_CONFIGURED_PHYSICAL_LANES; pending demand and scale-related
rejections are recorded only for a catalog-resolved tuple.
Worker-pool and bundle map keys remain stable Kubernetes/KEDA object identities
and must be lowercase DNS-1123 labels; KEDA's internal metricName and object
names use only those validated identities, while PromQL always uses the
canonical physical tuple.
Cold Start Expectations
The current GKE/EKS scale-from-zero guidance is:
| Step | Duration | Notes |
|---|---|---|
| Node provisioning | 2-5 min | GKE/EKS spins up GPU node (spot may be slower) |
| Container startup | 20-40s | Pull image, start process, health checks |
| Model loading | 10-120s | Download weights (if not cached), load to GPU |
| Total cold start | 3-7 min | First request to a scaled-to-zero pool |
These figures are not an ACK performance claim; this repository has no ACK cold-start baseline. The Alibaba Terraform module defaults its shared NAT EIP to 100 Mbit/s, and observed ACK cold start depends on current GPU inventory and quota, effective bandwidth, image and model size, and cache state.
Reducing Cold Start Time
- Use cluster cache: Pre-populate object storage with model weights (
--cluster-cache) - Set minReplicas=1: Keep one warm replica per critical GPU type
- Use reserved capacity: Avoid spot for latency-sensitive workloads
- Pre-warm models: Call
/v1/encode/{model}on startup to load weights
Client Handling
When a pool is scaling from zero, the gateway returns:
- 503 Service Unavailable with
X-SIE-Error-Code: PROVISIONING - Retry-After: 60 header
- Client should retry after the indicated delay
The SDK handles this automatically with configurable retries.
Cluster model cache
Pre-populate shared object storage with model weights so worker pods don't re-download from HuggingFace on every cold start. The Python SDK pulls from the cache first and falls back to HF on miss.
AWS example:
# 1. Provision object storage and populate its /models prefix with model weights.
MODEL_CACHE_URL="s3://<bucket>/models"
# 2. Wire the readable object-store URL into Helm.
helm upgrade --install sie-cluster . \
--set workers.common.clusterCache.enabled=true \
--set workers.common.clusterCache.url="$MODEL_CACHE_URL"
The configured URL must include the /models prefix and be readable by the worker workload identity. Because payloadStore.enabled defaults to true, the chart also derives a /payloads URL from this cache URL; grant the gateway workload write access and worker workloads read access to that prefix, configure a separate writable payloadStore.url, or set payloadStore.enabled=false.
Other clouds / BYO bucket: point workers.common.clusterCache.url at any s3://..., gs://..., abfs://..., abfss://..., or oss://... URL the worker workload identity can read, and populate the /models prefix with your object-storage tooling or existing cache pipeline. With the default payload store enabled, also grant the gateway workload write access and worker workloads read access to the derived /payloads prefix, configure a separate writable payloadStore.url, or set payloadStore.enabled=false.
SGLang kernel cache
SGLang, FlashInfer, DeepGEMM, Triton, and the CUDA driver can compile kernels after model weights are available. SIE remains fully cacheless-capable, but a persistent compiler cache can avoid repeating that work after a container or worker-pod replacement. It does not remove the first compilation on a genuinely empty cache, and CUDA graphs are still captured by each live SGLang process.
For a local CUDA container, mount one named volume at the image's default cache path:
docker run --gpus all -p 8080:8080 \
-v sie-hf-cache:/app/.cache/huggingface \
-v sie-kernel-cache:/app/.cache/sie-kernels \
ghcr.io/superlinked/sie-server:latest-cuda13-sglang-cu130
CUDA images use /app/.cache/sie-kernels automatically; the named volume only
upgrades that container-local default to survive container replacement. The
adapter namespaces artifacts by the installed JIT dependency ABI and exact GPU
product name, then sets upstream cache locations only when operators have not
set those variables explicitly. An unwritable or unidentifiable cache falls
back to ordinary compilation.
For Kubernetes, enable retained per-replica claims globally or only for a specific generation lane:
workers:
common:
kernelCache:
enabled: false
storageSize: 20Gi
storageClassName: "" # cluster default
pools:
h100:
bundles:
sglang-cu130:
kernelCache:
enabled: true
preloadModels:
- Qwen/Qwen3.8-27B-FP8:h100-256k
Each StatefulSet ordinal receives its own ReadWriteOnce PVC, retained across
scale-down and pod replacement by the StatefulSet's default PVC policy. Do not
replace this with one concurrently writable RWX DeepGEMM cache. Ensure the
chosen StorageClass can provision in every zone that may host the GPU pool;
retained claims otherwise constrain later scheduling to their volume topology.
preloadModels fills the cache while the worker is still NotReady.
Adding or removing volumeClaimTemplates is an immutable StatefulSet change.
For an existing release, enable or disable this setting during a controlled
recreation of the affected worker StatefulSet; retained cache PVCs are
disposable acceleration state and may be deleted separately when no longer
needed.
Payload store
Work items larger than 1MB (for example images or long documents) are too big to put on the NATS queue inline, so the gateway offloads the payload to object storage and enqueues only a reference; workers fetch it back. This is required for >1MB requests: without a payload store the gateway cannot enqueue them and the request fails.
It is therefore enabled by default (payloadStore.enabled=true) and is decoupled from the optional cluster cache above. When the payload store is enabled, the chart resolves a store URL. If none resolves, as with the chart defaults, the chart installs without a payload store and the release notes print a warning; >1MB requests then fail until a URL is configured.
URL resolution, in order:
payloadStore.url, if set: the terraformpayload_store_urloutput (the/payloadsprefix of the shared bucket), or anys3:///gs:///abfs(s):///oss://URL the workload identity can read and write.- otherwise derived from
workers.common.clusterCache.urlby swapping the trailing/modelsprefix for/payloads(the same bucket).
# The terraform modules provision the bucket by default (create_model_cache=true)
# and expose its /payloads URL:
helm upgrade --install sie-cluster . \
--set payloadStore.url=$(terraform output -raw payload_store_url)
To run without large-payload support (for example a local/dev cluster) and without the warning, opt out:
helm upgrade --install sie-cluster . --set payloadStore.enabled=false
Upgrade note: installs that already set
payloadStore.urlorworkers.common.clusterCache.urlrender the same payload store as before. An install with neither no longer fails to render; it installs without a payload store and prints the warning above.
Alibaba Cloud ACK OSS and RRSA
values-ack.yaml enables the payload store and configures every OSS-consuming
container for eu-central-1, the private OSS endpoint, and disabled ECS
metadata credentials. Install with Terraform's native OSS outputs and exact
RRSA role-name annotation:
helm upgrade --install sie-cluster . -f values-ack.yaml \
--set workers.common.clusterCache.enabled=true \
--set workers.common.clusterCache.url="$(terraform output -raw model_cache_bucket_url)" \
--set payloadStore.url="$(terraform output -raw payload_store_url)" \
--set-string 'serviceAccount.annotations.pod-identity\.alibabacloud\.com/role-name'="$(terraform output -raw rrsa_workload_role_name)"
The shared sie-server ServiceAccount and
pod-identity.alibabacloud.com/injection: "on" pod label engage ACK RRSA. Do
not render long-lived AccessKeys or ALIBABA_CLOUD_STS_ENDPOINT; the Terraform
webhook config leaves STS convenience-env injection off so the runtime keeps
its fixed official endpoint policy. Mutable sie-config state remains on its
local/PVC SIE_CONFIG_STORE_DIR; oss:// is intentionally rejected for that
epoch/CAS authority.
ACK may install disk CSI classes without marking one as default. The ACK
overlay therefore binds the config, Prometheus, Grafana, and Loki claims to
alicloud-disk-topology-alltype, the topology-aware WFFC class, and raises the
config/Grafana claims to ACK's 20 GiB dynamic-disk minimum. The retained
capacities are 20 GiB config, 20 GiB Grafana, 100 GiB Prometheus, and 50 GiB
Loki. The built-in class does not itself prove encryption. Deployments
requiring encrypted PVCs must provide a governed encrypted WFFC class and
override all four paths together:
config:
configStore:
storageClassName: your-encrypted-class
kube-prometheus-stack:
prometheus:
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: your-encrypted-class
grafana:
persistence:
storageClassName: your-encrypted-class
loki:
singleBinary:
persistence:
storageClass: your-encrypted-class
The overlay also runs sie-config as UID/GID 1000 with fsGroup: 1000 and
fsGroupChangePolicy: OnRootMismatch, keeping the CSI volume writable without
granting root execution.
Storage class is not an ordinary values-only in-place migration for a bound
PVC, and a StatefulSet volume-claim template is immutable. For an empty failed
install, uninstall the exact release, independently prove that every retained
old claim is Pending, unbound, and has no volume, delete only those exact
empty claims, verify their absence, and then reinstall. StatefulSet and
operator-created claims can survive Helm uninstall. A data-bearing installation
requires a separately planned backup and volume migration; do not apply these
overrides as an in-place Helm-only change.
Alibaba Cloud ACK ingress
values-ack.yaml sets ingress.enabled=false because the Alibaba Terraform
module does not install an ingress controller. Install and secure an
ACK-compatible controller such as ingress-nginx first, wait for its controller
and load balancer to be ready, and only then enable this chart's Ingress with a
matching ingress.className. Until then, use cluster-private service access or
an explicitly controlled port-forward.
Autoscaling
KEDA-based autoscaling with scale-to-zero support:
autoscaling:
enabled: true
# Scale-to-zero after 10 min idle
cooldownPeriod: 600
# Check metrics every 15s
pollingInterval: 15
autoscaling.enabled=true is a complete telemetry dependency: it turns on
canonical OTLP metric emission, the bundled collector's Prometheus exporter,
and the collector ServiceMonitor. keda.install controls only whether this
chart installs the bundled KEDA controller; it does not control the chart's
ScaledObject manifests.
The ServiceMonitor uses a five-second interval and a timeout no greater than
that interval so KEDA never evaluates a stale or invalid scrape path.
Whenever autoscaling.enabled=true, the chart also renders mandatory
post-install/post-upgrade gates for every canonical Prometheus query and exact
KEDA ScaledObject/HPA health. healthGates.enabled independently enables the
optional gateway/config HTTP smoke Jobs; Helm --wait still requires those
workloads' Kubernetes readiness.
The chart stores hook-applied ScaledObjects in deterministic Helm-owned ConfigMap shards of at most 32 worker lanes. Chart-managed autoscaling admits 192 physical worker lanes when KEDA and Prometheus are external, or 96 when either dependency is installed by this release; the gateway's telemetry runtime can still represent 1,024. These chart limits keep the complete Helm release record conservative with maximum-length, high-entropy identities. With Helm 3.16.4, the external profile encodes 192 lanes to about 840 KiB and the worst bundled profile encodes 96 lanes to about 853 KiB, each leaving at least 64 KiB below the 917,504-byte release budget at this revision. The ordinary post-install/post-upgrade/post-rollback hook applies the target shards and prunes removed release-managed ScaledObjects. It refuses to adopt a same-name object unless that object already carries this Helm release's exact identity. Because those manifests are intentionally non-secret ConfigMaps, restrict write access in the workload namespace to trusted control-plane principals.
When autoscaling is enabled, the gateway Deployment and worker StatefulSets
use Helm lookup during an upgrade to render their current live replica counts.
Fresh installs and offline/client-only renders use the configured initial
floors. This prevents Helm's resource patch from resetting the observed live
KEDA/HPA-controlled count without
storing a permanent replica-pin map in Helm. Use an actual Helm upgrade, or
helm upgrade --dry-run=server for a faithful preview; helm template and
client-only dry runs cannot exercise the live lookup.
The first migration from canonical sie-cluster-0.6.20 KEDA metrics to the
collector-backed OTLP topology is one ordinary, supervised forward Helm
upgrade. Schedule a maintenance window, stop new caller demand, suspend other
reconcilers, and keep the release name, namespace, name overrides, worker/lane
keys, enabled lanes, scale targets, Prometheus backend, and KEDA ownership
(keda.install) unchanged. The only
exception is the documented over-limit catalog reduction below. Then run the
normal target upgrade with hooks and waiting enabled:
helm upgrade <RELEASE> oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace <NAMESPACE> \
--version <TARGET_CHART_VERSION> \
-f <REVIEWED_TARGET_VALUES_FILE> \
--wait --timeout 20m
The mandatory Prometheus gate first proves the collector-backed metrics. The target apply hook then updates the existing ScaledObjects in place with the same names and scale targets, and the KEDA/HPA gate proves their queries before Helm succeeds.
Do not use helm rollback, helm upgrade --atomic, --cleanup-on-fail, or
--no-hooks across this boundary. If a hook fails, keep demand stopped, repair
the collector, Prometheus, KEDA, image, quota, or permission issue, and rerun
the same forward upgrade. There is no extra migration command, pause
annotation, values overlay, second release, or target-owned migration state.
Canonical 0.6.20 can leave one inert hook ConfigMap containing obsolete
manifest text. After the target health hooks succeed, inspect that exact source
object and remove it once; deletion is post-success hygiene, not part of the
cutover:
LEGACY_KEDA_CONFIGMAP="<SOURCE_FULLNAME>-keda-scaledobjects"
kubectl get configmap "$LEGACY_KEDA_CONFIGMAP" -n <NAMESPACE> -o yaml
# Delete only after confirming component=keda-apply and the old Helm hook annotations.
kubectl delete configmap "$LEGACY_KEDA_CONFIGMAP" -n <NAMESPACE> --ignore-not-found
Fresh installs and later compatible releases use the normal Helm procedure.
helm rollback runs the target revision's stored hooks: it re-applies that
revision's ScaledObjects and prunes the others, and a target revision with
autoscaling disabled first removes the release-owned ScaledObjects. Health
gates run on install and upgrade only. A revision installed by an earlier chart
version carries no rollback hooks, so rolling back to it leaves ScaledObjects
unchanged; roll forward instead.
Disabling autoscaling or uninstalling runs a small hook that deletes only
ScaledObjects carrying this release's managed identity or the exact canonical
0.6.20 identity. Do not pass
--no-hooks. If the same operation also moves global.namespace, disable
autoscaling in the old namespace first, then move the already-static release.
Foreign, repackaged, or manually relabelled historical ScaledObjects remain an
explicit cluster-administrator cleanup responsibility.
Gateway/config Deployment, worker StatefulSet, and image-prepull DaemonSet
selectors retain the published 0.6.20 label identity because Kubernetes
selectors are immutable. Physical queue identity lives in the separate
sie.superlinked.com/queue-pool label. Target KEDA queries are
collector-backed and canonical-only; the temporary compatibility is the
unchanged ScaledObject name and scale target, not a second metric path.
The KEDA readiness hook selects the exact-revision ScaledObjects and all
release-owned HPAs, then requires their names and ownership labels to match
one-for-one. It waits a complete trigger-failure window and
requires every trigger to be Happy with zero failures. Reads are paged in
batches of 32 through the 192-lane chart domain. Near that maximum, use a Helm
client timeout of at least 20 minutes. Helm applies that timeout to each
Kubernetes operation/hook; it exceeds the longest default 15-minute Job. With
a custom pollingInterval above 30 seconds, also make the timeout exceed the
KEDA health deadline of 3 * pollingInterval + 240 seconds.
Size keda-apply, keda-cleanup, and the KEDA ScaledObject/HPA gate with
hooks.resources. The default memory limit is 1Gi. Requests stay at 128Mi.
hooks:
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "200m"
memory: "1Gi"
Scale-from-Zero Trigger
The gateway emits sie.gateway.pending_demand over OTLP when requests arrive
for queue lanes with no available workers. The collector exposes that one
observation as
sie_gateway_pending_demand{pool="...",machine_profile="...",bundle="..."};
KEDA uses it to trigger scale-up even when there are 0 workers.
For gpu-agnostic cold requests, including X-SIE-Pool requests that omit
X-SIE-MACHINE-PROFILE, the gateway emits concrete lane signals for every
machine profile the backing pool can provision. Multi-profile pools therefore
wake candidate lanes from zero without relying on an empty machine_profile
label that KEDA cannot match.
Scaling Metrics
| Metric | Source | Purpose |
|---|---|---|
sie_gateway_pending_demand |
Gateway | Trigger scale from 0 |
sie_gateway_lane_queue_depth |
Gateway JetStream backlog reconciler | Scale up on exact durable-consumer num_pending + num_ack_pending, including work held by a dead/loading worker |
sie_gateway_model_loads_in_progress |
Gateway worker heartbeats | Hold the lane at 1 while a fresh worker is loading a model, and emit 0 when the lane has no live workers. See #293 |
sie_gateway_lane_queue_snapshot_timestamp_seconds |
Gateway JetStream backlog reconciler | Prove that the exact lane queue value, including zero, came from a fresh successful broker read |
sie_gateway_active_lease_gpus |
Gateway pool manager | Hold distinct assigned-worker capacity for active pool leases in the exact pool/profile/bundle lane |
sie_gateway_pool_warm_floor |
Gateway pool manager | Enforce a configured per-lane minimum without bypassing KEDA |
sie_gateway_rejected_requests_total |
Gateway | Scale up on sustained capacity/no-worker rejections after retryable cold-load reasons are excluded |
sie_gateway_requests_total |
Gateway request facade | Scale the gateway Deployment from its release-scoped request rate |
sie_gateway_capacity_snapshot_timestamp_seconds |
Gateway capacity reconciler | Reject stale gateway-to-collector state before it can drive scaling |
The bundled collector separates OTLP ingress by trust class. Gateway pods in
the exact Helm release use 4317/4318; config and worker pods use the
application receiver on 4327. A generated ingress NetworkPolicy enforces
the release/component selectors, while Prometheus exposition stays reachable
only to same-namespace pods and explicitly configured scrape namespace names
(observability.otel.collector.prometheus.networkPolicy.scrapeNamespaceNames).
A bundled Prometheus in another namespace is admitted by its exact
operator-owned identity. An external Prometheus is not: autoscaling renders
only when the list explicitly names every namespace containing scraper pods
(including the workload namespace when that is where external Prometheus
runs). Kubelet health probes need no 13133 ingress rule.
Treat the effective workload namespace (global.namespace when set,
otherwise the Helm release namespace) as a workload trust boundary and do not grant
untrusted principals pod-create or label-spoofing rights there.
Every application selector is bound to this release's exact collector target
with namespace, service, endpoint="prometheus", and
producer_service="sie-gateway". The ServiceMonitor makes its target labels
authoritative (honorLabels: false) and copies collector-exported producer
identity into producer_service/producer_instance. Before HA aggregation,
each non-queue business series is joined on producer_instance to the global
capacity timestamp from that same gateway process. The lane queue series uses
its stricter same-label broker-snapshot timestamp and requires a matching sample
count greater than zero, so a successful explicit zero differs from a missing
read. Every value is returned only while the collector target is up and at
least one release-scoped global snapshot is less than 20 seconds old. This
prevents retained points from a terminated gateway replica from being
legitimized by a fresh replica. Empty results are errors
(ignoreNullValues: "false"), so worker ScaledObjects enter their bounded
fallback instead of treating a broken or stale telemetry path as zero.
For a lane configured with minReplicas: 0, the chart renders
idleReplicaCount: 0 plus a non-zero minReplicaCount equal to that lane's
bounded fallback floor. KEDA therefore still scales an inactive, healthy lane
to zero, but its HPA has a safe activation/fallback floor when Prometheus or the
gateway-to-collector path fails. Lanes with a positive configured minimum keep
that static minimum and omit idleReplicaCount. autoscaling.fallbackReplicas
must be at least one and is clamped to each lane's declared maximum.
KEDA scales worker StatefulSet replicas. It does not add or remove Python processes or containers inside a running worker pod, so a multi-GPU worker is one larger scaling unit with richer per-replica pressure metrics.
alertRules.enabled=true and the bundled kube-prometheus-stack are also
complete application-metrics consumers: either setting enables canonical OTLP
metrics, the bundled collector Prometheus exporter, and its ServiceMonitor.
The chart therefore cannot render collector-scoped application alerts without
a scrape path.
Lane envelopes and the placement applier
A worker lane may declare an envelope, the range of warm floors that the
placement applier may hold it at:
workers:
pools:
l4:
enabled: true
bundles:
default:
minReplicas: 1
maxReplicas: 4
envelope:
floorMin: 1
floorMax: 2
The render fails unless floorMin and floorMax are non-negative integers,
floorMin equals minReplicas, and floorMax lies between floorMin and
maxReplicas. A lane returns to minReplicas whenever nothing raises its
floor, and KEDA never runs more than maxReplicas. With autoscaling enabled, a
lane with minReplicas: 0 takes a floorMax of 0 or at least its fallback
floor, min(maxReplicas, autoscaling.fallbackReplicas), because KEDA runs at
least that many workers once a floor activates the lane. The envelope renders
nothing by itself: the lane's StatefulSet and ScaledObject are the same with or
without it.
placementApplier.enabled=true renders one Deployment that runs
sie-placement tune from the sie-placement package, whose README describes
the command, its audit rows and its refusals, against a placement plan:
helm upgrade <RELEASE> oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace <NAMESPACE> \
-f <VALUES_FILE> \
--set placementApplier.enabled=true \
--set placementApplier.image.repository=<IMAGE> \
--set placementApplier.image.tag=<TAG> \
--set-json "placementApplier.plan=$(cat plan.json)"
Every 60 seconds the applier reads each plan lane's series from the Prometheus
that KEDA queries, scoped to this release's collector target, reads the lane's
floor-carrier pool from the gateway, decides one step inside the lane's
envelope, and prints one JSON audit row per lane to its log. A floor carrier is
an API logical pool named placement-floor-<queuePool>-<machineProfile>-<bundle>.
The gateway keeps each lane at the largest warm floor among its pools and
reports it to the lane's warm-floor KEDA trigger, so a carrier raises a lane
above its chart floor and never lowers the floor another pool sets. The
ScaledObject triggers are the same with or without the applier.
- Shadow mode (
placementApplier.apply: false, the default) decides and records and writes nothing. Run it first to see how often each lane reads as under pressure. - Apply mode (
placementApplier.apply: true) upserts each lane's carrier on every tick, which renews the carrier's lease and sets its floor. When the applier stops, each carrier lapses 1200 seconds after its last write by default, the gateway removes it, and the lane returns to the largest floor its chart and its other pools set.
The render fails unless:
autoscaling.enabled=true.placementApplier.image.repositoryandplacementApplier.image.tagname an image that installssie-placementwith itskedaextra and can run as user and group 65532. The chart publishes no such image.placementApplier.image.pullPolicyisAlways,IfNotPresentorNever.placementApplier.planis a map whosekindisplacement-planand whoselaneslist holds at least one lane. Each of its lanes names an enabled worker lane by itsqueuePool,cell.machineProfileandbundle, compared as the chart canonicalizes lane tokens, and that worker lane declares anenvelopeequal to the plan lane's. A plan therefore cannot move a floor outside a range that the chart values bound. The values overlay thathelm_valuesinsie-placementemits from a plan sets each lane'sminReplicasandmaxReplicasbut noenvelope, so copy each plan lane'senvelope.floorMinandenvelope.floorMaxinto the worker lane it names. The chart checks only these fields. The applier parses the whole plan when it starts and refuses one that is not a valid placement-plan document, an unsupportedschemaVersionincluded.- With gateway token auth, or a gateway auth mode known only at run time,
placementApplier.clientToken.existingSecretNamenames a Secret key that holds one gateway client token, which the applier presents on pool reads. The applier presents the whole value, so the key must not list several comma-separated tokens, as an operator-managedgateway.auth.tokenSecretNamedoes during a rotation. The Secret name and key, after trimming surrounding whitespace, are a Kubernetes Secret name and data key that hold no other credential the chart wires. - With
placementApplier.apply: trueand gateway token auth, or a mode known only at run time,gateway.auth.adminTokenSecretNameis set. gateway.extraEnvsetsSIE_GATEWAY_POOL_MAX_MINIMUM_WORKER_COUNTandSIE_GATEWAY_MAX_POOLS, if at all, as literal values. The chart passes an integer value of either to the applier as--max-pool-flooror--max-pools, so the applier refuses the plans the gateway would.
The applier itself refuses a plan whose floorMax exceeds the gateway's
per-pool floor limit, 4 by default, or whose lanes need more carriers than the
gateway admits, 64 by default. A refusal, an unreadable token file or an
invalid flag ends the container, which then shows as CrashLoopBackOff. A
failed Prometheus query or pool call fails only its tick. The applier prints a
failed query to standard error, and the audit rows show each series it could
not read as null. The audit row's error records a failed pool call.
Applier permissions
| Credential | Held | Authorizes |
|---|---|---|
| Gateway admin token | Only with placementApplier.apply: true and a gateway that may authenticate, with token auth or a mode known only at run time, from the Secret gateway.auth.adminTokenSecretName (key gateway.auth.adminTokenSecretKey) |
POST, PUT and DELETE under /v1/pools, /v1/admin and /v1/configs: every gateway admin route, not only floor carriers |
| Gateway client token | When placementApplier.clientToken.existingSecretName is set |
Every gateway route that is not an admin route, inference included; the applier uses it for GET /v1/pools/{name} |
| Kubernetes API | Never | Nothing: the applier has its own ServiceAccount, mounts no ServiceAccount token, and has no Role or RoleBinding |
The chart never creates either token or renders its value. Each is mounted
read-only as a file of mode 0440 owned by group 65532, under
/etc/sie-placement/, and passed by path with --admin-token-file or
--api-key-file. The applier sends the admin token only on pool writes to the
in-cluster gateway Service, never the client token on writes, and never takes a
token on its command line or prints or logs one: a rejected token file is named
by its path, a gateway call that gets an error reply by its HTTP status alone,
so no text the server returns reaches the log, a failed connection by the SDK's
connection error message, and any other transport failure by its exception
type. Anyone who can read the applier's log sees lane telemetry and floors, not
credentials. Anyone who can create pods in the namespace with that Secret can
still read it, so the Secret read limits under Who holds which
token apply.
The applier reads both token files once, when it starts. After you rotate the gateway client token, restart it as step 2 of rotating the gateway token says. The gateway also reads its admin token once, when it starts, and accepts one at a time, so after you rotate the gateway admin token, restart the gateway and then the applier:
kubectl rollout restart deployment/<FULLNAME>-gateway -n <NAMESPACE>
kubectl rollout restart deployment/<FULLNAME>-placement-applier -n <NAMESPACE>
The cutover is complete once both run with the new token. Pool reads use the client token and pool writes the admin token, so a stale client token makes the gateway refuse the applier's reads, and a tick that cannot read a carrier does not write it, while a stale admin token makes it refuse only the writes. Either way the pod keeps running: each tick's audit rows record the failures, and in apply mode each carrier lapses 1200 seconds after its last write and the lane returns to the largest floor its chart and its other pools set.
The Deployment runs one replica with the Recreate strategy, so at most one
applier writes carriers, also during a rollout. Its pod runs as user and group
65532 with runAsNonRoot, the RuntimeDefault seccomp profile, a read-only
root filesystem, no privilege escalation and every capability dropped. A
change to placementApplier.plan restarts it.
Applier network access
The applier accepts no connections. It opens connections to the gateway
Service (gateway.service.port, 8080 by default), to the Prometheus query API
(autoscaling.prometheusAddress, or the bundled Prometheus Service), and to
cluster DNS. The chart renders no NetworkPolicy for it. Under a default-deny
egress policy, allow those destinations for pods labelled
app.kubernetes.io/component: placement-applier and
app.kubernetes.io/instance: <RELEASE>. A policy that restricts ingress to the
gateway or to Prometheus must admit the same pods.
Worker-sidecar Telemetry
When workers.common.workerSidecar.enabled=true, each worker Pod includes a
worker-sidecar container. The sidecar image is
ghcr.io/superlinked/sie-server-sidecar, the Rust binary is
sie-server-sidecar. The application emits canonical sie.worker.* metrics
once over OTLP. The collector translates those observations to the
sie_worker_* Prometheus families; the worker Service has no metrics port and
Prometheus never scrapes application containers.
For multi-child workers, the same worker Service also exposes adapter child
metrics ports http-1 through http-(N-1) in addition to the baseline http
port, but those ports are for request traffic, not Prometheus. Availability
alerts use kube-state-metrics, while queue pressure comes from the
gateway-owned KEDA contract. Runtime pressure still travels in the worker
heartbeat that feeds the gateway; it is not duplicated as application
Prometheus instrumentation.
Configuration
See values.yaml for all options. Key settings:
Important: All worker pools are disabled by default. You must explicitly enable the pools you need in your values override.
Bundle rename: the CUDA 13 SGLang bundle formerly named
gemmais nowsglang-cu130, and its image tag iscuda13-sglang-cu130. Existing values overrides must rename theworkers.common.bundlePlatformskey, worker bundle key, and any explicit image tag together. There is no runtime alias because the bundle name is part of worker routing and release-image identity.
The values below are an illustrative shape; concrete per-cluster sizes belong in each deployment's own values file.
# Worker pool configuration (must explicitly enable pools)
# The map key is the Kubernetes capacity family/resource name. When
# machineProfile is omitted, it defaults to that map key. machineProfile is the
# runtime lane label used by routing and metrics. queuePool is the physical
# NATS queue namespace consumed by the workers; by default all worker groups
# use the shared `default` queue pool so SDK calls can pass just
# gpu="<profile>". Set queuePool on a worker group only for dedicated physical
# capacity, then create logical pools backed by it through `/v1/pools`
# (`queue_pool: "<queuePool>"`) and target them as
# gpu="<logicalPool>/<machineProfile>".
# With poolAdmission enabled, named non-default queue pools pull only when
# their physical queue pool is admitted directly (staticQueuePools) or when an
# assigned logical pool is backed by that queue.
# Each worker group renders its own StatefulSet + ScaledObject named
# worker-<pool>-<bundle>.
# Physical lane tokens are canonicalized once (trim, validate, lowercase), and
# duplicate canonical queuePool/machineProfile/bundle tuples fail rendering.
workers:
pools:
l4:
enabled: true # Enable this pool (disabled by default)
bundles:
default:
minReplicas: 0 # Scale to zero
maxReplicas: 10
rtx6000:
enabled: true
bundles:
default: # embedding/rerank baseline
minReplicas: 1
maxReplicas: 5
sglang: # generation, warm baseline on same GPUs
minReplicas: 1
maxReplicas: 5
preloadModels:
- Qwen/Qwen3-4B-Instruct-2507
# Gateway configuration
gateway:
replicas: 2
# Autoscaling
autoscaling:
enabled: true
cooldownPeriod: 600 # 10 min before scale-down
Worker init containers and volumes
workers.common.extraInitContainers adds init containers to every worker pod,
run before the worker starts. workers.common.extraVolumes adds volumes for
them. Both are standard Kubernetes lists and are not rendered on remote lanes.
Init containers can also mount the worker's shm and model-cache volumes, plus
sie-ipc and kernel-cache when those features are on. Extra volume names
must not reuse a chart worker volume name (shm, model-cache, sie-ipc,
upstreams, equivalence, kernel-cache); the render fails if they do.
workers:
common:
extraInitContainers:
- name: wait-for-dependency
image: busybox:1.37.0
command: ["sh", "-c", "until wget -q -O /dev/null http://my-dependency/readyz; do sleep 2; done"]
volumeMounts:
- name: extra-config
mountPath: /etc/extra
extraVolumes:
- name: extra-config
configMap:
name: my-extra-config
Multi-GPU Worker Shapes
Req6 separates the Kubernetes allocation shape from the worker execution shape.
Set workers.pools.<name>.gpu.count above 1 when one worker pod should
consume multiple GPUs from a single VM. The chart requests that many
nvidia.com/gpu devices and renders one adapter worker child per GPU.
The queue-mode multi-GPU shape is one pod with one worker-sidecar plus
worker-0 through worker-(N-1) adapter containers. Python/PyTorch and
Rust/Candle children use the same sidecar IPC fanout. Each child requests one
GPU, sees SIE_DEVICES=cuda:0 when the runtime consumes that env var, binds a
unique HTTP/probe port, and serves a unique IPC socket. The sidecar receives
SIE_IPC_SOCKET_PATHS, owns the pod-level queue consumer, and places models
onto child sockets by child readiness, placed-model count, pending scheduler
cost, pending item count, and in-flight batch count. That placement scoring is a
fixed sidecar policy.
For local CPU-only dev, workers.pools.<name>.sidecar.emulatedChildCount can
render multiple CPU worker children with distinct IPC sockets and no
nvidia.com/gpu request. This is intended for local integration coverage of child
routing and metrics only; GPU pools must use gpu.count for real capacity.
This is the Req6 one-child-at-a-time model placement topology. It distributes different models from one runtime bundle across the pod's GPU slots. A child can own multiple models, but one model is not spread across children or replicated for throughput. A model too large for one GPU needs a device group instead.
Each worker pod serves exactly one runtime bundle. Different bundles render as different worker StatefulSets and therefore different worker identities.
Example AWS shape for a 4-GPU L4 node:
workers:
pools:
l4-4x:
enabled: true
machineProfile: l4-4x
gpuType: nvidia-l4
gpu:
count: 4
product: NVIDIA-L4
bundles:
default:
minReplicas: 0
maxReplicas: 3
Tensor-Parallel Device Groups
To serve one model across several GPUs, set gpu.deviceGroup: true alongside
gpu.count. The pod then runs a single worker child that owns every GPU in the
pod (SIE_DEVICES=cuda:0,...,cuda:N-1) instead of one child per GPU, and the
model profile declares how many of them it uses:
profiles:
default:
adapter_path: sie_server.adapters.sglang.generation:SGLangGenerationAdapter
adapter_options:
loadtime:
tensor_parallel_size: 4
request_read_timeout_s: 600
startup_timeout_s: 900
A complete device-group pool follows. Its CPU, memory, and shared-memory sizes are placeholders. Size them for the model and the node:
workers:
pools:
l4-4x-group:
enabled: true
machineProfile: l4-4x
gpuType: nvidia-l4
gpu:
count: 4
product: NVIDIA-L4
deviceGroup: true
shmSize: 32Gi
resources:
requests:
cpu: "16"
memory: "64Gi"
limits:
cpu: "32"
memory: "128Gi"
bundles:
sglang:
minReplicas: 0
maxReplicas: 1
- The worker claims a contiguous block of
tensor_parallel_sizedevices for the model exclusively, evicting unpinned models to free a block when it has to, and releases the block when the model unloads. Loading a single-GPU model while every device is held evicts the least recently used unpinned group. - The SGLang generation and embedding adapters accept a width. The generation
adapter also requires
request_read_timeout_sabove width one, because a stalled collective produces no bytes and no error, and its ownstartup_timeout_s, because startup at a width is dominated by per-rank graph compilation and capture, so neitherworkers.common.modelReadyTimeoutSecnor the built-in default describes it. Keep the declared budget withinworkers.common.modelReadyTimeoutSecand below the liveness probe budget. - A declared
startup_timeout_sthat is not a finite number of seconds above zero is refused when the model loads rather than replaced by a default. - Width and placement are declared only through
tensor_parallel_size. Engine placement flags inextra_launch_args(including abbreviations such as--tp) and device-visibility variables inextra_envare refused. So are the flags that decide where the engine listens:--nccl-port, which has theloadtime.nccl_portoption instead, and--hostand--port, which the server passes for the engine's own HTTP listener and then talks to. They are not this pod's--host/--port, which the chart sets on the worker container. gpu.deviceGrouprequiresgpu.count >= 2.SIE_GPU_COUNTand the cluster healthgpu_countcount serving slots, so a device-group pod reports one slot however many GPUs it holds.- Every worker pod mounts
/dev/shmas an in-memoryemptyDirwhose size limit is the pool'sshmSize, orworkers.common.shmSize(default8Gi) when the pool sets none. Whatever the worker writes there counts against its container memory limit. A tensor-parallel engine runs one process per GPU, and those processes can exchange data through shared memory, so a device-group pool may need a largershmSize. Raiseresources.limits.memorywith it so the limit covers both the engine processes and their shared memory. - Splitting a model across GPUs on a node without a fast GPU interconnect adds communication overhead. For a model that fits one GPU, fan-out children serving replicas usually deliver more throughput for the same GPUs.
Queue Pool Patterns
Use one of these patterns deliberately:
Shared baseline pool: leave
workers.common.queuePool: default. Workers render withSIE_POOL=defaultand their ownSIE_MACHINE_PROFILE; SDK calls usegpu="<machineProfile>". API-created logical pools can use arbitrary valid names over this lane by omittingqueue_pool.Static custom queue namespace: set a worker group's
queuePoolto a named value and declare the same name underqueueRouting.staticQueuePools. These pool objects are synthesized by the gateway at startup and do not expire. Queue pool names are rendered and routed in lowercase. Example:queueRouting: staticQueuePools: company-a: gpus: l4: 0 gpuCaps: {} workers: pools: l4: queuePool: company-agpuCaps: {}means uncapped admission for matching workers. UsegpuCaps: {l4: 10}to cap admission for that machine profile.Dynamic isolated pool: set a worker group's
queuePoolto the dedicated physical queue name, declare the same name underqueueRouting.staticQueuePools, keepqueueRouting.poolAdmission.enabled=true, and create/renew logical pools through/v1/poolswithqueue_poolset to that physical queue. Use a logical pool name that does not collide with the protected static queue-pool name, or target the static pool directly. SDK calls usegpu="<logicalPool>/<machineProfile>".
Missing named pools intentionally do not fail open. Falling back from
pool=default,machineProfile=l4 to pool=l4,machineProfile=l4 would cross the
logical capacity boundary without an explicit caller request.
For emergency or legacy static namespaces that are not backed by either
queueRouting.staticQueuePools or a logical /v1/pools object with matching
queue_pool, disabling
queueRouting.poolAdmission.enabled lets workers pull without the admission
gate. Prefer declaring static pools instead, so capped/dynamic pools keep their
fail-closed isolation behavior.
Remote backends
A model's remote profile forwards its requests to an upstream: another SIE
deployment or an OpenAI-compatible endpoint outside this cluster. In a cluster,
remote profiles run on worker lanes whose bundle is remote. The gateway
routes every remote profile there, through the normal queue, because the
remote bundle outranks default for the remote adapters. The gateway holds
no upstream credential and calls no upstream.
Enable the remote pool and define the upstreams:
upstreams:
team-sie:
kind: sie
base_url: https://team-sie.example.com
api_key_secret:
name: team-sie-upstream
key: api-key
rate_cap:
requests_per_minute: 600
max_concurrency: 32
workers:
pools:
remote:
enabled: true
Below, <fullname> is the chart's full name: <release>-sie-cluster, or
fullnameOverride when set, as every provider overlay does.
- Each
upstreamsentry has the fields of the server's upstreams file:kind(sieoropenai),base_url(https outside loopback, with no credentials, query or fragment, and a certificate from a public CA, because the worker verifies it against its built-in CA bundle and accepts no private CA bundle),rate_cap(required) and an optionalproxy_url. An upstream of kindopenaialso declares theendpointsit offers (completions,chat,embeddings,rerank) and may name request fields to add to every call (set_params) or remove from it (strip_params), and the most choices (n) one call may ask for (max_choices, 1 to 128), for an upstream that refusesn.api_key_secretnames a Kubernetes Secret and key that you create; the chart rejects a plain string, so a credential cannot be written into values. The chart checks these fields as the server does when it renders, and a test sends the same URLs and definitions through the chart and the server's own parser. - An upstream of kind
openaimay also declareequivalence(max_age_s, at most 604800, andrecord_files): the evidence that lets a model serveencodeorscorefrom both its local and its remote profile. Put the evidence files in a ConfigMap you create in the release namespace, for examplekubectl create configmap remote-equivalence -n <NAMESPACE> --from-file=bge-m3.json, and setworkers.remote.equivalence.configMapto its name. Remote lanes mount it read-only at/etc/sie/equivalence, and everyrecord_filespath must then be/etc/sie/equivalence/<key>. No other lane receives it. Remote lanes read the files when they use them, so replacing the ConfigMap's data takes effect without a restart, once the kubelet has synced the volume. - Only the
workercontainer of aremotelane receives the upstreams file (the<fullname>-upstreamsSecret, mounted read-only) and the credentials (environment variables read from the Secrets you name). The file is a Secret, not a ConfigMap, because it says where each credential is sent and can holdset_paramsvalues. The worker sidecar, the gateway, sie-config and every other worker lane receive neither, and every other lane runs with remote serving switched off, so it refuses a remote profile even if one reaches it. The chart ownsSIE_UPSTREAMS_FILE,SIE_REMOTE_SERVINGand the credential variables, soextraEnvcannot set them, and anextraEnventry that reads an upstream's Secret anywhere else fails the render. An upstream's Secret key must also differ from the checked credential keys listed in Gateway token, including the Hugging Face token, gateway tokens, sie-config tokens, NATS passwords, and the bundled dependency credentials listed there. Arbitrary subchart configuration outside that list needs operator separation. - sie-config receives the upstream names (
SIE_UPSTREAM_NAMES), built from the sameupstreamsvalues as the remote lanes' file, and refuses with a422a model whose remote profile names any other upstream. Without a remote lane it receives no names and refuses every remote profile, which no lane could serve. - A remote lane needs a NetworkPolicy, and the render fails without one. The worker API has no authentication of its own, so without a policy any pod in the cluster, including worker lanes that run model code, could call a remote lane directly and spend its credentials. The remote lanes' own policy is on by default; see Network policy for remote lanes.
- Remote lanes run as their own ServiceAccount,
<fullname>-worker-remote, with no Kubernetes API token, no cloud workload identity and noHF_TOKEN. Without an identity they cannot read the payload store, so a work item above 1MB for a remote model fails. To serve those, bind that ServiceAccount to an identity limited to the payload store'spayloads/prefix throughworkers.remote.serviceAccount.annotations. workers.remote.serving: falsekeeps remote lanes running but refuses every remote profile and sends nothing upstream. The lanes then receive neither the upstreams file nor the credentials.- A remote lane runs no model on an accelerator. It runs the
cpu-transformers5worker image (imageBundle: transformers5), which contains the remote adapters and the transformers 5 release that theremotebundle requires to count a hybrid model's generation with tokenizers in the transformers-5 format. The render fails when its resolved engine is notpytorch, its pool setsgpu.countabove 0, requests any resource other thancpu,memoryandephemeral-storage, or sets aruntimeClassName. It does not inheritworkers.common.runtimeClassName. - The worker image must ship the
remotebundle, which server images do from the first release that includes #492. With an older image the worker exits at start (Bundle file not found) and the lane restarts in a loop. - Behaviour change: the remote lane's default image moved from
cpu-defaulttocpu-transformers5. An install that pinsworkers.pools.remote.bundles.remote.imageBundle: defaultkeeps running, but its worker cannot load tokenizer configs in the transformers-5 format, so a hybrid model whose tokenizer uses that format reports the upstream's counts instead of the worker's own. - Workers read their environment at start. After rotating an upstream's
Secret, restart the remote lane:
kubectl rollout restart statefulset/<fullname>-worker-remote-remote -n <NAMESPACE>. A change toupstreamsrestarts it automatically.
Network policy for remote lanes
When a remote lane is enabled, the chart renders a NetworkPolicy for the
remote lanes' pods (workers.remote.networkPolicy.enabled, on by default).
A remote lane needs this policy or workers.networkPolicy, and the render
fails when both are off. The policy takes effect only with a CNI that enforces
NetworkPolicy.
- Ingress: this release's gateway pods, on the worker ports, and, while the
workers require the worker token, the release-time worker token test's pods
(
app.kubernetes.io/component: worker-auth). Withoutworkers.auththe worker API has no authentication of its own, so without this rule any pod in the cluster could call a remote lane directly and spend its upstream credentials. While this policy is on,workers.networkPolicyexcludes the remote lanes, so itsextraIngresssources cannot reach them. NetworkPolicies are additive: any other policy that selects these pods and admits more sources widens access. - Egress: port 53 to the cluster resolver (
dnsTo, by default thekube-dnspods inkube-system); this release's NATS (4222), sie-config and gateway (8080), telemetry collector (4327) and bundled Tempo (4317) pods; and TCP 443 plus each upstream's explicit port, or itsproxy_url's explicit port when a proxy carries its traffic, toallowedCidrs(every address by default) except the denied ranges. A URL without a port adds nothing beyond 443, so give anhttpproxy_urlits port explicitly or admit the proxy withextraEgress. Nothing else is allowed. - Denied ranges: a fixed base that values cannot remove: the private ranges
(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), the carrier-grade NAT range
(100.64.0.0/10), link-local (169.254.0.0/16, which holds the cloud metadata
services), 168.63.129.16, IPv6 unique-local (fc00::/7) and link-local
(fe80::/10), and the NAT64 prefixes (64:ff9b::/96, 64:ff9b:1::/48). Add more
with
extraDeniedCidrs. Each IPv4 entry ofallowedCidrsexcludes the denied ranges inside it, an entry inside a denied range fails the render, and the only IPv6 entry is::/0. A denial equal to an allowed range also fails. Every CIDR must use its network address; IPv4-mapped IPv6 addresses are rejected because Kubernetes treats them as IPv4.
What the policy does not do. NetworkPolicy matches addresses and ports, not
host names. The remote lanes can reach any address outside the denied ranges on
the allowed ports, not only the upstreams you declared. To limit egress to the
declared hosts, use a policy engine with DNS-aware rules (for example Cilium or
Calico), or route upstream traffic through an egress proxy that enforces a host
allowlist: set the upstream's proxy_url, set allowedCidrs: [], and admit the
proxy, and the payload store if you use one, with extraEgress. Port 53 is open
only to dnsTo, but data tunnelled through the resolver itself is out of scope.
Kubernetes does not apply NetworkPolicy to traffic from a pod's own node, so
the node and hostNetwork pods on a remote lane's node can still reach the
worker port. An IPv6 cluster that gives pods global addresses must add its pod
range to extraDeniedCidrs.
Some deployments need an extraEgress rule, because the policy blocks the
destination:
- NATS outside this release (
nats.install: false). - Private endpoints. A payload store or an upstream reached through a private endpoint, such as AWS PrivateLink or an Azure private endpoint, has an address in the private ranges.
- Carrier-grade NAT addresses. Alibaba Cloud's internal OSS endpoints resolve to addresses in 100.64.0.0/10, and some clusters assign pod addresses from that range. Admit the specific endpoint range, not the whole block: the Alibaba Cloud metadata service is also in it, at 100.100.100.200.
- Pod identity through a node-local endpoint. GKE Workload Identity reads
credentials from the GKE metadata server: 169.254.169.254 on TCP port 80
with Dataplane V2, or 169.254.169.252 on TCP port 988 without Dataplane V2.
EKS Pod Identity reads them from its agent (169.254.170.23, port 80).
The policy blocks these endpoints,
so a remote lane given an identity through
workers.remote.serviceAccount.annotationscannot obtain it until you admit that one address and port. EKS IRSA, AKS workload identity and Alibaba Cloud RRSA exchange a projected token at the provider's token endpoint on port 443; they need a rule only when that endpoint has a private or carrier-grade NAT address, such as a VPC endpoint. - An OTLP endpoint other than this release's collector or Tempo, inside or outside the cluster. Without a rule, the remote lanes' telemetry is dropped.
- A NodeLocal DNSCache: add its address to
dnsToas anipBlock.
For GKE Workload Identity with Dataplane V2:
workers:
remote:
networkPolicy:
extraEgress:
- to:
- ipBlock:
cidr: 169.254.169.254/32
ports:
- port: 80
protocol: TCP
Without Dataplane V2, use cidr: 169.254.169.252/32 and port: 988 instead,
as described in the GKE Workload Identity documentation.
Admit 169.254.169.254 only where it serves workload identity, as on GKE with Workload Identity enabled. On nodes without it, this address serves the node's own credentials to any pod that can reach it.
Each extraEgress rule needs a non-empty to (a scoped selector, or an
ipBlock with a prefix length above /0) and ports (each with a port, and no
range wider than 60000 ports). With workers.remote.networkPolicy.enabled: false, workers.networkPolicy must be on; it then limits who can reach the
remote lanes, and their egress is not restricted.
High availability in one file
values-ha.yaml is the tested composition of the durability knobs below with
a replicated broker and a second gateway: two gateway replicas, a three-member
NATS cluster with a JetStream file store per member, and file-backed work-queue
streams replicated across all three. It also enables the
worker NetworkPolicy. Layer it under a provider overlay:
helm install sie deploy/helm/sie-cluster \
-f deploy/helm/sie-cluster/values-aws.yaml \
-f deploy/helm/sie-cluster/values-ha.yaml
The NATS members authenticate their routes to each other as sie-route (see
"NATS authentication").
It does not make sie-config redundant; that service stays at one replica by
template design until the chart provides leader election. And because a live
stream's storage type cannot be changed, apply it to a fresh install or convert
the streams during a maintenance window as described below.
Work-queue durability (memory vs file storage)
The work queues ship memory-backed and single-replica, which is the only
behavior this chart has ever had. WORK_POOL_{pool}, the per-worker
direct-dispatch streams, and DEAD_LETTERS live in the NATS broker's RAM. That
is durable against worker failure — a pod that dies mid-item leaves the item
unacked and another worker picks it up — but not against broker failure. A
restart of the NATS pod erases every queued and delivered-but-unacked item along
with the dead-letter records that would have named them, and because the gateway
is queue-only with no direct-HTTP fallback, the restart is a full inference
outage for its duration.
The trigger is specifically a restart of the NATS pod: an OOM kill, a NATS
version or config rollout, or a node drain that evicts that pod. Draining a node
that hosts only workers or gateways is harmless here, as is a worker or gateway
rollout. At the default streamReplicas: 1 any eviction of that single pod
loses the state; with a replicated stream it survives while one peer holding it
stays up, which is what makes rolling NATS maintenance safe.
To opt into file-backed, replicated storage:
queueRouting:
streamStorage: file # default: memory
streamReplicas: 3 # default: 1
nats:
config:
cluster:
enabled: true # required for streamReplicas > 1
replicas: 3
jetstream:
fileStore:
enabled: true # required for streamStorage=file
pvc:
size: 10Gi
streamStorage and streamReplicas are rendered into SIE_STREAM_STORAGE /
SIE_STREAM_REPLICAS on both the gateway and the worker sidecars. Both
create streams and whoever gets there first wins, so the chart is the single
source of truth for the pair; the template rejects a render where the requested
durability outruns what the broker is configured to provide, and both env names
are reserved, so a gateway.extraEnv or
workers.common.workerSidecar.extraEnv entry that tried to override one on a
single side fails the render rather than silently splitting the two creators.
That render guard is load-bearing for streamReplicas, because NATS will not
catch the mistake for you: a single-node server accepts num_replicas: 3 and
then reports R3, with no peers to replicate to (verified against nats-server
2.12.6). Without the guard, a replicated-looking stream would run
single-copy.
The trade-off. File storage puts a disk write in front of every publish
ACK, so it costs publish latency on the inference hot path, and it needs a PVC
per NATS pod sized for peak queue depth (max_msgs is 100,000 per pool stream)
plus 24 h of DEAD_LETTERS retention. Replication multiplies that cost by the
replica count and adds a quorum round trip. This is why the default is left
memory-backed: whether the latency and disk are worth the durability depends on
the workload, and that is an operator decision, not a chart default.
Changing it on a live cluster. JetStream refuses an in-place storage-type
change (err_code 10052), so flipping streamStorage does not convert
existing streams. The gateway and sidecars log a warning naming the divergence
and leave the streams alone, which is deliberate: converting would mean deleting
and recreating the stream, destroying exactly the queued work that durability is
meant to protect. Drain the pool and delete the streams during a maintenance
window to pick up the new storage. streamReplicas, by contrast, is
reconciled onto existing streams.
Work-item deadlines
The gateway stamps every non-streaming work item with an absolute deadline
(publish time plus the gateway request timeout). Worker sidecars use it to keep
slow deliveries leased, to size backend calls, and to count work that is picked
up after its caller gave up. Set these on
workers.common.workerSidecar.extraEnv:
| Variable | Default | Meaning |
|---|---|---|
SIE_WORK_DEADLINE_ENFORCE |
false |
true ACK-drops expired work before execution instead of only counting it |
SIE_WORK_DEADLINE_SKEW_TOLERANCE_MS |
5000 |
Allowed clock skew between gateway and worker hosts (at most 60000) |
SIE_WORK_DEADLINE_MAX_BUDGET_S |
180 |
Largest accepted deadline - timestamp, and the ceiling on deadline-derived backend call budgets |
SIE_WORK_DEADLINE_MAX_BUDGET_S must be at least the gateway's
SIE_GATEWAY_REQUEST_TIMEOUT (120 s by default). If the gateway timeout is
raised above it, workers ignore every deadline and log a rate-limited warning.
The comparison spans the gateway and worker clocks, so keep the nodes
synchronised (for example with NTP). Watch
sie_worker_work_item_deadline_exceeded_total before enabling enforcement.
NATS authentication
sie-config, the gateway, and the worker sidecars connect to NATS as separate users. The bundled server refuses anonymous connections and limits each user to the subjects that component uses:
| User | Publish | Subscribe |
|---|---|---|
sie-config |
sie.config.models.> |
nothing |
sie-gateway |
sie.work.>, sie.dlq.>, cancel.>, work_cancel.>, batch_cancel.>, $JS.API.STREAM.INFO.*, $JS.API.STREAM.CREATE.*, $JS.API.STREAM.UPDATE.*, $JS.API.CONSUMER.INFO.*.* |
sie.config.models._all, sie.health.>, _INBOX.>, $JS.EVENT.ADVISORY.CONSUMER.MAX_DELIVERIES.> |
sie-worker |
_INBOX.> (results), sie.health.>, $JS.ACK.>, $JS.API.STREAM.INFO.*, $JS.API.STREAM.CREATE.*, $JS.API.STREAM.UPDATE.*, $JS.API.CONSUMER.LIST.*, $JS.API.CONSUMER.INFO.*.*, $JS.API.CONSUMER.CREATE.*.>, $JS.API.CONSUMER.DELETE.*.*, $JS.API.CONSUMER.MSG.NEXT.*.* |
sie.config.models.*, cancel.>, work_cancel.>, batch_cancel.>, _INBOX_WORKER.> |
sie-route |
Routes between NATS members, when nats.config.cluster.enabled=true |
- Only
sie-configcan publish onsie.config.models.>, and only the gateway can publish work and cancel signals. - A user that may manage JetStream streams or consumers can make the server
itself deliver stored messages to any subject: through a stream's republish
setting, a consumer's delivery subject, or the reply subject of a pull or
direct-get request. Subject permissions do not apply to those deliveries.
Each of them carries a reply subject or a
Nats-header, and sie-config and the gateway send neither on these subjects. The gateway and the worker sidecars therefore drop config notifications and cancel signals that carry either, and the gateway drops max-deliveries advisories that do. - The worker sidecars drop work that carries a
Nats-header other thanNats-Msg-Id, which the gateway sets for deduplication. This rejects work that a stream republish or a stream source copied into a work stream. - The worker sidecar receives its own JetStream replies and pull deliveries
under the inbox prefix
_INBOX_WORKER. The worker user can publish results to the gateway's_INBOXsubjects but cannot subscribe to them. - In a worker pod, only the sidecar container gets the worker credentials. The container that runs model code has none.
- Only gateway pods mount a Kubernetes API token. Worker, sie-config, and
mcp-edge pods set
automountServiceAccountToken: false, and none of them calls the Kubernetes API. They keep thesie-serverServiceAccount, so cloud workload identity (EKS IRSA and Pod Identity, GKE and AKS workload identity, ACK RRSA), which projects its own token, keeps working. Remote lanes are the exception: they run as<fullname>-worker-remote, which has no identity unless you give it one (see Remote backends). The gateway's pool Role covers every ConfigMap in the namespace, including the NATS server configuration<release>-nats-config, because pool ConfigMaps are named at runtime. The gateway pod can therefore change the NATS users, and is trusted with the bus. - The NATS monitoring port (8222) stays unauthenticated. It shows connection and subscription metadata, including user names, but no message contents or passwords. The chart ships no NetworkPolicy for the NATS pods, so restrict that port with one where that matters. The client (4222) and cluster route (6222) ports require credentials.
workers.networkPolicyrestricts only ingress to the worker pods. The worker sidecars open their NATS connections outward, so the policy does not affect NATS.- The chart does not configure TLS on NATS. Passwords and messages cross the pod network in plaintext.
- nats-box and the NATS
helm testpod are disabled, because they would connect without credentials.
What the worker user can still do. All workers share the sie-worker
user, because the subject names do not separate one worker from another. It
keeps JetStream stream and consumer management, because the sidecars create
their own direct-dispatch streams and repair the pool streams' settings. The
server does not check a stream's subjects against the creating user's
subscribe permissions. Anyone who holds the worker credentials, such as a
compromised sidecar process, can therefore:
- read gateway results and JetStream API replies, by creating a stream that
captures
_INBOX.>and reading it through a consumer. A stream created withno_ackcan capture$JS.API.>and$JS.ACK.>the same way. - read, settle, and redeliver work queued for any pool, and create, change, or delete any pool's durable consumers.
- change any stream's configuration. Lowering
max_msgsdrops queued work, and sealing a stream makes it refuse new work until the stream is deleted, which no user in the matrix above may do. - add work to any pool without a
Nats-header, through a subject transform on the pool stream. The header check above does not catch this. - send heartbeats in the name of other workers.
Removing these rights needs streams that only the gateway manages, or a separate NATS account per worker. Both are planned follow-ups.
Recovering a sealed or damaged stream. With the default memory storage,
restart NATS (kubectl rollout restart statefulset/<release>-nats). The
gateway and the workers create the streams again, and queued work is lost.
With file storage no user in the matrix may delete a stream. Upgrade once with
--set nats.auth.allowAnonymous=true --set nats.natsBox.enabled=true, run
nats stream rm <stream> -f in the nats-box pod, and upgrade again with
--set nats.auth.allowAnonymous=false --set nats.natsBox.enabled=false.
Passwords. The chart generates one Secret per user,
<release>-nats-auth-config, -gateway, and -worker, plus -route when the
NATS cluster is enabled. Each holds a random 48-character password of
letters and digits that starts with a letter. On upgrade the chart reads the
existing Secret with lookup and keeps its password. The render fails if a
kept Secret has no password key, or a password shorter than 32 characters,
with characters other than letters and digits, or starting with a digit. The
Secrets carry helm.sh/resource-policy: keep. The NATS server reads the
passwords from its environment, and each client container gets
SIE_NATS_USER and SIE_NATS_PASSWORD.
To manage a password yourself, set nats.auth.existingSecrets.<config|gateway|worker|route>
to a Secret with a password key. For the bundled server it must be letters
and digits and start with a letter: the server parses it as a configuration
value, where a leading digit reads as a number, and embeds it in route URLs.
Renderers without cluster access, such as helm template and many GitOps
controllers, cannot read the existing Secrets and generate new passwords on
every render. Use existingSecrets with them, or on Argo CD set
ignoreDifferences on the Secrets' /data together with the
RespectIgnoreDifferences=true sync option. Do not commit helm template
output, which contains the passwords.
Rotating a password. Delete the generated Secret (or change your own) and
run helm upgrade. Then restart the NATS StatefulSet, which reads passwords
only at start, and the workloads that use that user. They cannot connect until
both sides have the new password. Helm keeps every rendered Secret in its
release history, so a helm rollback to an earlier revision brings back the
earlier password, and anyone who can read Secrets in the namespace can read the
history.
Upgrading an existing release. Authentication is on by default, so the upgrade changes the NATS server, sie-config, the gateway, and the workers together:
- The NATS pod restarts. With the default memory-backed work queues, queued and in-flight work is lost, as on any NATS restart (see "Work-queue durability").
- A gateway, sie-config, or worker pod that has not been replaced yet has no
credentials, and the server refuses it. Requests can fail with
503, and workers that have not restarted take no work until they do.
To avoid that gap, upgrade in two steps. First upgrade with
--set nats.auth.allowAnonymous=true: the server then also accepts anonymous
connections, with unrestricted permissions. Once every pod has restarted,
upgrade again with --set nats.auth.allowAnonymous=false. Set it explicitly:
--reuse-values and --reset-then-reuse-values both keep the value from the
first step. The second step only changes the NATS configuration, which the
server reloads without restarting. helm status prints a warning while
anonymous access is on.
helm upgrade --reuse-values reuses the old release's NATS sub-chart values,
which lack the chart's server wiring, so the render fails. Upgrade with
--reset-then-reuse-values (Helm 3.14 or later) or pass your values with -f.
The wiring lives in the sieNatsAuth keys under nats.config.merge,
nats.config.cluster.merge, and nats.container.env. Keep them when you add
your own settings next to them.
Opting out. nats.auth.enabled=false renders NATS without users and
connects the clients without credentials, as before. Use it only where the
network already keeps other workloads away from NATS.
External NATS (nats.install=false). The chart cannot configure your
server. With nats.auth.enabled=true, set nats.auth.existingSecrets.config,
.gateway, and .worker, and create the users sie-config, sie-gateway,
and sie-worker with the permissions above. If your server needs no
credentials, set nats.auth.enabled=false. The clients read credentials only
from SIE_NATS_USER and SIE_NATS_PASSWORD. They remove any credentials in
nats.url before connecting.
Upgrading from the legacy single-bundle pool schema
Releases up to and including 0.4.x used a flat schema where each pool
declared a single bundle: plus minReplicas:/maxReplicas: at the
pool level. That shape is no longer accepted — bundles: is required
(see schema docs in values.yaml).
The rename also changes resource names from worker-<pool> to
worker-<pool>-<bundle> for StatefulSets, KEDA ScaledObjects, PDBs, and
the image-prepull DaemonSet. helm upgrade creates the new resources
but does not delete the old ones. The legacy resources are
distinguishable from the new ones by the absence of the
sie.superlinked.com/bundle label:
NS=sie # effective workload namespace: global.namespace or release namespace
# Pre-refactor worker family (no bundle label) — delete before/after upgrade
kubectl -n "$NS" delete statefulset,pdb,daemonset \
-l 'app.kubernetes.io/component=worker,!sie.superlinked.com/bundle'
# Pre-refactor image-prepull DaemonSets
kubectl -n "$NS" delete daemonset \
-l 'app.kubernetes.io/component=image-prepull,!sie.superlinked.com/bundle'
# Pre-refactor KEDA ScaledObjects. Current managed revisions are pruned by the
# chart; these older unlabeled objects remain an explicit one-time cleanup.
kubectl -n "$NS" delete scaledobject \
-l 'app.kubernetes.io/component=worker,!sie.superlinked.com/bundle'
Run these once per cluster after the upgrade settles. Leftover ScaledObjects will keep trying to scale deleted StatefulSets and spam KEDA logs; leftover PDBs will block node drains.
sie-config tokens
sie-config serves the model catalog on /v1/configs/* and accepts two tokens
there:
| Token | sie-config variable | Authorizes | Held by |
|---|---|---|---|
| Admin | SIE_ADMIN_TOKEN |
Every read and write | sie-config and the admin tooling that writes configs |
| Read | SIE_CONFIG_READ_TOKEN |
Every read, including GET /v1/configs/export; never a write |
sie-config, every gateway pod, and every worker sidecar |
The gateway presents the read token to load and refresh its catalog, and
worker sidecars present it to reconcile missed config updates. Both receive it
as SIE_CONFIG_SERVICE_TOKEN. The gateway always gets that variable, empty
when the chart runs no sie-config, so it never presents another credential in
its place. Neither receives the admin token, so a gateway or worker pod cannot
write to sie-config.
Every read-token holder can read every model config, through
GET /v1/configs/models/{id} and the export, including adapter_options such
as loadtime.extra_env. Never put secrets in model configs.
Each token is either generated by the chart or managed by the operator, chosen per token:
- Generated (default). With
config.auth.adminTokenSecretNameempty andconfig.auth.generateAdminToken=true, the chart creates the Secret<fullname>-config-admin-token(sie-cluster-config-admin-tokenfor the Quick Start release,sie-config-admin-tokenwith a bundled cloud overlay) holding a random 64-character token underconfig.auth.adminTokenSecretKey(SIE_ADMIN_TOKEN). When sie-config has an admin token,config.auth.readTokenSecretNameis empty, andconfig.auth.generateReadToken=true, it likewise creates<fullname>-config-read-tokenholding a separate token underconfig.auth.readTokenSecretKey(SIE_CONFIG_READ_TOKEN). An absent key, as afterhelm upgrade --reuse-valuesfrom an older release, takes its default. Upgrades read each existing Secret and keep its token; the render fails if the Secret has no value under the configured key or the value is shorter than 32 characters. Both Secrets carryhelm.sh/resource-policy: keep, sohelm uninstallleaves them in place; delete them manually when they are no longer needed. - Operator-managed. Set
config.auth.adminTokenSecretNameorconfig.auth.readTokenSecretName(and the matching...SecretKeyif the key differs) to an existing Secret. The chart uses it unchanged and creates no Secret for that token. Use this mode for both tokens with renderers that cannot read the cluster, such ashelm templateor GitOps controllers (see GitOps andhelm template).
The render fails when config.auth.readTokenSecretName and its key point at
the admin token's Secret and key, since that would hand the admin token to
every gateway and worker sidecar. The two tokens may share a Secret under
different keys. The gateway and worker sidecar extraEnv lists cannot set
SIE_ADMIN_TOKEN or SIE_CONFIG_SERVICE_TOKEN; the settings above are the only
source.
config.auth.mode is not read by any template and is kept only so existing
values files stay valid; the settings above decide the tokens.
Read the generated tokens, the admin token for admin tooling and the read
token for read-only tooling. With config.auth.adminTokenSecretName or
config.auth.readTokenSecretName set, that token is in the named Secret
instead. <fullname> is fullnameOverride when set, which the bundled cloud
overlays (values-aws.yaml, values-gke.yaml, values-aks.yaml, and
values-ack.yaml) set to sie. Otherwise it is <release>-<name>, where
<name> is nameOverride or sie-cluster, or the release name alone when it
already contains <name>, as in the Quick Start. The result is cut to 63
characters with no trailing hyphen. The install notes print these commands
with the rendered names, and helm get notes <release> -n sie prints them
again. Set FULLNAME to match, for example FULLNAME=sie for an overlay
install:
FULLNAME=sie-cluster
kubectl get secret -n sie "${FULLNAME}-config-admin-token" \
-o jsonpath='{.data.SIE_ADMIN_TOKEN}' | base64 -d
kubectl get secret -n sie "${FULLNAME}-config-read-token" \
-o jsonpath='{.data.SIE_CONFIG_READ_TOKEN}' | base64 -d
telemetry.deploymentEnv is also sie-config's deployment environment
(SIE_DEPLOYMENT_ENV). With production (the default) or prod, sie-config
refuses every /v1/configs request unless an admin token is configured. Any
other value lets sie-config serve the API without a token, which leaves catalog
writes open to anything that can reach the Service. With
config.auth.generateAdminToken=false and config.auth.adminTokenSecretName
empty, the chart therefore renders only when telemetry.deploymentEnv is
staging, development, or ci, and fails the render for production and
for any unrecognized value. In that case the chart generates no read token,
and the gateway and worker sidecars send none.
With an admin token, sie-config also needs a read token:
config.auth.generateReadToken=false with config.auth.readTokenSecretName
empty fails the render, because the gateway and worker sidecars would have no
credential for the catalog.
The gateway reports 503 on /readyz until it has loaded its first complete
catalog from sie-config, so a missing or mismatched token keeps new gateway
pods out of the Service and fails helm install --wait instead of serving a
partial catalog. Once a gateway pod has loaded its catalog, it stays ready
through later sie-config outages. The gate proves that the gateway reached
sie-config and, when sie-config requires a token, authenticated. It accepts
whatever complete catalog sie-config serves and does not validate the
catalog's contents.
Gateway admin token
With gateway.auth.mode set to token or static, the gateway gates its own
admin routes: POST, PUT, and DELETE requests under /v1/pools,
/v1/admin, and /v1/configs, which include pool create, renew, and delete
and POST /v1/configs/resolve. They accept the token in the Secret named by
gateway.auth.adminTokenSecretName (key gateway.auth.adminTokenSecretKey,
default SIE_ADMIN_TOKEN), which the chart passes to the gateway as
SIE_ADMIN_TOKEN. When it is empty, those requests get 403 (Admin token not configured). The chart does not generate this token, and it must be separate
from the sie-config tokens: the render fails when it names the Secret and key
of the sie-config admin token, which would give every gateway pod catalog
write access, or of the read token, which every worker sidecar holds. The
placement applier mounts the same Secret only when placementApplier.apply is
true and the gateway may authenticate, with token auth or a mode known only at
run time.
Who holds which token
- sie-config admin token: sie-config and the admin tooling you give it to.
- sie-config read token: sie-config, every gateway pod, and every worker sidecar. It can read the whole catalog, including every model config, but cannot write.
- Gateway admin token (when set): every gateway pod, the placement applier
when
placementApplier.applyis true and the gateway may authenticate, with token auth or a mode known only at run time (see Lane envelopes and the placement applier), and the tooling that manages pools. - Gateway client token (when set or generated): API clients, every gateway pod, and every worker sidecar, which presents it when it calls the gateway. See Securing the cluster.
- Worker token (when
workers.auth.enabled): every gateway pod and every worker container that serves the worker API, which is the container that runs model code. All workers share it. - Upstream credentials (when remote backends are used): the
workercontainer of eachremotelane, from the Secrets thatupstreamsnames. Where each credential is sent is in the<fullname>-upstreamsSecret, which only that container mounts. Changing it takes write access to Secrets in the release namespace: no workload of this chart has any Secret permission, and the gateway's Role covers ConfigMaps and Leases only. See Remote backends.
Anyone who can read Secrets in the release namespace can read all of them. Limit Secret read access in that namespace accordingly.
Rotating the tokens
sie-config accepts one admin token and one read token at a time, and every component reads its token at container start.
- Admin token: update its Secret and restart sie-config, then give admin tooling the new token. The gateway and the workers do not hold it and keep working.
- Read token: update its Secret, restart sie-config first, and then restart
the gateway and the worker StatefulSets. Until a gateway or worker sidecar
restarts, sie-config answers its old token with
403: a running gateway keeps serving its current catalog and still receives live NATS config deltas, but its epoch poll and export catch-up fail; a new gateway pod stays at503; and worker sidecars cannot reconcile missed updates.
Helm stores the rendered Secrets, including the generated tokens, in every
release revision. A helm rollback to a revision from before a rotation
restores the old token, so rotate again after such a rollback. Anyone who can
read Secrets in the release namespace can also read earlier tokens from the
release history.
GitOps and helm template
helm template, and GitOps controllers that render the chart the same way
(for example Argo CD), cannot read the cluster. The chart's lookup of the
existing Secrets finds nothing, so every render carries new random tokens.
Applying each render replaces the tokens in the Secrets, and pods pick up
different tokens as they restart: worker sidecars get 403 when they
reconcile, new gateway pods stay at 503, and every component fails once
sie-config restarts with a token the others do not hold.
Recommended: create both Secrets outside the chart, for example with an external secret manager, and set
config.auth.adminTokenSecretNameandconfig.auth.readTokenSecretName.Argo CD with generated tokens: have Argo CD keep the live tokens by ignoring the Secrets' data both when diffing and when syncing. The example names the Quick Start release's Secrets. With a bundled cloud overlay, name
sie-config-admin-tokenandsie-config-read-tokeninstead, and otherwise<fullname>-config-admin-tokenand<fullname>-config-read-token(see sie-config tokens):spec: ignoreDifferences: - kind: Secret name: sie-cluster-config-admin-token namespace: sie jsonPointers: - /data - kind: Secret name: sie-cluster-config-read-token namespace: sie jsonPointers: - /data syncPolicy: syncOptions: - RespectIgnoreDifferences=trueRespectIgnoreDifferences=truemakes Argo CD applyignoreDifferencesduring sync, not only in the diff. It takes effect only once a Secret exists, so the first sync creates each Secret with the token from that render and later syncs keep it.
Do not commit helm template output to a repository: the rendered Secrets
contain the generated tokens.
Upgrade notes
Installs without
config.auth.adminTokenSecretName: the upgrade creates the admin-token Secret and addsSIE_ADMIN_TOKENto sie-config, so it rolls. sie-config then requires a token for every/v1/configsrequest, including on installs with a non-productiontelemetry.deploymentEnvthat previously served the API without one. Update admin tooling to send the admin token. To keep an unauthenticated sie-config instead, setconfig.auth.generateAdminToken=false; the chart renders that only whentelemetry.deploymentEnvisstaging,development, orci. An install that uses another name (for exampledev,test,qa, orpreprod) fails the render with that setting and must either keep the token or switch to one of those names. Because the auth posture is keyed off the telemetry value, switching the name also changes the anonymous-telemetry environment tag and, unlessobservability.otel.resource.deploymentEnvironmentis set explicitly, the OTeldeployment.environmentlabel on dashboards.
Separate read token: the upgrade creates the read-token Secret (unless
config.auth.readTokenSecretNameis set), addsSIE_CONFIG_READ_TOKENto sie-config, and gives the gateway and worker sidecarsSIE_CONFIG_SERVICE_TOKENinstead ofSIE_ADMIN_TOKEN, so those pods roll. The admin-token Secret is unchanged.
- Run the sie-config, gateway, and worker sidecar images of this chart's release together. An older sie-config rejects the read token, so new gateway pods stay at
503and worker sidecars cannot reconcile; older gateway and sidecar images present onlySIE_ADMIN_TOKEN, which they no longer receive. During an ordinary rolling upgrade, new gateway pods that start before the new sie-config is ready stay at503until it is, while the old pods keep serving.- The gateway no longer accepts the sie-config admin token on its admin routes. With
gateway.auth.modeset totokenorstatic, setgateway.auth.adminTokenSecretNamebefore upgrading if you use those routes; until then they answer403.- GitOps installs that set
config.auth.adminTokenSecretNamenow get a generated read token, with thehelm templatebehavior described above. Setconfig.auth.readTokenSecretNameto an externally managed Secret before upgrading.- Gateways and worker sidecars run outside this chart keep working with only
SIE_ADMIN_TOKEN: whenSIE_CONFIG_SERVICE_TOKENis unset they fall back to it and log a deprecation warning. Move them toSIE_CONFIG_SERVICE_TOKENwith a read token.
Securing the cluster
By default the gateway and the workers accept requests without a token, and no NetworkPolicy limits who reaches the workers. The settings below close that, and each can be turned on now. 0.13.0 changes their defaults:
| Setting | Default now | Default from 0.13.0 |
|---|---|---|
gateway.auth.mode |
none |
token |
gateway.auth.generateToken |
false |
true |
workers.auth.enabled |
false |
true |
workers.networkPolicy.enabled |
false |
true |
telemetry.enabled |
true |
false |
To keep the current behavior after 0.13.0, set the "Default now" values explicitly. To adopt the 0.13.0 defaults now, which together are the secure combination, set:
gateway:
auth:
mode: token
generateToken: true
workers:
auth:
enabled: true
networkPolicy:
enabled: true
telemetry:
enabled: false
An Ingress or a LoadBalancer/NodePort gateway Service also needs TLS; see
Authentication and TLS requirements.
Gateway token
With gateway.auth.mode set to token (or static, which the gateway treats
the same), the gateway requires a token on every request except its probes and
API description. Clients send it as Authorization: Bearer <token> or
x-api-key: <token>. The first Authorization value decides when it
carries a token, and the gateway then ignores x-api-key. When that value is
empty or blank, x-api-key decides. An unreadable first value is refused, and
Bearer alone counts as the token Bearer. Later Authorization values are
ignored. Until 0.13.0, a request that passes authentication with a repeated
Authorization header whose values carry different tokens, include one the
gateway cannot read, or carry a token only after the first value logs a
warning, once per process; a refused request never logs it. From 0.13.0 such a
request gets 401. SDK clients pass the token as api_key/apiKey, or read
it from SIE_API_KEY when their base URL comes from SIE_BASE_URL. The tokens
come from one Secret, generated or managed by the operator:
Generated. With
gateway.auth.tokenSecretNameempty andgateway.auth.generateToken=true, the chart creates the Secret<fullname>-gateway-tokenholding a random 64-character token undergateway.auth.tokenSecretKey(SIE_AUTH_TOKEN). Like the sie-config tokens, upgrades read the existing Secret and keep its token, the render fails if the token is missing or shorter than 32 characters, the Secret carrieshelm.sh/resource-policy: keep, and renderers without cluster access generate a new token on every render (see GitOps andhelm template; usegateway.auth.tokenSecretNamethere). The install notes print the command that reads it:FULLNAME=sie-cluster kubectl get secret -n sie "${FULLNAME}-gateway-token" \ -o jsonpath='{.data.SIE_AUTH_TOKEN}' | base64 -dOperator-managed. Set
gateway.auth.tokenSecretNameto a Secret holding comma-separated tokens. The chart uses it unchanged and ignoresgateway.auth.generateToken. Several tokens let you rotate one at a time.
While the gateway receives the generated token, gateway.extraEnv cannot set
SIE_AUTH_TOKEN or SIE_AUTH_TOKENS, which would replace it.
The worker sidecars receive the same Secret as SIE_GATEWAY_API_KEY and
present its first comma-separated token when they call the gateway, so
workers.common.workerSidecar.extraEnv cannot set SIE_GATEWAY_API_KEY
while the chart wires it. The MCP edge does not receive the Secret: set
mcpEdge.clusterApiKey.existingSecretName and mcpEdge.clusterApiKey.secretKey
to a Secret key holding one gateway token. The MCP edge presents the whole
value, so that key must hold a single token. The render fails when the gateway
requires a token, mcpEdge.enabled is set, mcpEdge.clusterBaseUrl is empty
(the edge calls the in-cluster gateway), and no cluster API key is set. With
token auth, pool create, renew, and delete also need the
gateway admin token. The render fails when the client
token, a gateway.extraEnv token Secret, or the MCP edge cluster API key is
the same Secret key as a checked credential: the Hugging Face
token, a NATS password, the gateway admin token, either sie-config token, an
image pull secret, an oauth2-proxy secret, the Better Stack token, a bundled
Grafana admin username or password, the dependency keys below, the MCP connector
secrets, or a chart-managed ingress TLS key. Gateway client credentials may
share a key with each other. Worker tokens, gateway client credentials (including
gateway.extraEnv token refs and MCP edge client keys), and upstream credentials
all use this same finite inventory.
Bundled dependency refs are checked only when their actual consumer is enabled
and its namespace matches the SIE workload namespace. The chart uses the enabled
child chart's own naming/namespace helpers: global.namespace relocates SIE
workloads, not every dependency. These rules follow the versions in Chart.lock:
| Dependency consumer | Checked Secret keys |
|---|---|
Grafana SMTP (smtp.existingSecret set) |
Literal existing Secret, smtp.userKey / smtp.passwordKey (defaults user / password). |
Grafana LDAP (ldap.enabled) |
Literal ldap.existingSecret or Grafana fullname, ldap-toml. |
| KEDA operator and metrics TLS | Literal certificates.secretName, ca.crt, tls.crt, tls.key. Disabling certificate generation or webhooks does not remove these consumers. |
KEDA CA Issuer (certificates.certManager.enabled and issuer.generate) |
Literal caSecretName, tls.crt / tls.key, including an existing CA when generateCA=false. |
| Prometheus operator or separate admission webhook TLS | Child fullname + -admission, cert / key, or tls.crt / tls.key in cert-manager mode. admissionWebhooks.enabled does not disable these TLS mounts. |
| Prometheus self-monitoring CA or certificate patch Jobs | Same admission Secret, ca (ca.crt for cert-manager self-monitoring). Patch Jobs read ca even when TLS and self-monitoring are off. |
Prometheus cert-manager CA Issuer (no external issuerRef) |
Child fullname + -root-cert, tls.crt / tls.key, even with the operator disabled. |
| trust-manager webhook TLS | Child name + -tls, tls.crt / tls.key, in both certificate-generation modes. |
| Loki NGINX gateway basic auth | Literal gateway.basicAuth.existingSecret or gateway fullname, .htpasswd; excludes the enterprise GEL gateway. |
| Loki's optional MinIO | Literal MinIO existingSecret or MinIO fullname, rootUser / rootPassword. |
Grafana evaluates kube-prometheus-stack.grafana.admin.existingSecret as a
template in its own chart, and the chart evaluates it the same way to find the
admin Secret Grafana reads. A value that holds {{ may therefore hold only
lowercase letters, digits, -, ., whitespace and actions that hold one chain
of names on .Release, .Values or .Chart, such as
{{ .Release.Name }}-grafana-admin. An action may use {{- and -}} trim
markers, a leading $ and whitespace around the chain, and .Values is the
Grafana chart's values. The render fails for any other action, including
include, template, function calls, pipelines and comments. Go templates
resolve a name in the chain as a field, a map key or a method without
arguments, such as {{ .Values.YAML }}. When the evaluated value is not a
Secret name, the render fails and its error shows the template, not the value.
This is not an inventory of arbitrary dependency configuration. Operators must
keep SIE credentials separate from Grafana envValueFrom / envFromSecret,
extra env/volumes, raw Loki/enterprise/cloud-storage configuration, MinIO extra
Secrets, Prometheus/Alertmanager Secret lists and provider configs, and KEDA
grpcTLSCertsSecret / hashiCorpVaultTLS (whole-Secret mounts with scaler-defined
filenames). External Issuer backing Secrets, custom CA/provider configuration,
and custom dependency images also need operator review; their key layout cannot
be inferred from the pinned chart's first-class refs; these surfaces are tracked in
#780. Render tests enforce key
separation, not that arbitrary TLS PEM data would be accepted as a runtime bearer
token.
In pinned trust-manager, Helm-generated TLS is created in the release namespace
while its Deployment uses the child namespace override. The render rejects a
separate child namespace with app.webhook.tls.helmCert.enabled=true to prevent
that inherited certificate-generation mismatch. Use the release namespace or
cert-manager generation instead; see Bundling cert-manager.
When gateway.extraEnv sets SIE_AUTH_MODE from valueFrom, the mode is
unknown at render time. The gateway then receives the generated token, as it
receives an operator-managed Secret, so a mode that resolves to none at run
time is refused as a misconfiguration.
To turn the generated token on for an existing release without locking out clients, upgrade twice. Pass your values as on every upgrade. First create the token; the gateway does not require it yet:
helm upgrade sie-cluster oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace sie -f values.yaml \
--set gateway.auth.generateToken=true
This step rolls the worker StatefulSets, whose sidecars receive the token. Give the token to your clients, then require it:
helm upgrade sie-cluster oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace sie -f values.yaml \
--set gateway.auth.generateToken=true \
--set gateway.auth.mode=token
The second step rolls only the gateway.
Rotating the gateway token. Pods read the token at start, and deleting the generated Secret replaces every client's token at once. For a rotation without a cutover, use an operator-managed Secret:
- Put the new token first and keep the old one:
new-token,old-token. Runhelm upgrade(with the Secret's name ingateway.auth.tokenSecretName) and restart the gateway and the worker StatefulSets. The gateway accepts both tokens, and the worker sidecars present the first one. - Move every client, including the MCP edge's key and the placement
applier's
placementApplier.clientTokenkey, to the new token, and restart the placement applier, which reads its token at start. - Remove the old token from the Secret and restart the gateway.
To leave a generated token, copy it into your own Secret as the old token in
step 1, then set gateway.auth.tokenSecretName.
Worker token
The workers serve an HTTP API that the gateway calls. With
workers.auth.enabled=true, every worker container that serves it receives
SIE_AUTH_MODE=token and SIE_AUTH_TOKEN and requires the token on every
route except /healthz, /livez, and /readyz, which the kubelet probes
call without credentials. The gateway receives the same token as
SIE_WORKER_AUTH_TOKEN and presents it (the first one, when the Secret key
lists several comma-separated tokens) when it opens a worker's /ws/status
connection, which it does with gateway.healthMode=ws or when it falls back to
WebSocket health because NATS is unavailable at start. With the default NATS
health mode the gateway reaches the workers only through NATS. The Rust worker
(engine: candle) serves only probes over HTTP and receives no token, and the
worker sidecars do not serve the worker API.
Worker auth needs a sie-server image that supports
serve --require-auth-mode=token|none and a sie-gateway image that presents
SIE_WORKER_AUTH_TOKEN. The chart passes --require-auth-mode=token to every
Python worker while enforcing auth and --require-auth-mode=none during the
upgrade step. The worker asserts its resolved authentication mode before
creating a token or starting the server; the option does not override its
environment. Older worker CLIs reject the unknown option before serving,
including when a lane starts after scaling from zero. Auth-disabled workers
do not receive this option.
An image tag, including this chart's default appVersion, does not establish
these capabilities. The published v0.10.1 images predate worker auth; use
images built from source containing the required worker assertion and gateway
token forwarding before enabling it. A worker without the assertion will fail
startup, and a gateway without token forwarding cannot establish WebSocket
health against enforcing workers. No released minimum version is asserted.
A post-install and post-upgrade hook Job,
<fullname>-worker-auth-test-<revision>, additionally checks enforcement
while the workers require the token: once a worker of each lane's current
StatefulSet revision is ready, it sends GET /v1/models without a token and
fails the release when a worker answers with anything but 401, when a ready
worker does not answer, when a lane's StatefulSet is missing, or when its pods
cannot be listed. Both worker NetworkPolicies admit the hook pod to the worker
ports while the workers require the token. A lane scaled to zero is skipped at
once, and a lane with no ready worker of the current revision within three
minutes (a cold start longer than that) is skipped with a warning. The check is
best effort: a skipped lane is not checked until a later release finds it
running. The Job stays for a day after it finishes, so its log
(kubectl logs -n <namespace> job/<fullname>-worker-auth-test-<revision>)
shows which workers it checked and which lanes it skipped. The startup
assertion remains required even when this best-effort hook skips a lane.
With workers.auth.tokenSecretName empty, the chart creates
<fullname>-worker-token holding a random 64-character token under
workers.auth.tokenSecretKey (SIE_AUTH_TOKEN), with the same reuse check,
keep policy, and helm template caveat as the gateway token. Otherwise it uses
the named Secret unchanged. The render fails when the worker token is the same
Secret key as another checked credential listed above, including the gateway
client token (see Gateway token for the list). While
workers.auth.enabled is set, the worker extraEnv lists cannot set
SIE_AUTH_MODE, SIE_AUTH_TOKEN, or SIE_AUTH_TOKENS, and gateway.extraEnv
cannot set SIE_WORKER_AUTH_TOKEN. When the workers do not require the token,
the chart sets SIE_AUTH_MODE=none on the containers that serve the worker
API. That covers the first upgrade step below (workers.auth.enabled=true
with workers.auth.allowUnauthenticated=true), where the three variables stay
reserved, and worker auth off, where a worker extraEnv list that sets one of
them is left in charge instead. A worker therefore never generates a token of
its own.
All workers share one token, so a worker container can call the other
workers' APIs. Keep workers.networkPolicy on with it, so that only the
gateway reaches the worker ports.
Upgrading an existing release. A single upgrade with
--set workers.auth.enabled=true rolls the gateway and the workers together.
With the default NATS health mode that is enough. With WebSocket health, a
gateway pod that has not been replaced yet has no token, and the workers that
restarted before it refuse its connections until it is replaced. To avoid that
gap, upgrade in two steps. First let the gateway present the token while the
workers do not require it yet:
helm upgrade sie-cluster oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace sie -f values.yaml \
--set workers.auth.enabled=true \
--set workers.auth.allowUnauthenticated=true
This step rolls the gateway and the Python workers, adding the startup capability assertion while workers still accept unauthenticated requests. Wait for both rollouts to finish successfully, then require the token:
helm upgrade sie-cluster oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace sie -f values.yaml \
--set workers.auth.enabled=true \
--set workers.auth.allowUnauthenticated=false
Set it explicitly: --reuse-values and --reset-then-reuse-values both keep
the value from the first step. The second step rolls the workers. helm status
prints a warning while workers.auth.allowUnauthenticated is on, and the
render fails when it is set without workers.auth.enabled.
Rotating the worker token. The gateway presents one worker token at a time:
- With the default NATS health mode, nothing calls the worker API except the
probes. Delete the generated Secret (or change your own), run
helm upgrade, and restart the gateway and the worker StatefulSets. - With WebSocket health, use the upgrade aid: upgrade with
workers.auth.allowUnauthenticated=trueand wait for the workers to restart, replace the token, runhelm upgradeand restart the gateway, then upgrade withworkers.auth.allowUnauthenticated=false. Keepworkers.networkPolicyon, since the workers accept unauthenticated requests between the first and last step. - With your own Secret in
workers.auth.tokenSecretName, rotate without a gap: set the key toold-token,new-tokenand restart the worker StatefulSets, so the workers accept both; set it tonew-token,old-tokenand restart the gateway, which presents the first; then set it tonew-tokenand restart the worker StatefulSets.
NetworkPolicy
workers.networkPolicy.enabled=true admits this release's gateway pods to the
worker HTTP ports (see Worker NetworkPolicy). While
the workers require the token, it also admits pods labelled
{app.kubernetes.io/name: sie-health-test, app.kubernetes.io/component: worker-auth, app.kubernetes.io/instance: <release>},
the label of the release-time worker token test; any pod created with that
label in the namespace is admitted, as for the gateway's labels. A
NetworkPolicy takes effect only with a CNI that enforces it. Without one the
policy admits every pod, and the worker token remains the only control. The
kubelet probes, which the policy does not restrict, use the probe paths that
need no token. Remote lanes have their own policy,
workers.remote.networkPolicy, which admits the same pods (see
Network policy for remote lanes).
Ingress
The Ingress is off by default, including in the AWS, GKE, AKS, and ACK
overlays. Install an ingress controller first, then enable it with
ingress.enabled=true, gateway auth, and TLS, and route traffic to the gateway
by hostname. Use the list-valued ingress.hosts to front the gateway with one
or more hostnames — each entry becomes an Ingress rule (and, when TLS is
enabled, a SAN on the cert):
gateway:
auth:
mode: static
tokenSecretName: sie-gateway-auth # Secret with comma-separated tokens
ingress:
enabled: true
className: nginx
hosts:
- sie.example.com
- api.example.com
tlsConfig:
enabled: true
With the default byo TLS mode, create the kubernetes.io/tls Secret named by
ingress.tlsConfig.secretName (default sie-tls) before installing, or use the
cert-manager or self-signed mode described in TLS / HTTPS.
The singular ingress.host is the backward-compatible single-host shorthand; it is
ignored whenever ingress.hosts is non-empty. With neither set the chart renders a
host-less catch-all Ingress. All hosts share the single ingress.tlsConfig.secretName
(one multi-SAN certificate).
Authentication and TLS requirements
The gateway authenticates nothing by default (gateway.auth.mode: none). The
chart refuses to render a gateway Ingress unless something authenticates its
requests, because an Ingress publishes the inference API and the pool API,
which keeps GPU workers warm, to anyone who can reach the ingress controller.
A hostname or a certificate is not access control: hostnames are public DNS and
certificates appear in Certificate Transparency logs. One of the following must
hold:
- the gateway requires a token:
gateway.auth.mode=staticwithgateway.auth.tokenSecretNamenaming a Secret of comma-separated tokens, or withgateway.auth.generateToken=true(see Securing the cluster). SDK clients pass one asapi_key/apiKey, or read it fromSIE_API_KEYwhen their base URL comes fromSIE_BASE_URL; - the oauth2-proxy edge is enabled (
auth.enabled=true). It works through thenginx.ingress.kubernetes.io/auth-*annotations, which only the ingress-nginx controller honours; the NGINX Inc controller (nginx.org/ingress-controller) ignores them even when its class is also namednginx. With cluster access (helm install/upgrade), the chart looks up the IngressClass named byingress.classNameand requires itsspec.controllerto be listed inauth.ingress.acceptedControllers(defaultk8s.io/ingress-nginx; add the controller string of a second ingress-nginx installation, for examplek8s.io/internal-ingress-nginx). Wheningress.classNameis empty, the API server assigns one of the default IngressClasses, so every class marked as default must use an accepted controller. An offline render (helm template, including GitOps tools that render that way) cannot see IngressClasses, so it accepts onlyingress.className=nginxand cannot tell the two controllers apart; use gateway token auth there if the class name differs. The defaultauth.oauth2Proxy.emailDomain: "*"admits any account the configured OIDC issuer authenticates; narrow it for a shared issuer; ingress.allowUnauthenticated=trueexplicitly accepts an unauthenticated Ingress, for example behind a private ingress controller.
The Ingress also needs TLS, so tokens and session cookies do not cross the
network in cleartext: ingress.tlsConfig.enabled=true with at least one host
(the Ingress carries TLS only for named hosts, so an IP-only self-signed
certificate from selfSigned.leaf.ipAddresses is not supported for the gateway
Ingress), ingress.tlsConfig.mode=disabled as an explicit statement that TLS
terminates upstream of the Ingress, or the explicit ingress.allowPlaintext=true.
The MCP edge Ingress (mcpEdge.ingress) carries connector secrets and OAuth
tokens and follows the same TLS rule, with mcpEdge.ingress.allowPlaintext=true
as its explicit opt-in. Its certificate lives in its own Secret,
<release fullname>-mcp-tls: cert-manager mode issues it, byo mode expects
you to create it, and self-signed mode does not issue it, so the chart refuses
self-signed with the MCP edge Ingress.
Both opt-ins accept only a YAML boolean; a quoted "false" fails the render.
gateway.auth.mode must be none, static, or token exactly as the gateway
reads it, and token auth without gateway.auth.tokenSecretName,
gateway.auth.generateToken=true, or a SIE_AUTH_TOKEN(S) entry in
gateway.extraEnv fails the render because the gateway would refuse every
request. gateway.auth.tokenSecretName with auth mode none fails for the
same reason; a generated token with auth mode none does not, because the
gateway does not receive it until the mode is token or static. A
gateway.extraEnv entry that overrides SIE_AUTH_MODE takes precedence over
gateway.auth.mode.
The same authentication requirement applies to gateway.service.type: LoadBalancer or NodePort, which are reachable from outside the cluster on
most managed platforms; gateway.service.allowUnauthenticated=true is the
explicit opt-in there. Because the gateway itself serves plain HTTP, those
Service types also need gateway.service.allowPlaintext=true: configure TLS
termination through your provider's load-balancer annotations in
gateway.service.annotations where available, or prefer an Ingress with TLS. config.service.type must stay ClusterIP: sie-config
is the configuration write authority and accepts unauthenticated writes unless
an admin token is configured.
With gateway token auth, pool create, renew, and delete also require the gateway admin token (see Gateway admin token). Independently of auth, the gateway bounds API-created pools:
- the warm floor (
minimum_worker_count, which applies to each of the pool's machine profiles) and thegpusrequirement may each add up to at most 4 workers per pool by default, and a pool's active lease keeps at most its requirement warm; - the lease TTL is capped at 3600 s by default;
- live API-created pools are capped at 64 by default. Each gateway replica checks the pools it knows, including ones replicated from other replicas, so concurrent creates on different replicas can briefly exceed the cap; it is not a strict cluster-wide limit.
Tune them with SIE_GATEWAY_POOL_MAX_MINIMUM_WORKER_COUNT,
SIE_GATEWAY_POOL_MAX_TTL_S, and SIE_GATEWAY_MAX_POOLS in gateway.extraEnv.
Upgrade note (breaking):
values-aws.yaml,values-gke.yaml, andvalues-aks.yamlused to enable a host-less, TLS-less Ingress in front of an unauthenticated gateway. Upgrading with those overlays now removes that Ingress, and the install notes warn when that happens. To keep external access, setingress.enabled=truewith gateway auth and TLS as above. To keep the previous unauthenticated plain-HTTP catch-all Ingress unchanged, set bothingress.allowUnauthenticated=trueandingress.allowPlaintext=true. An upgrade with--reuse-valueskeepsingress.enabled=trueand fails the render until one of these is chosen. An existing Ingress with gateway auth but no TLS needs TLS oringress.allowPlaintext=true.API-created pools stored before the upgrade keep working but are held to the new per-pool budget: a pool whose
gpusrequirements add up to more thanSIE_GATEWAY_POOL_MAX_MINIMUM_WORKER_COUNTis allotted the budget in machine-profile name order, becomes Active once the allotted workers are available, and keeps only those warm; a warm floor that no longer fits is spread over its lanes (at least one worker each on as many lanes as the budget allows). Recreate such a pool within the budget, or raise the budget.
Worker NetworkPolicy
Worker pods serve an HTTP API that requires no token unless
workers.auth.enabled is set (see Worker token); the gateway
is the only in-chart caller of the worker API, apart from the release-time
worker token test. workers.networkPolicy.enabled=true renders an ingress
NetworkPolicy whose default rule admits this release's gateway pods to every
worker HTTP port and, while the workers require the token, the worker token
test's pods (app.kubernetes.io/component: worker-auth). Kubelet probes and traffic between containers
of the same pod are unaffected. It requires a CNI that enforces NetworkPolicy.
NetworkPolicies are additive: if another policy selects the worker pods and
admits more sources, those sources keep access, so it restricts worker ingress
only when no other policy grants broader access. Check for overlapping policies
in the namespace. It is off by default and on in values-ha.yaml. Add
workers.networkPolicy.extraIngress rules for any caller outside the chart that
must reach workers directly, and list the worker ports (workers.common.port,
plus one port per additional child container on multi-GPU pools) so the rule
does not open every port on the worker pods. The chart rejects rules that admit
every source (an empty peer, an unscoped selector, or an ipBlock with prefix
length /0) or nearly every port (a port entry without port, or a range
wider than 60000 ports); disable the policy instead to open the worker API to
everything. These checks catch mistakes, not a determined operator: two /1
halves still admit every address.
workers:
networkPolicy:
enabled: true
extraIngress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: benchmarks
ports:
- port: 8080
protocol: TCP
TLS / HTTPS
The chart supports four TLS modes for the Ingress (set via ingress.tlsConfig.mode):
byo— bring your ownkubernetes.io/tlsSecret (default, backward compatible).cert-manager— chart annotates the Ingress; cert-manager provisions and renews the certificate. Default flavour is ACME (HTTP-01 challenge to Let's Encrypt); you can also point at an existing internal Issuer/ClusterIssuer.self-signed— chart bootstraps a self-signed root CA, a CA ClusterIssuer, and a leaf cert for the Ingress. Intended for air-gapped / on-prem / VPC-isolated clusters where Let's Encrypt is unreachable.disabled— no TLS resources rendered. Use when TLS is terminated upstream (cloud load balancer, sidecar, service mesh).
Exactly one cert-manager per cluster. cert-manager's CRDs, webhooks, and
cert-managerClusterRoleBinding are cluster-scoped singletons. Two controllers racing on the same CRDs corrupt issuance state. The chart enforces this with a pre-install Job that aborts when bundled cert-manager would collide with an existing install — see "Bundling cert-manager" below.
Only HTTP-01 ACME challenges are supported by the chart. DNS-01 / wildcard certs (which require cloud-provider IRSA / Workload Identity for Route53 / Cloud DNS) are out of scope — set them up manually outside the chart and reference the resulting Secret via mode: byo.
mode: byo — bring-your-own certificate
Create the TLS Secret yourself (e.g. from a corporate CA, ACM cert exported to a Secret, or an existing wildcard cert), then point the chart at it:
kubectl -n sie create secret tls sie-tls --cert=path/to/tls.crt --key=path/to/tls.key
ingress:
enabled: true
className: nginx
host: sie.example.com
tlsConfig:
enabled: true
mode: byo # default
secretName: sie-tls # default
When to use this: you already manage TLS centrally, or you have a wildcard cert from a corporate CA, or you need DNS-01 / non-ACME issuance.
mode: cert-manager — automated issuance via cert-manager
Prerequisite: either install cert-manager once in the cluster (its CRDs are cluster-scoped and must exist exactly once), OR opt in to the bundled subchart (see "Bundling cert-manager" below — single-tenant clusters only).
External install (recommended for shared clusters):
helm repo add jetstack https://charts.jetstack.io && helm repo update
helm install cert-manager jetstack/cert-manager \
--set crds.enabled=true -n cert-manager --create-namespace
For single-tenant clusters where SIE is the only workload, the chart can also install cert-manager as an opt-in subchart:
certManagerBundle:
certManager:
install: true
Then enable cert-manager mode in your SIE values:
ingress:
enabled: true
className: nginx
host: sie.example.com
tlsConfig:
enabled: true
mode: cert-manager
certManager:
email: [email protected]
# Use Let's Encrypt staging while iterating to avoid the 50 new-cert/registered-domain/week prod limit (duplicate-cert limit is 5/week):
# server: https://acme-staging-v02.api.letsencrypt.org/directory
kind: ClusterIssuer # cluster-scoped; share across namespaces. Use "Issuer" for namespace-scoped.
create: true # chart renders the Issuer/ClusterIssuer
The chart renders a {kind} named {release-fullname}-letsencrypt-prod (release-scoped to avoid collisions when multiple SIE releases share a cluster) and adds the appropriate cert-manager.io/cluster-issuer (or /issuer) annotation to the main Ingress. cert-manager populates ingress.tlsConfig.secretName (default sie-tls); the same Secret is referenced by the oauth2-proxy Ingress when auth is enabled.
Note: Helm's standard fullname collapses when the release name already contains the chart name, so helm install sie-cluster … produces sie-cluster-letsencrypt-prod (not sie-cluster-sie-cluster-letsencrypt-prod). If you override certManager.name, set the full intended name explicitly rather than expecting a particular default.
Issuer kind tradeoff:
ClusterIssuer— single ACME account / private key shared across all namespaces. Best for shared clusters.Issuer— namespace-scoped. Use for hard tenant isolation, or when you don't have permission to create cluster-scoped resources.
Reusing an existing ClusterIssuer/Issuer. In multi-tenant clusters where a platform team already manages a shared ClusterIssuer, set create: false and reference it by name:
ingress:
tlsConfig:
enabled: true
mode: cert-manager
certManager:
kind: ClusterIssuer
create: false
name: platform-letsencrypt-prod
The chart only adds the annotation — it does not render any Issuer resource.
When to use this: ACME / Let's Encrypt is reachable from your cluster (or you already have an internal Issuer/ClusterIssuer) and your platform team is OK with cert-manager being installed.
mode: self-signed — self-signed CA (air-gapped / on-prem)
For clusters that cannot reach Let's Encrypt — typical for on-prem, regulated, or VPC-isolated environments — the chart can bootstrap a self-signed root CA and use it to issue the Ingress leaf cert. cert-manager is still required.
certManagerBundle:
certManager:
install: true # bundle cert-manager (SINGLE-TENANT clusters only — see warning above)
ingress:
enabled: true
className: nginx
host: sie.example.com
tls:
enabled: true
mode: self-signed
secretName: sie-tls
selfSigned:
rootCA:
commonName: "Acme Corp SIE Root CA"
# 43800h = 5y, 720h = 30d renewBefore
leaf:
# 2160h = 90d, 360h = 15d renewBefore — match Let's Encrypt lifetimes
dnsNames: [] # extra SANs in addition to ingress.host
ipAddresses: []
Chain:
SelfSignedClusterIssuer (bootstrap, name{fullname}-selfsigned-bootstrap).- Root CA
Certificate({fullname}-root-ca, isCA, 5y, RSA-4096) -> Secretsie-root-ca-key-pair. - CA
ClusterIssuer(sie-self-signed-ca) backed by the root CA secret. - Ingress leaf
Certificate({fullname}-ingress-leaf, ECDSA-P256, 90d) -> Secretsie-tls, consumed by the Ingress.
Clients (browsers, curl) must trust the root CA. Export it with:
kubectl -n sie get secret sie-root-ca-key-pair \
-o jsonpath='{.data.ca\.crt}' | base64 -d > sie-root-ca.crt
Root CA namespace constraint. Two independent namespace-scoped lookups apply:
- cert-manager only resolves Secrets referenced by a
ClusterIssuerinside its--cluster-resource-namespace(defaults to its own Deployment's namespace). The chart writes the root CA toingress.tlsConfig.selfSigned.rootCA.namespace(defaults to the release namespace, which is correct for the bundled subchart since cert-manager also runs in the release namespace).- trust-manager only resolves source Secrets for
Bundleresources inside its--trust-namespace(defaults tocert-manager, regardless of where trust-manager itself runs).If you also enable
certManagerBundle.trustBundle.enabled: truewith the bundled trust-manager, override the trust namespace at install time so it matches where the root CA lives:helm install ... --set "trust-manager.app.trust.namespace=<release-namespace>"Otherwise the Bundle stays
Synced=FalsewithSourceNotFound. For external cert-manager (typically incert-managernamespace), setingress.tlsConfig.selfSigned.rootCA.namespace: cert-managerso the CAClusterIssuercan find its Secret; the default trust-namespace then already matches.
When to use this: air-gapped / on-prem clusters where you can distribute the root CA to client machines (e.g. via MDM, internal trust store, or workload mount), and you want a single helm install to land a working HTTPS path.
mode: disabled — no TLS resources
Use when TLS is terminated upstream of the Ingress (cloud LB, sidecar, service mesh):
ingress:
enabled: true
className: nginx
host: sie.example.com
tls:
enabled: false
mode: disabled
Trust distribution with trust-manager
When mode: self-signed, you can replicate the root CA into other namespaces as a ConfigMap so non-SIE workloads can trust SIE without out-of-band copying.
certManagerBundle:
trustManager:
install: true # required when not already installed externally
trustBundle:
enabled: true
name: sie-root-ca-bundle
target:
configMapKey: ca.crt
namespaceSelector:
matchLabels:
sie.io/trust: "true" # label target namespaces to opt them in
Workloads mount the resulting ConfigMap and point their HTTP client at it as the CA bundle.
Bundling cert-manager
The chart can install cert-manager and trust-manager as opt-in subchart dependencies (default off). This is reserved for single-tenant clusters where SIE is the sole workload. In any multi-tenant or shared cluster, install cert-manager once out-of-band and leave certManagerBundle.certManager.install: false.
Guards:
- Both subcharts are gated by
*.installflags that default tofalse; default chart behaviour is unchanged. - A template-time
lookupaborts the install whencertManagerBundle.certManager.install: trueis combined with an existingcertificates.cert-manager.ioCRD. - A
pre-installJob hook re-checks at apply time and aborts before any subchart resources are created (lookupreturns empty duringhelm template/--dry-run, so the Job is the real safety net). - Jetstack's
crds.keep: truedefault is left in place, sohelm uninstalldoes not silently deleteCertificate/Issuerresources belonging to other operators. - Bundled trust-manager with
trust-manager.app.webhook.tls.helmCert.enabled=truemust use the Helm release namespace. The render rejects a differenttrust-manager.namespace: the pinned dependency generates its TLS Secret and certificate DNS in the release namespace, while its Deployment honors the child namespace override. For a separate child namespace, usehelmCert.enabled=falsewith cert-manager.global.namespaceandapp.trust.namespacedo not relocate that TLS producer.
Override the conflict guard (DANGER):
certManagerBundle:
allowExistingCRDs: true # bypass both guards; only if you accept the consequences
Vendored CRDs
cert-manager and trust-manager CRDs are vendored at deploy/helm/sie-cluster/crds/. Helm applies files in a chart's crds/ directory before rendering templates, which is the only mechanism that lets bundled mode complete in a single helm install (the subcharts' own templated CRDs would land too late — Helm's RESTMapper discovery runs at install start and fails to resolve Certificate / Bundle references). Both subcharts have crds.enabled: false set in values.yaml so they don't try to re-install the same CRDs.
The vendored bundles are pinned to the same version as the subchart pins in Chart.yaml:
crds/cert-manager.crds.yaml— fetched from the cert-manager release:curl -fsSL -o crds/cert-manager.crds.yaml https://github.com/cert-manager/cert-manager/releases/download/v<X.Y.Z>/cert-manager.crds.yamlcrds/trust-manager.crds.yaml— extracted from the subchart tarball:helm template trust-manager charts/trust-manager-v<X.Y.Z>.tgz --show-only templates/crd-trust.cert-manager.io_bundles.yaml > crds/trust-manager.crds.yaml
When bumping the subchart version pin in Chart.yaml, re-vendor both files and re-run the golden-diff tests to surface CRD schema changes.
Uninstall caveat
crds.keep: true is the Jetstack default. helm uninstall sie-cluster will leave cert-manager CRDs behind on purpose, so that Certificate / Issuer resources owned by other operators are not silently deleted. To remove them, run kubectl delete crd <name>.cert-manager.io <name>.acme.cert-manager.io <name>.trust.cert-manager.io ... explicitly. See the cert-manager uninstall docs for the full CRD list.
Gated Models
Some HuggingFace models require authentication to download (gated models). Examples:
google/embeddinggemma-300m- Manual gating (requires approval)naver/splade-v3- Auto gating (requires license acceptance)
Prerequisites
- Create a HuggingFace account and generate an access token at https://huggingface.co/settings/tokens
- For manually gated models, request access on the model page (e.g., https://huggingface.co/google/embeddinggemma-300m)
- For auto-gated models, accept the license agreement on the model page
Kubernetes Setup
Create a secret with your HuggingFace token:
kubectl create secret generic hf-token \
--namespace sie \
--from-literal=token=hf_your_token_here
Configure the Helm chart to use the secret:
workers:
common:
hfCache:
tokenSecret: hf-token # Secret name
tokenSecretKey: token # Key within the secret
The token is mounted as the HF_TOKEN environment variable, which HuggingFace libraries automatically detect.
Local Development
For local development, set the HF_TOKEN environment variable:
# Option 1: Direct export
export HF_TOKEN=hf_your_token_here
mise run serve
# Option 2: From file
export HF_TOKEN=$(cat ~/.secrets/hf_token)
mise run serve
Docker
Pass the token as an environment variable:
docker run -e HF_TOKEN=hf_your_token_here \
-p 8080:8080 \
sie-server:cuda12-default
Telemetry
The sie-server worker containers send anonymous usage telemetry so the maintainers can see which versions, platforms, and GPUs are in use. Workers with engine: candle send none.
telemetry.enabled is true by default. The chart default changes to false in 0.13.0, and so does the sie-server default.
telemetry.enabled |
Worker environment |
|---|---|
true (default) |
SIE_TELEMETRY_ENABLED=1 |
false |
SIE_TELEMETRY_DISABLED=1 |
Because the chart sets the variable explicitly, workers do not log the sie-server default-on notice; the install notes print the 0.13.0 change instead. Each worker logs telemetry: on (SIE_TELEMETRY_ENABLED) or telemetry: off (SIE_TELEMETRY_DISABLED) at startup.
Each event is a JSON POST to https://telemetry.superlinked.com/api/telemetry (telemetry.url overrides it) with these fields:
| Field | Value |
|---|---|
worker_id |
A random UUID generated on the worker's first start and stored in its data directory (SIE_DATA_DIR) |
sent_at |
The send time (UTC) |
event |
init, update, or terminate |
sie_version |
The installed sie-server version |
variant |
SIE_VARIANT: the worker image platform and bundle, for example cuda12-default |
os, arch |
Operating system and CPU architecture |
gpus |
GPU model names |
deployment_env |
telemetry.deploymentEnv (default production) |
The receiver derives country, region, and city from the request's source IP address and does not store the address. No request data, hostnames, cluster names, API keys, or file paths are sent.
init is sent when a worker starts, the first update 45 to 75 minutes later, then one update every 55 to 65 minutes, and terminate at shutdown. See the telemetry policy.
Disable telemetry:
telemetry:
enabled: false
Enterprise customers can route heartbeats through their own collector:
telemetry:
url: "https://telemetry.internal.example.com/api/telemetry"
Tag non-production deployments to filter them out of dashboards:
telemetry:
deploymentEnv: staging # production (default) | staging | development | ci
Non-production deployments: set
telemetry.deploymentEnvto one ofstaging | development | ci. The chart default isproduction, so every non-production values overlay must opt out explicitly to keep its signals out of production dashboards.
telemetry.deploymentEnv is not only a dashboard tag: it is also passed to
sie-config as SIE_DEPLOYMENT_ENV and decides whether sie-config may serve its
API without an admin token. See sie-config tokens.
Observability
Observability components (Prometheus, Grafana, Loki, Tempo, DCGM Exporter, Alloy, Event Exporter) are included as optional sub-chart dependencies. Enable them in your values overlay (e.g. kube-prometheus-stack.install: true, observability.logs.install: true, observability.tracing.tempo.install: true, or kubernetes-event-exporter.install: true).
Every enabled OpenTelemetry producer and every bundled-collector branch uses
the same canonical resource identity. Local installs may fall back to
unknown; a Better Stack forwarding collector fails Helm rendering unless the
dedicated environment is exactly dev, staging, or prod and the region is
explicit and non-unknown:
observability:
otel:
resource:
deploymentEnvironment: dev
cloudRegion: us-east-1
Better Stack OTLP destination
Use the Telemetry source's ingestion token. A Better Stack settings-management API token and an Uptime API token are not runtime OTLP credentials. Copy the bare HTTPS OTLP origin shown by that source; do not guess or hardcode a global Better Stack hostname. Create one source and one Secret per environment and region in the effective workload namespace:
WORKLOAD_NAMESPACE=sie
BETTER_STACK_SECRET=sie-betterstack-otlp-dev-us-east-1
read -rsp 'Better Stack Telemetry source token: ' BETTER_STACK_SOURCE_TOKEN
printf '\n'
printf '%s' "$BETTER_STACK_SOURCE_TOKEN" |
kubectl create secret generic "$BETTER_STACK_SECRET" \
-n "$WORKLOAD_NAMESPACE" --from-file=token=/dev/stdin \
--dry-run=client -o yaml |
kubectl apply -f -
unset BETTER_STACK_SOURCE_TOKEN
Reference it without placing the token in Helm values:
observability:
otel:
resource:
deploymentEnvironment: dev
cloudRegion: us-east-1
collector:
betterStack:
enabled: true
endpoint: "<BARE_HTTPS_OTLP_ORIGIN_FROM_SOURCE_UI>"
existingSecret: sie-betterstack-otlp-dev-us-east-1
tokenKey: token
Only the collector Pod receives this Secret. Application producers receive the collector endpoint, never the Better Stack token. Keep dev, staging, and prod sources, dashboards, and Secrets isolated per region.
For remote logs and traces, those operated-environment values are
collector-authoritative rather than trusted from an application resource. The
gateway-only receiver also authors service.name=sie-gateway; the application
trace receiver accepts only the declared config, dispatcher, worker, and
worker-sidecar service names. Only the gateway receiver is connected to the
allowlisted request-completion log pipeline. A simultaneous local Tempo trace
pipeline intentionally bypasses these remote-only identity and privacy
processors and receives the producer trace unchanged.
The collector Deployment annotation checksum/otel-config is the SHA-256 of
the exact collector.yaml ConfigMap value mounted into the pod. Any collector
configuration change therefore creates a new pod template and rolls the
singleton collector instead of leaving it on stale mounted configuration.
Pre-configured dashboards:
- Cluster overview (QPS, latency, GPU utilization)
- Per-model performance
- Worker health
- Queue routing
- Generation
- Performance tuning
- SIE Tracing
Distributed Tracing (OTLP)
Distributed tracing is off by default — the rendered chart is unchanged unless you opt in. Enabling injects the OpenTelemetry exporter env onto the gateway, worker sidecar, adapter worker, and Rust worker so a request is traced end to end (OTLP gRPC, :4317). Queue-mode endpoints (encode/score/extract/embeddings) publish through gateway.publish before sidecar.dispatch and worker.run_batch; generation (/v1/generate, /v1/chat/completions) also opens gateway-originated spans for the streaming path. Sampling defaults to a head-based parent sampler (parentbased_traceidratio at 0.05), which honors an inbound traceparent decision and otherwise samples 5% of new traces.
Bring your own collector (Tempo, Jaeger, or an existing OTel Collector) is available only when the bundled collector is not required by metrics, logs, or KEDA:
observability:
tracing:
enabled: true
otel:
endpoint: "http://tempo:4317" # OTLP gRPC producer destination
Or with --set:
helm upgrade ... \
--set observability.tracing.enabled=true \
--set observability.otel.endpoint=http://tempo:4317
Bundled collector is installed explicitly or implied by application
Prometheus consumers such as KEDA. Leave
observability.otel.collector.traces.endpoint empty to debug-log spans in the
collector pod (handy for a first run), or set it to forward to Tempo/Jaeger:
observability:
tracing:
enabled: true
otel:
collector:
install: true
traces:
endpoint: "http://tempo:4317" # optional downstream; omit to debug-log
insecure: true # false for a TLS-enabled downstream
The bundled collector forwards over plaintext by default (insecure: true);
set it to false when the trace endpoint uses TLS.
observability.otel.endpoint is mutually exclusive with the bundled collector;
it does not suppress a collector forced by autoscaling, ServiceMonitor, alert
rules, kube-prometheus-stack, or observability.otel.collector.install.
Bundled Tempo backend (opt-in; never installed by default) — renders Grafana Tempo as an in-cluster trace backend via the grafana-community/tempo 2.2.3 chart (Tempo app 2.10.7) from the grafana-community repo. With tracing enabled and no explicit endpoint or bundled collector, the gateway and workers automatically export OTLP gRPC spans to the namespace-qualified Tempo Service on port 4317. The Tempo query API is exposed on port 3200, and the chart renders a Grafana Tempo datasource ConfigMap for the already-enabled Grafana datasource sidecar. Namespace-qualified DNS keeps this working when global.namespace differs from the Helm namespace:
observability:
tracing:
enabled: true # required for gateway/worker span emission
tempo:
install: true # installs Tempo and defaults pods to its OTLP Service
kube-prometheus-stack:
install: true # required for bundled Grafana to pick up the datasource
Installing Tempo without observability.tracing.enabled=true is allowed; it
creates an idle backend and, when bundled Grafana is installed, a datasource.
Installing both the bundled collector and bundled Tempo points pods at the
collector and makes the collector forward to Tempo's namespace-qualified OTLP
Service unless observability.otel.collector.traces.endpoint is set. A direct
observability.otel.endpoint is valid only without the bundled collector. The
downstream trace endpoint must not name this release's own OTel collector
Service; the chart rejects that export loop.
The SIE Tracing dashboard renders with the standard dashboards gate (dashboards.enabled=true or kube-prometheus-stack.install=true). Its Tempo panels require a Grafana datasource with uid: tempo; the chart auto-provisions that datasource only when both observability.tracing.tempo.install=true and kube-prometheus-stack.install=true. External Grafana installs, or bundled Grafana pointed at an external Tempo through an OTel endpoint, must provision the datasource themselves or the trace panels will report "datasource not found".
Bundled Tempo enables a persistent volume (~10Gi) and requires a default StorageClass in the target cluster; otherwise the Tempo pod will not schedule. The upstream chart also exposes unused legacy receiver Service ports (9411, 55680, 55681) even though SIE only configures OTLP gRPC ingest on 4317 and the query API on 3200.
Tunables: observability.tracing.sampler / samplerArg (sampling), and
observability.otel.serviceName.{gateway,config,worker,workerSidecar} for the
canonical cross-signal service.name. Defaults are sie-gateway, sie-config,
sie-worker, and sie-worker-sidecar; the collector's allowlist is built
around those identities. When tracing is enabled, configure
observability.otel.endpoint, install/require the bundled collector, or install
Tempo, otherwise the chart fails fast.
Local / non-Helm note: the gateway, Python worker, and Rust worker-sidecar all require SIE_TRACING_ENABLED=true and an OTLP endpoint (OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, or OTEL_EXPORTER_OTLP_ENDPOINT) before exporting traces. Setting only one yields no traces rather than a partial trace. In-cluster, the Helm chart sets both for you.
Experimental threshold routing
gateway.thresholdRouting.enabled defaults to false. Enabling it creates a
separate authenticated control broker and admits generation/extraction model
configs with routing.policy: threshold. It requires sie-config with config.configStore.enabled: true, authenticated
NATS and worker sidecars. Apply a configuration mutation through sie-config so
its persisted epoch is nonzero; gateways wait for a complete export bootstrap
before acquiring coordination authority. The chart propagates the same opt-in to configuration
validation and queue workers. Only the gateway password is mounted into the
control broker, and its NetworkPolicy permits only gateway client traffic.
The shipped control broker has one replica and ephemeral memory streams. Gateway replicas share counts and one elected sampler; a control-broker restart rebuilds evidence while requests retain ordinary local/fallback behavior. If config-store recovery rewinds the epoch, restart the isolated threshold broker after all gateways have applied the recovered export. This discards the old generation and rebuilds evidence; never reset the inference broker for this. This flag does not enable managed Cloud or numerical hybrid routing. See the remote-backend guide for the policy, limits and caller controls.