Values reference
values.yaml at the chart root carries machine-readable defaults only — no inline comments. This page is the annotated reference: a topical index of every top-level key grouped by feature, with cross-links to the relevant ADR and example folder, plus a cross-cutting rules cheatsheet for behaviours that span multiple keys.
For the schema’s machine-checkable shape, see 02-schema.md. For supported Kubernetes / CRD versions, see 03-compatibility.md. For a complete working example with every chart feature enabled (passes helm template), see values.yaml.example at the chart root.
Topical index
| Topic | Top-level keys | Read more |
|---|---|---|
| Identity & metadata | commonLabels, commonAnnotations, labels.standard, nameOverride, fullnameOverride, naming.omitWorkloadSuffix | ADR 011 · ADR 021 |
| Environment & config | global.env, env, envSecrets, envConfigMaps, configMaps, podAnnotations, jobPodAnnotations | ADR 003 · ADR 015 |
| Image & pulls | image, imagePullSecrets, jobCompletionImage | 02-examples/01-minimal/ |
| Deployments / StatefulSets | deployments, statefulSets, strategy, statefulSetUpdateStrategy, revisionHistoryLimit, progressDeadlineSeconds, minReadySeconds | ADR 002 · 02-examples/03-statefulset-pvc/ |
| Per-pod containers | per-workload initContainers, sidecars | ADR 002 · ADR 014 · 02-examples/10-init-containers/ |
| Job groups | jobGroups | ADR 005 · ADR 012 · 02-examples/05-cronjobs/ |
| Networking — Ingress | ingress (hosts, tls as native k8s list, defaultBackend), ingresses | ADR 009 · 02-examples/02-web-app-ingress/ |
| Networking — Gateway API | httpRoute, httpRoutes, grpcRoute, grpcRoutes, tlsRoute, tlsRoutes, referenceGrant, referenceGrants | ADR 009 · 02-examples/04-gateway-api/ |
| Autoscaling | per-workload hpa, keda (incl. keda.http), verticalPodAutoscaler, integrations.keda.httpAddon | ADR 007 · 02-examples/08-keda-event-driven/ |
| Monitoring | integrations.monitoring.defaults, per-workload metrics, auto-exposed metrics port | ADR 008 · ADR 016 · 02-examples/06-monitoring/ |
| Secrets (ESO) | integrations.eso.enabled, integrations.eso.secretStores, integrations.eso.externalSecrets | ADR 015 · 02-examples/07-external-secrets/ |
| Identity & RBAC | serviceAccount (create defaults to true), rbac (enabled, clusterScoped, rules), automountServiceAccountToken | 02-examples/07-external-secrets/ |
| Pod-level policies | podSecurityContext, securityContext, resources (root-level defaults: cpu: 10m, memory: 32Mi), terminationGracePeriodSeconds, podDisruptionBudget, topologySpreadConstraints (native k8s list), priorityClassName, nodeSelector, affinity, tolerations, hostAliases | — |
| Volumes | volumes, volumeMounts (root-level maps; per-workload override) | ADR 004 |
| Argo CD integrations | integrations.argocd.syncWaves, integrations.argocd.imageUpdater | ADR 010 |
| Stakater Reloader | integrations.stakater.reloader | ADR 017 |
For a working configuration in each area, follow the example links above. For the full value shape, see values.schema.json.
Cross-cutting rules
The behaviours below span multiple keys; reading the values.yaml comment on any single one doesn’t tell you the whole story.
Environment variable merge order
For each container, env is composed in this order (later layers win on key collision; non-colliding keys union):
NAMESPACE (fieldRef) → global.env → env → workload.env → container.env
Per-workload opt-out: inherit.env.{global,root}: false (skip env layers), inherit.envSecrets: false (exclude root envSecrets from envFrom), inherit.configMaps: false (skip root envConfigMaps). See ADR 003.
Label precedence on workload resources
app.kubernetes.io/nameandapp.kubernetes.io/instanceare always emitted on workload selectors and pod template labels, regardless of any toggle. The Kubernetes API forbids selector mutation; the chart guarantees they’re present.commonLabelscannot shadow chart-managedapp.kubernetes.io/*keys — chart values silently win.labels.standard.{partOf,version,managedBy,enabled}toggles affect singletons (ServiceAccount, Ingress, Routes, etc.) but not workload selectors.
See ADR 011.
Labels and annotations on generated resources
These keys take labels and annotations for the resources rendered from them:
| Key | Resources |
|---|---|
configMaps.<key> | its ConfigMap |
integrations.eso.secretStores.<key> | its SecretStore / ClusterSecretStore |
integrations.eso.externalSecrets.<key> | its ExternalSecret |
integrations.argocd.imageUpdater | the ImageUpdater (annotations and labels) |
deployments.<name>.metrics, statefulSets.<name>.metrics | the workload’s ServiceMonitor, PodMonitor, VMServiceScrape or VMPodScrape |
deployments.<name>.keda, statefulSets.<name>.keda | the workload’s ScaledObject and, with keda.http, its InterceptorRoute |
Labels resolve as commonLabels → the key’s labels → chart-managed app.kubernetes.io/*, last wins, so a chart-managed key cannot be shadowed. Annotations resolve as commonAnnotations → Reloader → sync-wave → the key’s annotations, last wins.
metrics.labels and keda.labels are fields of their blocks like any other: writing either one defines the block, which turns metrics or KEDA on for that workload unless the block also sets enabled: false.
deployments:
web:
metrics:
labels:
release: kube-prometheus-stack
configMaps:
app-config:
labels:
config-kind: logging
data: { ... }
Port ordering inside Service / pod template
When a workload’s service.ports (or per-container ports) is iterated:
http (if present) → others alphabetically → metrics (if present)
Auto-injected metrics port (from integrations.monitoring.defaults.exposeService) lands last. See ADR 014 and ADR 016.
The single-port service form
A workload’s Service takes ports either as the service.ports.<name> map or as the shorthand pair service.port / service.targetPort. In the shorthand, each side falls back to the other, in the Service and in the container spec alike:
service:
enabled: true
port: 80 # container listens on 80 as well
service:
enabled: true
port: 80
targetPort: 8080 # container listens on 8080
The map form falls back the same way: service.ports.<name>.port alone is enough, and the container port follows it. An entry with neither key has nothing to fall back to and fails the render:
service.ports for workload "web": port "http" declares neither port nor
targetPort. Set port, or a numeric targetPort for it to fall back to.
The fallback runs one way only. spec.ports[].port is a number, so an entry that names its targetPort has to declare port itself:
service.ports for workload "web": port "grpc" names its targetPort "grpc"
and declares no port. A Service port is a number and cannot fall back to a
name, so set port explicitly.
An enabled Service with neither form, and no metrics port injected by integrations.monitoring.defaults.exposeService, fails the render. A client-facing Service has nothing sensible to default to, unlike headlessService, which falls back to port 80 because a StatefulSet needs its governing Service to exist at all. The exception is type: ExternalName, which resolves to a DNS name, carries no virtual IP and so needs no ports; a portless one renders without a ports block, and any ports it does declare are still passed through.
Named targetPort and the workload ports map
A Service targetPort may name a port instead of numbering it. containerPort is an integer, so the chart derives container ports from numeric targets only: a named targetPort is passed through to the Service as written and adds nothing to the container spec. Kubernetes resolves the name against whichever container in the Pod declares it.
Declare the port on the container that serves it. A workload’s own ports map replaces the Service-derived container ports entirely, which leaves the Service free to refer to the port by name:
deployments:
web:
ports:
grpc:
containerPort: 9000
service:
enabled: true
ports:
grpc:
port: 9000
targetPort: grpc
A sidecar can serve it as well. A Service port whose targetPort names a port one of the workload’s sidecars declares belongs to that sidecar’s container, and the main container leaves it out:
deployments:
web:
service:
ports:
http:
port: 80
targetPort: 8080 # containerPort on the web container
proxy:
port: 9000
targetPort: envoy-admin
sidecars:
envoy:
image:
repository: envoyproxy/envoy
tag: v1.31-latest
ports:
envoy-admin:
containerPort: 9901 # the port the Service name resolves to
The chart does not check that some container declares the name. A container added by an admission webhook — a service-mesh proxy, for one — declares ports no values key describes, and a Service may target those by name:
deployments:
web:
ports:
http:
containerPort: 8080
service:
ports:
http:
port: 80
targetPort: http
envoy-prom:
port: 15090
targetPort: http-envoy-prom # declared by the injected proxy
A name nothing in the Pod declares leaves that Service port without endpoints, so a typo shows up as an empty kubectl get endpointslices rather than as a render error.
Service port appProtocol
Both Service port shapes accept an optional appProtocol — the single-port service.port/service.targetPort form and the service.ports.<name> map form (and their headlessService equivalents on StatefulSets). It passes straight through to spec.ports[].appProtocol, the native Kubernetes Service field.
Set it when a port speaks something other than plain HTTP/1.1 and the consumer needs to know — most commonly kubernetes.io/h2c on a gRPC port, so a Gateway API implementation routing a GRPCRoute to that Service configures the upstream connection as HTTP/2 cleartext instead of assuming HTTP/1.1:
service:
ports:
grpc:
port: 9000
targetPort: 9000
appProtocol: kubernetes.io/h2c
Dropping the workload suffix from names
Every per-workload resource is named <fullname>-<workloadName>, and the workload name also lands in app.kubernetes.io/name while app.kubernetes.io/instance carries the full construction. A release that runs one workload can drop that suffix:
naming:
omitWorkloadSuffix: true # default: false
With it on, a release named myrel renders myrel-universal-helm-chart for the Deployment, the Service, the HPA, the PDB, the VPA, the ScaledObject and the NetworkPolicy, and keeps the usual trailing parts elsewhere: -headless, -metrics, -config. Labels and selectors follow: app.kubernetes.io/name becomes the chart name (nameOverride when set) and app.kubernetes.io/instance becomes <fullname>.
Note that <fullname> is not what singleton resources carry. uhc.labels puts app.kubernetes.io/instance: <release name> on the ServiceAccount, Ingress and Routes, and that stays as it is. So a release myrel gives the Deployment instance: myrel-universal-helm-chart and the ServiceAccount instance: myrel. A kubectl -l selector, or an external ServiceMonitor, has to pick the one it means.
Three things stay where they are.
Container names keep the workload key, so kubectl logs -c api still works and KEDA’s envSourceContainerName still resolves.
jobGroups keep both their names and their labels. The names are built from the group and job keys and never carried a workload suffix; the labels stay on <groupName>-<jobName> / <fullname>-<groupName>-<jobName> because a release can hold any number of job groups next to its one workload. Collapsing them would file every Job pod under the workload’s own selector, and the workload’s Service, NetworkPolicy and PDB would then pick up job pods.
ESO SecretStore and ExternalSecret entries keep their own keys in labels for the same reason.
The flag expects exactly one enabled entry across deployments and statefulSets. With more than one, helm template fails and names the offenders rather than collapsing them onto the same resource names:
naming.omitWorkloadSuffix expects exactly one enabled workload, found 2
(deployments.api, deployments.worker).
Turning the flag on or off for a release that already exists renames its workload and changes an immutable selector, so the Deployment or StatefulSet is replaced rather than updated. Decide before the first install. See ADR 021.
Service naming
A workload’s Service is named <fullname>-<workloadName>. service.nameOverride replaces that name:
deployments:
frontend:
service:
enabled: true
nameOverride: frontend-web
The override covers the Service object and every chart-rendered reference that defaults to it — Gateway API backendRefs in httpRoute / grpcRoute / tlsRoute rules that carry no explicit serviceName. Labels and selectors are untouched: app.kubernetes.io/name and app.kubernetes.io/instance keep the workload’s own values, so the Service still selects the same pods. The metrics-only Service rendered for a workload that has no Service of its own keeps its <fullname>-<workloadName>-metrics name.
On a StatefulSet the governing headless Service has its own key, headlessService.nameOverride, and spec.serviceName follows it. With headlessService.enabled: false that key is required and names the externally managed Service providing stable per-pod DNS. statefulSets.<name>.serviceName is the older spelling of the same value and still works; headlessService.nameOverride wins when both are set.
Either override is checked against the 63-character ceiling the chart applies to every constructed name, and against the other Services in the release. Two workloads resolving to one Service name, or a StatefulSet whose client and headless Services land on the same name, fail the render:
Service name "shared-svc" is claimed by both deployments.a.service
and deployments.b.service.
headlessService.enabled: false is the one case allowed to look like a collision, because the name usually belongs to a Service outside the release. The one name inside it that also works is the workload’s own client Service with clusterIP: None, which is headless and already selects these pods. Anything else the chart renders leaves spec.serviceName on a Service that never provides per-pod DNS, and the render fails:
statefulSets.db.headlessService is disabled, so spec.serviceName points at
"shared" — but that name belongs to statefulSets.db.service, a Service this
chart renders itself.
jobGroups group → job merge
For each per-job field:
- maps (env, podAnnotations, metadataAnnotations) — replace per key; later wins.
- lists (envSecrets, envConfigMaps, tolerations) — concat.
- topologySpreadConstraints — the job list replaces the group list, and either replaces the root list. Kubernetes rejects two constraints with the same
topologyKeyandwhenUnsatisfiable, so the lists are never concatenated.topologySpreadConstraints: []on a group or job opts out. - volumes / volumeMounts — replace by name (a volume can’t be partially
emptyDirand partiallyconfigMap).
hashSuffix: true together with a delete-policy that removes the Job after success is rejected fail-fast — the Job would re-run on every sync. See ADR 005 and ADR 012.
HTTPRoute rule fields (name, timeouts, retry, sessionPersistence)
Every HTTPRoute rule (in httpRoute.rules, httpRoutes.<n>.rules, and per-workload deployments.<w>.httpRoute.rules / statefulSets.<w>.httpRoute.rules) accepts four optional field groups beyond matches, filters, and backendRefs:
| Field | Type | Description |
|---|---|---|
name | string (SectionName: lowercase RFC 1123 label, optionally dotted, max 253 chars) | Identifies the rule. Surfaced in Gateway API status conditions, access logs, and distributed traces. MUST be unique within the route. |
timeouts.request | string (Gateway API Duration, GEP-2257) | Total time budget for the complete HTTP request/response cycle, measured from when the gateway forwards the request. "0s" disables the timeout. Example: "30s". |
timeouts.backendRequest | string (Gateway API Duration) | Time budget for the backend to process the request. Must be ≤ timeouts.request. Example: "10s". |
retry.attempts | integer (≥ 0) | Maximum number of retry attempts. |
retry.codes | array of integer (400–599) | HTTP status codes that trigger a retry (e.g. [503, 504]). Implementations MUST support 500/502/503/504 as retriable. |
retry.backoff | string (Gateway API Duration) | Minimum wait between retry attempts. Example: "1s". |
sessionPersistence.sessionName | string (1–128 chars) | Identifier the implementation uses for the persistence value (cookie name or header name, depending on type). |
sessionPersistence.type | enum: Cookie | Header | Persistence mechanism. Defaults to Cookie server-side when omitted. |
sessionPersistence.absoluteTimeout | string (Gateway API Duration) | Maximum lifetime of the session, regardless of activity. Example: "1h". |
sessionPersistence.idleTimeout | string (Gateway API Duration) | Maximum idle time before the session expires. Example: "10m". |
sessionPersistence.cookieConfig.lifetimeType | enum: Permanent | Session | Cookie lifetime style (relevant only when type: Cookie). |
All four field groups are optional and independently combinable — you can set timeouts without retry, or name without either. Fields absent from a rule are omitted from the rendered manifest; they do not inherit from sibling rules or the route root.
Schema strictness. Each rule entry is validated against a strict schema (
additionalProperties: false) listing only the fields above plusmatches,filters,backendRefs,serviceName, andservicePort. Unknown keys (typos, deprecated fields, or Gateway API fields not yet wired into the chart) fail athelm templatetime with a clear validation error rather than being silently dropped. If you depend on a Gateway API HTTPRouteRule field not in this list, open an issue or submit a PR — see ADR 009.
Redirect rules
Gateway API rejects a rule that has a RequestRedirect filter and any backendRefs. Such a rule renders without backendRefs: the default backend is not filled in, and backendRefs: [] stays empty. A redirect rule that names a backend itself, through backendRefs, serviceName or servicePort, fails the render:
httpRoute.rules[0]: a RequestRedirect filter cannot be combined with backendRefs, serviceName or servicePort; Gateway API rejects the rule. Remove the backend from this rule.
httpRoutes:
http-to-https:
parentRefs:
- name: public-gw
sectionName: http
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
GRPCRoute has no redirect filter and TLSRoute no filters, so their rules always get a backend.
Gateway API channel and version requirements
The chart’s CRD-channel detection runs at template time when gateway.networking.k8s.io/v1 is present in Capabilities.APIVersions and emits a fail-fast error if the field’s required CRD channel is missing. Detection is skipped when rendering offline (helm template without --api-versions).
| Field | Minimum Gateway API | Channel | Detection marker |
|---|---|---|---|
name | v1.4.0 (Standard) or v1.2.0+ (Experimental) | Standard since v1.4.0; Experimental from v1.2 to v1.3 | gateway.networking.k8s.io/v1/BackendTLSPolicy (Standard, graduated in v1.4.0) or gateway.networking.k8s.io/v1alpha2/TCPRoute (Experimental) |
timeouts.* | v1.2.0 | Standard | none — implied by gateway.networking.k8s.io/v1 |
retry.* | v1.2.0 | Experimental only (still Experimental as of v1.5.1) | gateway.networking.k8s.io/v1alpha2/TCPRoute (Experimental) |
sessionPersistence.* | v1.2.0 | Experimental only (still Experimental as of v1.5.1) | gateway.networking.k8s.io/v1alpha2/TCPRoute (Experimental) |
If your cluster runs Standard channel CRDs older than v1.4 and you need name, you must install the Experimental channel; if you need retry or sessionPersistence at all, you must install the Experimental channel — Standard CRDs reject those fields.
See the 04-gateway-api example for a working configuration and Gateway API’s release channels for installation guidance.
GRPCRoute rule fields (name, sessionPersistence)
Every GRPCRoute rule (in grpcRoute.rules, grpcRoutes.<n>.rules, and per-workload deployments.<w>.grpcRoute.rules / statefulSets.<w>.grpcRoute.rules) accepts two optional field groups beyond matches, filters, and backendRefs:
| Field | Type | Description |
|---|---|---|
name | string (SectionName: lowercase RFC 1123 label, optionally dotted, max 253 chars) | Identifies the rule. Surfaced in Gateway API status conditions and traces. MUST be unique within the route. |
sessionPersistence.sessionName | string (1–128 chars) | Identifier the implementation uses for the persistence value (cookie name or header name, depending on type). |
sessionPersistence.type | enum: Cookie | Header | Persistence mechanism. Defaults to Cookie server-side when omitted. |
sessionPersistence.absoluteTimeout | string (Gateway API Duration) | Maximum lifetime of the session, regardless of activity. Example: "1h". |
sessionPersistence.idleTimeout | string (Gateway API Duration) | Maximum idle time before the session expires. Example: "10m". |
sessionPersistence.cookieConfig.lifetimeType | enum: Permanent | Session | Cookie lifetime style (relevant only when type: Cookie). |
Both groups are independently optional. GRPCRouteRule has no timeouts or retry — those are HTTPRoute-only fields in the Gateway API spec.
Schema strictness. Each rule entry is validated against a strict schema (
additionalProperties: false) listing onlyname,matches,filters,backendRefs,serviceName,servicePort, andsessionPersistence. Unknown keys fail athelm templatetime.
Gateway API channel and version requirements
| Field | Minimum Gateway API | Channel | Detection marker |
|---|---|---|---|
name | v1.4.0 (Standard) or v1.2.0+ (Experimental) | Standard since v1.4.0; Experimental from v1.2 to v1.3 | gateway.networking.k8s.io/v1/BackendTLSPolicy (Standard, graduated in v1.4.0) or gateway.networking.k8s.io/v1alpha2/TCPRoute (Experimental) |
sessionPersistence.* | v1.2.0 | Experimental only (still Experimental as of v1.5.1) | gateway.networking.k8s.io/v1alpha2/TCPRoute (Experimental) |
The chart fails fast at helm template time when gateway.networking.k8s.io/v1 is present but the required channel marker is not. Detection is skipped offline (helm template without --api-versions).
TLSRoute rule fields (name)
Every TLSRoute rule (in tlsRoute.rules, tlsRoutes.<n>.rules, and per-workload deployments.<w>.tlsRoute.rules / statefulSets.<w>.tlsRoute.rules) accepts one optional field beyond backendRefs:
| Field | Type | Description |
|---|---|---|
name | string (SectionName: lowercase RFC 1123 label, optionally dotted, max 253 chars) | Identifies the rule. MUST be unique within the route. |
TLSRouteRule has no matches, filters, timeouts, retry, or sessionPersistence — TLS is L4 passthrough; the spec defines only name and backendRefs.
Schema strictness. Each rule entry is validated against a strict schema (
additionalProperties: false) listing onlyname,backendRefs,serviceName, andservicePort. Unknown keys fail athelm templatetime.
TLSRoute itself is in the Gateway API Experimental channel (gateway.networking.k8s.io/v1alpha2), so any use of TLSRoute already presupposes Experimental CRDs — name adds no further channel requirement beyond TLSRoute itself.
Autoscaler mutual exclusion
hpa.enabled: trueandkeda.enabled: trueon the same workload is fail-fast. Both managespec.replicas; both running is undefined behaviour.verticalPodAutoscaleris orthogonal to both (touchesresources.requests, notreplicas).- When any HPA-class scaler is on,
spec.replicasis omitted from the rendered manifest so Helm doesn’t bounce the count on every apply.
See ADR 007.
KEDA advanced pass-through
keda.advanced goes into the ScaledObject’s spec.advanced verbatim. The chart checks that it is an object and stops there, so restoreToOriginalReplicaCount, horizontalPodAutoscalerConfig (name, behavior) and scalingModifiers all work, and so does anything KEDA adds later without a chart release in between.
deployments:
worker:
keda:
enabled: true
maxReplicas: 20
triggers:
- type: kafka
metadata: {...}
advanced:
restoreToOriginalReplicaCount: true
horizontalPodAutoscalerConfig:
behavior:
scaleUp:
stabilizationWindowSeconds: 60
policies:
- type: Pods
value: 1
periodSeconds: 60
behavior is the Kubernetes HPA scaling-behavior shape, applied to the HPA that KEDA creates. It is worth setting on a lag-driven trigger: the HPA default doubles the replica count every 15 seconds, which overshoots on a queue that drains quickly. The example above adds one pod a minute instead.
Because nothing here is validated field by field, a typo inside advanced reaches the cluster and is rejected by the KEDA CRD rather than by helm template. Check the field names against the ScaledObject spec for the KEDA version you run.
KEDA HTTP add-on (keda.http)
keda.http scales a Deployment or StatefulSet on HTTP traffic, down to zero, through the KEDA HTTP add-on (v0.14.0 or later, which serves InterceptorRoute). The add-on runs an interceptor in front of the workload: it counts requests, holds the first one while KEDA starts a pod, and forwards to the pod once it is ready.
deployments:
web:
service:
ports:
http:
targetPort: 8080
keda:
maxReplicas: 10
http:
enabled: true
Callers keep using the workload’s Service name. The chart renders:
| Object | Shape |
|---|---|
Service <svc> | ExternalName for the interceptor Service, so in-cluster callers and Ingress backends reach the interceptor under the name they already use. |
Service <svc>-origin | The Service built from service, selecting the pods. The interceptor forwards here, and the metrics port and prometheus.io/* annotations stay here. |
Service <svc>-<portName> | One ClusterIP Service for each port listed in keda.http.directPorts, selecting the pods. See Ports past the interceptor. |
InterceptorRoute <fullname>-<workload> | target is the origin Service’s http port. hosts hold <svc>, <svc>.<ns>, <svc>.<ns>.svc, <svc>.<ns>.svc.<clusterDomain>, the root httpRoute.hostnames when the workload has an httpRoute, the hosts of every Ingress path that names <svc>, and keda.http.hosts. |
InterceptorRoute <fullname>-<workload>-<portName> | One for each keda.http.routes entry: the same hosts, the entry’s paths, and the origin Service’s port of that name as target. See Ports through the interceptor. |
ScaledObject | An external-push trigger for the workload’s route goes first in triggers, then one for each routes entry in name order; declared triggers follow. minReplicaCount defaults to 0. |
| HTTPRoute rules of the workload | Rules without serviceName or backendRefs point at the interceptor Service in the add-on namespace, or at <svc>-<portName> when their servicePort is the port of a directPorts entry. A rule whose servicePort is the port of a routes entry also points at the interceptor, on the interceptor port. |
| NetworkPolicy of the workload | An ingress rule admitting the interceptor pods (app.kubernetes.io/component: interceptor, app.kubernetes.io/name: http-add-on) from the add-on namespace, whenever the policy covers Ingress. |
keda.http takes these optional fields:
| Field | Default | Meaning |
|---|---|---|
hosts | [] | Extra host names for the route, evaluated through tpl. |
directPorts | [] | Names of service.ports entries served past the interceptor, each from a Service of its own. |
routes | {} | service.ports entries reached through the interceptor by path, keyed by port name. Each takes paths (required), and scalingMetric, coldStart and timeouts like the fields above. |
scalingMetric | {concurrency: {targetValue: 100}} | InterceptorRoute.spec.scalingMetric: concurrency and/or requestRate. |
coldStart | — | InterceptorRoute.spec.coldStart, passed through. |
timeouts | — | InterceptorRoute.spec.timeouts, passed through. |
Where the add-on runs is set once per release under integrations.keda.httpAddon:
| Field | Default | Meaning |
|---|---|---|
namespace | keda | Namespace of the add-on. |
interceptorService | keda-add-ons-http-interceptor-proxy | Interceptor Service the ExternalName and HTTPRoute rules point at. |
port | 8080 | Port of that Service. It is also the port of the workload Service’s http entry. |
scalerAddress | keda-add-ons-http-external-scaler.<namespace>:9090 | scalerAddress of the external-push trigger. |
clusterDomain | cluster.local | Domain of the fully qualified host and of the ExternalName target. |
The client port
An ExternalName is a DNS alias and cannot remap ports, so callers connect to the interceptor Service on the port they use for <svc>. The http port of a keda.http workload is therefore integrations.keda.httpAddon.port: left unset, it takes that value; set to anything else, the render fails. The interceptor itself listens on the port its own chart sets (interceptor.proxy.port, 8080). For callers that stay on port 80, the platform adds a Service in the add-on namespace that serves the interceptor pods on 80, and the release points at it:
# Platform, once per cluster, in the add-on namespace
apiVersion: v1
kind: Service
metadata:
name: keda-add-ons-http-interceptor-proxy-80
namespace: keda
spec:
selector:
app.kubernetes.io/component: interceptor
app.kubernetes.io/name: http-add-on
ports:
- name: proxy
port: 80
targetPort: proxy
# Release
integrations:
keda:
httpAddon:
interceptorService: keda-add-ons-http-interceptor-proxy-80
port: 80
An HTTPRoute in the application namespace references the interceptor Service across namespaces, which needs a ReferenceGrant in the add-on namespace. The chart does not render it; the platform owns it.
Ports past the interceptor
The interceptor serves one HTTP port, so a workload with other ports on its Service lists them in directPorts. Each one leaves <svc> and gets a ClusterIP Service <svc>-<portName> that selects the pods directly:
deployments:
web:
service:
ports:
http:
targetPort: 8080
events:
port: 9000
keda:
http:
enabled: true
directPorts: [events]
renders <svc> (ExternalName, http), <svc>-origin (http) and <svc>-events (events, port 9000). Callers of the port, Ingress paths included, use <svc>-events. A workload httpRoute rule with servicePort: 9000 and no backend of its own is sent there by the chart. With keda.http off, directPorts is ignored and the port stays on <svc>.
The Service of a direct port carries the port’s protocol and appProtocol and none of the service annotations or other service fields. metrics cannot be listed; it stays on <svc>-origin and is never added to a route.
Traffic on a direct port does not pass the interceptor: it is not counted toward scalingMetric, and it does not start a workload scaled to zero. A port whose callers arrive only while the HTTP side keeps a pod running fits; a port that has to wake the workload by itself does not, unless keda.minReplicas is at least 1. The workload’s NetworkPolicy admits the interceptor only, so a policy that covers Ingress needs its own rule for the callers of a direct port.
Ports through the interceptor
A port listed under routes stays on <svc>-origin and gets an InterceptorRoute of its own. The interceptor listens on one port and picks a route by host and longest matching path across all routes, so requests to the entry’s paths go to that port, and everything else to http:
deployments:
web:
service:
ports:
http:
targetPort: 8080
stream:
port: 9100
keda:
http:
enabled: true
routes:
stream:
paths: [/stream]
scalingMetric:
concurrency:
targetValue: 1000
Callers keep using <svc> on the interceptor port: http://<svc>/stream/... reaches port 9100 of the pods, and http://<svc>/ reaches http. Ingress paths do the same with servicePort set to the interceptor port. A workload httpRoute rule may say servicePort: 9100; the chart points it at the interceptor, and every path it matches has to lie under the entry’s paths.
Each route adds its own external-push trigger, so a request on a routed path counts toward scaling and starts a workload scaled to zero. The interceptor counts a request from its start to its end, and a WebSocket or long-poll request stays open for minutes: give its route a scalingMetric sized for open connections, or a few hundred idle clients look like a burst of load. While any such connection is open, the workload does not scale to zero. A long-poll route may also need timeouts.responseHeader above its poll interval.
With keda.http off, routes is ignored and the port stays on <svc>.
What the render rejects
Every port of <svc> resolves to the interceptor, which serves one HTTP port. With keda.http on, the render fails when:
- the workload renders no Service, or its
service.typeis notClusterIP, orservice.clusterIPisNone; service.portshas nohttpentry, or has entries other thanhttp,metricsand those listed indirectPortsorroutes;directPortslistshttp,metricsor a nameservice.portsdoes not declare, or a listed port uses the interceptor port;routesnameshttp,metrics, adirectPortsentry or a nameservice.portsdoes not declare, lists one path under two entries, or names a port that uses the interceptor port;- a workload HTTPRoute rule on the port of a
routesentry matches a path outside that entry’spaths, or by regular expression; - an InterceptorRoute name of a
routesentry is also the route name of another workload; - the
httpport is set and differs fromintegrations.keda.httpAddon.port; - the workload has a
grpcRouteortlsRoute; - one of the workload’s HTTPRoute rules sends to the interceptor with a
servicePortother than the interceptor port; - an Ingress path names
<svc>with aservicePortother than the interceptor port; for the port of adirectPortsentry, the message names the Service to use instead, and for the port of aroutesentry, the interceptor port; - the cluster serves
keda.sh/v1alpha1withouthttp.keda.sh/v1beta1.
Limits
- Ingress backends reach the interceptor through the ExternalName, so the Ingress controller has to support ExternalName Services (ingress-nginx does; Traefik needs
allowExternalNameServices). - Only the workload’s own
httpRouterules are redirected. A rule in the roothttpRoute.rulesor inhttpRoutesthat names<svc>keeps pointing at the ExternalName, which most Gateway implementations reject; point those at the interceptor Service explicitly. - Turning
keda.httpon or off changes the live<svc>betweenClusterIPandExternalName. The cluster IP is released on the way to ExternalName and a new one is allocated on the way back. Until cached DNS answers expire, callers keep reaching the previous target: afterkeda.httpis turned off, a request that still resolves to the interceptor finds no route and is held until it times out. syncWaves.interceptorRoute(default20) applies to the InterceptorRoute and to the ExternalName Service, so callers are switched over together with the route and before the ScaledObject (21).
Scheduling field inheritance
tolerations, affinity, nodeSelector and topologySpreadConstraints all follow the same rule: if the workload defines the field, it replaces the root value entirely. If the workload omits the field, the root value is inherited. To disable root inheritance without providing a replacement, set the field to an empty value (tolerations: [], affinity: {}, topologySpreadConstraints: []).
Topology spread constraint fields
Each entry of topologySpreadConstraints (root, deployments.<name>, statefulSets.<name>, jobGroups.<group> and jobGroups.<group>.jobs.<job>) accepts the Kubernetes fields below and nothing else; an unknown key fails schema validation.
| Field | Required | Notes |
|---|---|---|
maxSkew | yes | Integer, 1 or more. |
topologyKey | yes | Node label key. |
whenUnsatisfiable | yes | DoNotSchedule or ScheduleAnyway. |
labelSelector | no | Defaults to the workload’s selector labels when omitted or empty. |
matchLabelKeys | no | List of pod label keys, e.g. pod-template-hash to spread each Deployment revision on its own. |
minDomains | no | Integer, 1 or more. Kubernetes accepts it only with whenUnsatisfiable: DoNotSchedule, and so does the schema. |
nodeAffinityPolicy | no | Honor or Ignore. Kubernetes treats an unset value as Honor. |
nodeTaintsPolicy | no | Honor or Ignore. Kubernetes treats an unset value as Ignore, so domains made only of tainted nodes still count toward the skew. |
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
minDomains: 3
nodeTaintsPolicy: Honor
matchLabelKeys:
- pod-template-hash
PodDisruptionBudget: minAvailable vs maxUnavailable
A PodDisruptionBudget takes one of the two. A workload-level podDisruptionBudget block replaces the root block as a whole, so it carries only what it states: setting both there fails with podDisruptionBudget for workload "<name>": cannot set both minAvailable and maxUnavailable, and a block with neither renders maxUnavailable: 1.
The root block always contains the chart default minAvailable: 1. A root maxUnavailable takes precedence over minAvailable, whether that is the default or a value you set:
podDisruptionBudget:
enabled: true
maxUnavailable: 1 # rendered; minAvailable is ignored
maxUnavailable: 0 and minAvailable: "100%" allow no voluntary evictions: kubectl drain and node autoscalers wait on those pods until the budget changes. The same holds for minAvailable: 1 on a single-replica workload.
Init containers and sidecars share one container shape
deployments.<name>.initContainers and deployments.<name>.sidecars (same under statefulSets.<name>) are maps keyed by container name. Both flow through the same renderer as the main container: image, command/args, env, envSecrets, volumeMounts, resources, securityContext, lifecycle. Both inherit the parent workload’s inherit.env / inherit.configMaps / inherit.configMapMount flags. Neither inherits root-level volumeMounts.<containerName> — declare local mounts inline. Render order is sortAlpha; for initContainers Kubernetes runs them sequentially in declared order, so prefix names with 01-, 02-, … when run order matters (same convention as jobGroups[*].tasks). Reloader does not re-trigger init containers — they run only on Pod creation, so a config change rolls the workload and a fresh init pass runs. Two exceptions for initContainers: probesEnabled / probe blocks (readinessProbe, livenessProbe, startupProbe) and lifecycle are rejected — Kubernetes does not allow these on standard init containers, so helm template fail-fasts if either is set on an init entry.
ConfigMap names
A workload with createConfigmap: true gets <fullname>-<workloadName>-config, and an entry in configMaps gets <fullname>-<key>. The two shapes meet whenever a key spells out the other’s suffix, so configMaps.web-config beside a workload named web lands both on one name, and under naming.omitWorkloadSuffix a key of just config is enough. That fails the render rather than producing two documents Kubernetes will refuse:
ConfigMap name "myrel-universal-helm-chart-web-config" is claimed by both
deployments.web.createConfigmap and configMaps.web-config.
The same check covers a deployments.<name> and a statefulSets.<name> sharing a key while both set createConfigmap. Disabled workloads and configMaps entries are ignored, since neither renders.
Chart-owned vs external name resolution
When the same name appears in both a chart-owned map (configMaps, integrations.eso.externalSecrets) and an external reference list (envConfigMaps, envSecrets):
- chart-owned wins: the rendered reference points at
<release-fullname>-<name>. - external is silently shadowed.
- having both with the same name is a smell — pick distinct names.
See ADR 015.
Where to go next
- Concrete configurations to copy →
02-examples/. - Why a specific shape was chosen →
05-adr/. - IDE-side schema validation →
02-schema.md. - Cluster / CRD requirements →
03-compatibility.md.