Override the release name used for resource naming and labels.
replicas
int
2
Number of pod replicas.
autoscaling
object
see values.yaml
Horizontal Pod Autoscaler settings. When enabled, the chart renders an HPA targeting the Deployment and the Deployment replicas field is omitted so the autoscaler owns the replica count.
autoscaling.enabled
bool
false
Enable HorizontalPodAutoscaler creation.
autoscaling.minReplicas
int
2
Lower bound for the number of pod replicas.
autoscaling.maxReplicas
int
5
Upper bound for the number of pod replicas.
autoscaling.targetCPUUtilizationPercentage
int
80
Average CPU utilization target percentage across pods. Set to null to disable CPU-based autoscaling.
autoscaling.targetMemoryUtilizationPercentage
string
null
Average memory utilization target percentage across pods. Set to null to disable memory-based autoscaling.
Number of old ReplicaSets to retain for Deployment rollback history.
imagePullSecrets
list
[]
Optional list of image pull secrets.
podLabels
object
{}
Extra labels to add to the pod.
podAnnotations
object
{}
Extra pod annotations.
nodeSelector
object
{}
Node selector labels for pod scheduling.
tolerations
list
[]
Pod tolerations for scheduling onto tainted nodes.
hostAliases
list
[]
Extra /etc/hosts entries for the pod, passed through as-is (list of ip + hostnames). Applies to all containers in the pod, including injected sidecars.
affinity
object
see values.yaml
Kubernetes affinity rules for pod scheduling. Defaults to preferred pod anti-affinity across nodes for replicas from the same release.
serviceAccount
object
see values.yaml
Service account settings.
serviceAccount.create
bool
false
Create a dedicated ServiceAccount.
serviceAccount.name
string
""
Existing ServiceAccount name to use (or generated when empty and create=true).
serviceAccount.annotations
object
{}
Annotations for the ServiceAccount.
serviceAccount.automountServiceAccountToken
bool
false
Mount the ServiceAccount token into pods.
podSecurityContext
object
see values.yaml
Security context applied to the pod (e.g. fsGroup, runAsUser, runAsGroup).
Runtime
Key
Type
Default
Description
image
object
see values.yaml
Container image settings.
image.repository
string
""
Container image repository (required).
image.tag
string
""
Container image tag. Required when image.digest is empty.
image.digest
string
""
Container image digest (recommended). Required when image.tag is empty. When both image.tag and image.digest are set, the rendered image is repository:tag@digest.
image.pullPolicy
string
IfNotPresent
Image pull policy.
command
list
[]
Optional container command override.
args
list
[]
Optional container args override.
env
list
[]
Environment variables for the container.
extraEnvs
list
[]
Additional environment variables appended after env. Useful for overlay values files to extend env without replacing shared base entries.
envFrom
list
[]
Environment variable sources (ConfigMapRef/SecretRef) for the container.
extraEnvFrom
list
[]
Additional environment variable sources appended after envFrom. Useful for overlay values files to extend envFrom without replacing shared base entries.
resources
object
{}
Container resource requests and limits.
livenessProbe
object
{}
Kubernetes liveness probe.
readinessProbe
object
{}
Kubernetes readiness probe.
startupProbe
object
{}
Kubernetes startup probe.
lifecycle
object
{}
Kubernetes lifecycle hooks for the application container (preStop, postStart).
terminationGracePeriodSeconds
int
null
Pod termination grace period in seconds. If empty, the Kubernetes default (30) is used. Must be longer than any preStop hook, or the container is killed before the hook finishes.
containerSecurityContext
object
see values.yaml
Security context applied to the application container.
Service
Key
Type
Default
Description
applicationPort
object
see values.yaml
Primary application port exposed by the container and Service.
applicationPort.name
string
http
Primary application port name.
applicationPort.port
int
8080
Primary application container port.
applicationPort.protocol
string
TCP
Primary application protocol.
additionalApplicationPorts
list
[]
Additional named application ports exposed on both container and Service. Each item supports name, port, and optional protocol.
servicePort
object
see values.yaml
Primary Service port exposed by the Service.
servicePort.name
string
null
Primary Service port name. If empty, falls back to applicationPort.name.
servicePort.port
string
null
Primary Service port number. If empty, defaults to applicationPort.port.
servicePort.protocol
string
null
Primary Service protocol. If empty, falls back to applicationPort.protocol.
additionalServicePorts
list
[]
Additional Service-only ports. Each item supports name, port, optional targetPort, and optional protocol. If targetPort is omitted, it defaults to the same value as port.
service
object
see values.yaml
Service settings for exposing the application.
service.type
string
ClusterIP
Kubernetes Service type.
service.annotations
object
{}
Annotations for the Service.
service.labels
object
see values.yaml
Labels for the Service.
service.labels."istio.io/use-waypoint"
string
"waypoint"
Route traffic through the Istio waypoint proxy for L7 policy enforcement.
service.labels."istio.io/ingress-use-waypoint"
string
"true"
Apply waypoint enforcement to ingress traffic only (not east-west mesh traffic).
Persistence
Key
Type
Default
Description
volumes
list
[]
Structured volume definitions. Each entry defines both the container mount and the pod volume source.
extraVolumes
list
[]
Additional structured volume definitions appended after volumes. Use to share common volumes in base values and extend per environment overlays.
Metrics
Key
Type
Default
Description
metrics
object
see values.yaml
Metrics settings for optional metrics port and ServiceMonitor.
metrics.enabled
bool
false
Enable metrics port exposure on container and Service. The metrics port name is always metrics when enabled.
metrics.port
string
null
Metrics port number. If empty, uses applicationPort.port.
metrics.path
string
/metrics
Metrics scrape path.
metrics.interval
string
30s
ServiceMonitor scrape interval.
metrics.labels
object
{}
Extra labels for the ServiceMonitor (when metrics.enabled=true and ServiceMonitor CRD is installed).
metrics.annotations
object
{}
Extra annotations for the ServiceMonitor (when metrics.enabled=true and ServiceMonitor CRD is installed).
Route
Key
Type
Default
Description
route
object
see values.yaml
Gateway API route settings.
route.enabled
bool
false
Enable Gateway API resources (HTTPRoute or TLSRoute, ListenerSet, and optional policies).
route.type
string
HTTPRoute
Route type. Supports HTTPRoute or TLSRoute.
route.exposeMetrics
bool
false
Expose the metrics path (metrics.path) via the HTTPRoute. Set to false to block external access to metrics. When false, a PathPrefix rule for metrics.path with no backends is prepended before the catch-all. Istio returns 404 for empty backendRefs: https://github.com/istio/istio/blob/2ca2c3cbf76713c720d22b57e6995bdd5ad65153/pilot/pkg/config/kube/gateway/conversion.go#L231-L235 HTTPRoute only.
route.hostnames
list
[]
Public hostname(s) for the HTTPRoute and ListenerSet. The first hostname is also used to auto-populate oauth2-proxy redirect_url.
route.port
string
null
Backend port for the auto-generated catch-all rule. Defaults to applicationPort.port, or 4180 when oauth2.enabled=true.
route.gateway
object
see values.yaml
Gateway attachment settings.
route.gateway.name
string
ingressgateway
Name of the Gateway to attach to.
route.gateway.namespace
string
istio-ingress
Namespace of the Gateway.
route.gateway.sectionName
string
""
If set, skip ListenerSet creation and attach the route directly to this Gateway listener section.
route.clusterIssuer
string
letsencrypt-prod-istio
Cert-manager ClusterIssuer for auto-TLS on the ListenerSet. HTTPRoute only.
route.rules
list
[]
Explicit HTTPRoute rules prepended before the catch-all. HTTPRoute only.
route.authorizationPolicies
object
{}
Istio AuthorizationPolicy resources keyed by name. Supports IP-based (remoteIpBlocks), path-based, and source-identity (principals) rules.
route.requestAuthentications
object
{}
Istio RequestAuthentication resources keyed by name. HTTPRoute only - requires decrypted traffic. Use to require and validate JWTs from an OIDC provider (e.g. Keycloak).
OAuth2
Key
Type
Default
Description
oauth2
object
see values.yaml
OAuth2 proxy injector integration. Adds required pod label and annotations for the KvalitetsIT oauth2-proxy-injector webhook.
oauth2.enabled
bool
false
Enable oauth2-proxy sidecar injection metadata on the pod.
oauth2.proxyPort
int
4180
Port oauth2-proxy listens on. Used for http_address in oauth2-proxy.cfg, the Service port, and the gateway backend port.
oauth2.image
string
""
oauth2-proxy image passed to the injector annotation oauth2-proxy.kitkube.dk/image. When useAlphaConfig=true and this is empty, the image is automatically pinned to quay.io/oauth2-proxy/oauth2-proxy:v7.15.0 because the alpha config schema can change between minor releases. Set explicitly to override the pinned version.
oauth2.upstream
string
""
Dedicated upstream URL for oauth2-proxy. This is always used for upstreams in oauth2-proxy.cfg. Defaults to http://127.0.0.1:<applicationPort.port> when empty.
oauth2.clientId
string
""
OIDC client ID. Used as client_id in the stable TOML config and providers[0].clientID in the alpha YAML config. Also used as the Keycloak client ID when realm is set. Optional when oauth2.realm is set - defaults to Release.Name.
oauth2.cookieName
string
""
Cookie name used by oauth2-proxy. Defaults to clientId when empty.
oauth2.issuerUrl
string
""
Base Keycloak URL (e.g. https://keycloak.example.com). The OIDC issuer URL is always constructed as <issuerUrl>/realms/<realm>.
oauth2.config
object
see values.yaml
Configurable oauth2-proxy settings. Commonly changed options are exposed here as named fields; everything else can be added via oauth2.rawConfig.
oauth2.config.emailDomains
list
["*"]
Email domains allowed to authenticate. Use ["*"] to allow any domain.
oauth2.config.allowedGroups
string
null
Groups allowed to authenticate. Null means no group restriction is rendered.
oauth2.config.skipAuthRoutes
string
null
URL path patterns that bypass authentication. Null means no skip-auth routes are rendered.
oauth2.config.scope
string
"openid profile email"
OIDC scopes requested in the OAuth2 authorization request. Also used to derive clientDefinition.defaultClientScopes when not explicitly set.
oauth2.config.insecureOidcAllowUnverifiedEmail
bool
true
Allow users whose email address is unverified by the OIDC provider.
oauth2.config.codeChallengeMethod
string
S256
PKCE challenge method used in the authorization request. S256 is strongly recommended.
oauth2.config.cookieSecure
bool
true
Require the session cookie to be sent over HTTPS only.
oauth2.config.cookieHttponly
bool
true
Set the HttpOnly flag on the session cookie, preventing JavaScript access.
oauth2.config.cookieSamesite
string
lax
SameSite policy for the session cookie. One of strict, lax, or none.
oauth2.config.cookieExpire
string
"8h"
How long before the cookie expires.
oauth2.config.cookieRefresh
string
"1h"
Refresh the cookie when this much time remains before expiry. Empty string disables refresh.
oauth2.config.sessionStoreType
string
cookie
Backend session storage type. Use cookie for stateless deployments or redis for server-side sessions.
oauth2.config.passAuthorizationHeader
bool
true
Forward the OIDC ID token to the upstream as a Bearer Authorization header.
oauth2.config.passAccessToken
bool
true
Forward the
Deploy kitapp with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kitapp on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
Place the chartkitapp is pinned at v1.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply