kitapp

by KvalitetsIT

Helm chartv1.2.0App 1.2.0Verified publisher

Small generic Helm chart for deploying a Kubernetes application as a Deployment.

About this chart

kitapp

Small generic Helm chart for deploying a Kubernetes application as a Deployment.

Homepage: https://github.com/KvalitetsIT

Maintainers

NameEmailUrl
KvalitetsIT[email protected]https://github.com/KvalitetsIT/helm-repo

Source Code

Values

Deployment

KeyTypeDefaultDescription
nameOverridestring""Override the release name used for resource naming and labels.
replicasint2Number of pod replicas.
autoscalingobjectsee values.yamlHorizontal 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.enabledboolfalseEnable HorizontalPodAutoscaler creation.
autoscaling.minReplicasint2Lower bound for the number of pod replicas.
autoscaling.maxReplicasint5Upper bound for the number of pod replicas.
autoscaling.targetCPUUtilizationPercentageint80Average CPU utilization target percentage across pods. Set to null to disable CPU-based autoscaling.
autoscaling.targetMemoryUtilizationPercentagestringnullAverage memory utilization target percentage across pods. Set to null to disable memory-based autoscaling.
autoscaling.behaviorobject{}Optional HPA behavior tuning (scaleUp/scaleDown stabilization and policies). Requires autoscaling/v2-compatible clusters.
strategyobjectsee values.yamlDeployment strategy configuration.
strategy.typestringRollingUpdateDeployment strategy type.
revisionHistoryLimitint5Number of old ReplicaSets to retain for Deployment rollback history.
imagePullSecretslist[]Optional list of image pull secrets.
podLabelsobject{}Extra labels to add to the pod.
podAnnotationsobject{}Extra pod annotations.
nodeSelectorobject{}Node selector labels for pod scheduling.
tolerationslist[]Pod tolerations for scheduling onto tainted nodes.
hostAliaseslist[]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.
affinityobjectsee values.yamlKubernetes affinity rules for pod scheduling. Defaults to preferred pod anti-affinity across nodes for replicas from the same release.
serviceAccountobjectsee values.yamlService account settings.
serviceAccount.createboolfalseCreate a dedicated ServiceAccount.
serviceAccount.namestring""Existing ServiceAccount name to use (or generated when empty and create=true).
serviceAccount.annotationsobject{}Annotations for the ServiceAccount.
serviceAccount.automountServiceAccountTokenboolfalseMount the ServiceAccount token into pods.
podSecurityContextobjectsee values.yamlSecurity context applied to the pod (e.g. fsGroup, runAsUser, runAsGroup).

Runtime

KeyTypeDefaultDescription
imageobjectsee values.yamlContainer image settings.
image.repositorystring""Container image repository (required).
image.tagstring""Container image tag. Required when image.digest is empty.
image.digeststring""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.pullPolicystringIfNotPresentImage pull policy.
commandlist[]Optional container command override.
argslist[]Optional container args override.
envlist[]Environment variables for the container.
extraEnvslist[]Additional environment variables appended after env. Useful for overlay values files to extend env without replacing shared base entries.
envFromlist[]Environment variable sources (ConfigMapRef/SecretRef) for the container.
extraEnvFromlist[]Additional environment variable sources appended after envFrom. Useful for overlay values files to extend envFrom without replacing shared base entries.
resourcesobject{}Container resource requests and limits.
livenessProbeobject{}Kubernetes liveness probe.
readinessProbeobject{}Kubernetes readiness probe.
startupProbeobject{}Kubernetes startup probe.
lifecycleobject{}Kubernetes lifecycle hooks for the application container (preStop, postStart).
terminationGracePeriodSecondsintnullPod 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.
containerSecurityContextobjectsee values.yamlSecurity context applied to the application container.

Service

KeyTypeDefaultDescription
applicationPortobjectsee values.yamlPrimary application port exposed by the container and Service.
applicationPort.namestringhttpPrimary application port name.
applicationPort.portint8080Primary application container port.
applicationPort.protocolstringTCPPrimary application protocol.
additionalApplicationPortslist[]Additional named application ports exposed on both container and Service. Each item supports name, port, and optional protocol.
servicePortobjectsee values.yamlPrimary Service port exposed by the Service.
servicePort.namestringnullPrimary Service port name. If empty, falls back to applicationPort.name.
servicePort.portstringnullPrimary Service port number. If empty, defaults to applicationPort.port.
servicePort.protocolstringnullPrimary Service protocol. If empty, falls back to applicationPort.protocol.
additionalServicePortslist[]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.
serviceobjectsee values.yamlService settings for exposing the application.
service.typestringClusterIPKubernetes Service type.
service.annotationsobject{}Annotations for the Service.
service.labelsobjectsee values.yamlLabels 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

KeyTypeDefaultDescription
volumeslist[]Structured volume definitions. Each entry defines both the container mount and the pod volume source.
extraVolumeslist[]Additional structured volume definitions appended after volumes. Use to share common volumes in base values and extend per environment overlays.

Metrics

KeyTypeDefaultDescription
metricsobjectsee values.yamlMetrics settings for optional metrics port and ServiceMonitor.
metrics.enabledboolfalseEnable metrics port exposure on container and Service. The metrics port name is always metrics when enabled.
metrics.portstringnullMetrics port number. If empty, uses applicationPort.port.
metrics.pathstring/metricsMetrics scrape path.
metrics.intervalstring30sServiceMonitor scrape interval.
metrics.labelsobject{}Extra labels for the ServiceMonitor (when metrics.enabled=true and ServiceMonitor CRD is installed).
metrics.annotationsobject{}Extra annotations for the ServiceMonitor (when metrics.enabled=true and ServiceMonitor CRD is installed).

Route

KeyTypeDefaultDescription
routeobjectsee values.yamlGateway API route settings.
route.enabledboolfalseEnable Gateway API resources (HTTPRoute or TLSRoute, ListenerSet, and optional policies).
route.typestringHTTPRouteRoute type. Supports HTTPRoute or TLSRoute.
route.exposeMetricsboolfalseExpose 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.hostnameslist[]Public hostname(s) for the HTTPRoute and ListenerSet. The first hostname is also used to auto-populate oauth2-proxy redirect_url.
route.portstringnullBackend port for the auto-generated catch-all rule. Defaults to applicationPort.port, or 4180 when oauth2.enabled=true.
route.gatewayobjectsee values.yamlGateway attachment settings.
route.gateway.namestringingressgatewayName of the Gateway to attach to.
route.gateway.namespacestringistio-ingressNamespace of the Gateway.
route.gateway.sectionNamestring""If set, skip ListenerSet creation and attach the route directly to this Gateway listener section.
route.clusterIssuerstringletsencrypt-prod-istioCert-manager ClusterIssuer for auto-TLS on the ListenerSet. HTTPRoute only.
route.ruleslist[]Explicit HTTPRoute rules prepended before the catch-all. HTTPRoute only.
route.authorizationPoliciesobject{}Istio AuthorizationPolicy resources keyed by name. Supports IP-based (remoteIpBlocks), path-based, and source-identity (principals) rules.
route.requestAuthenticationsobject{}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

KeyTypeDefaultDescription
oauth2objectsee values.yamlOAuth2 proxy injector integration. Adds required pod label and annotations for the KvalitetsIT oauth2-proxy-injector webhook.
oauth2.enabledboolfalseEnable oauth2-proxy sidecar injection metadata on the pod.
oauth2.proxyPortint4180Port oauth2-proxy listens on. Used for http_address in oauth2-proxy.cfg, the Service port, and the gateway backend port.
oauth2.imagestring""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.upstreamstring""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.clientIdstring""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.cookieNamestring""Cookie name used by oauth2-proxy. Defaults to clientId when empty.
oauth2.issuerUrlstring""Base Keycloak URL (e.g. https://keycloak.example.com). The OIDC issuer URL is always constructed as <issuerUrl>/realms/<realm>.
oauth2.configobjectsee values.yamlConfigurable oauth2-proxy settings. Commonly changed options are exposed here as named fields; everything else can be added via oauth2.rawConfig.
oauth2.config.emailDomainslist["*"]Email domains allowed to authenticate. Use ["*"] to allow any domain.
oauth2.config.allowedGroupsstringnullGroups allowed to authenticate. Null means no group restriction is rendered.
oauth2.config.skipAuthRoutesstringnullURL path patterns that bypass authentication. Null means no skip-auth routes are rendered.
oauth2.config.scopestring"openid profile email"OIDC scopes requested in the OAuth2 authorization request. Also used to derive clientDefinition.defaultClientScopes when not explicitly set.
oauth2.config.insecureOidcAllowUnverifiedEmailbooltrueAllow users whose email address is unverified by the OIDC provider.
oauth2.config.codeChallengeMethodstringS256PKCE challenge method used in the authorization request. S256 is strongly recommended.
oauth2.config.cookieSecurebooltrueRequire the session cookie to be sent over HTTPS only.
oauth2.config.cookieHttponlybooltrueSet the HttpOnly flag on the session cookie, preventing JavaScript access.
oauth2.config.cookieSamesitestringlaxSameSite policy for the session cookie. One of strict, lax, or none.
oauth2.config.cookieExpirestring"8h"How long before the cookie expires.
oauth2.config.cookieRefreshstring"1h"Refresh the cookie when this much time remains before expiry. Empty string disables refresh.
oauth2.config.sessionStoreTypestringcookieBackend session storage type. Use cookie for stateless deployments or redis for server-side sessions.
oauth2.config.passAuthorizationHeaderbooltrueForward the OIDC ID token to the upstream as a Bearer Authorization header.
oauth2.config.passAccessTokenbooltrueForward 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkitapp is pinned at v1.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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