generic

by emberstack

Helm chartv1.0.22App 1.0.0Verified publisher

A generic application Helm chart for deploying any containerized workload

About this chart

Generic Helm Chart

A generic application Helm chart for deploying any containerized workload on Kubernetes. Supports Deployment and CronJob modes, Gateway API HTTPRoute, Ingress, RBAC, autoscaling, and more.

Installation

Using OCI registry (recommended)

helm install my-release oci://ghcr.io/emberstack/helm-charts/generic \
  --set image.repository=nginx \
  --set image.tag=latest

Using Helm repository

helm repo add emberstack https://emberstack.github.io/helm-charts
helm repo update
helm upgrade --install my-release emberstack/generic \
  --set image.repository=nginx \
  --set image.tag=latest

As a subchart dependency

# Chart.yaml
dependencies:
  - name: generic
    version: "1.x.x"
    repository: "oci://ghcr.io/emberstack/helm-charts"
    alias: api
    condition: api.enabled
# values.yaml
api:
  enabled: true
  image:
    repository: my-registry/my-app
  httpRoute:
    enabled: true
    parentRefs:
      - name: my-gateway
        sectionName: https
    hostnames:
      - my-app.example.com

Global Parameters

ParameterDescriptionDefault
global.image.registryOverride image registry for all containers""
global.image.tagOverride image tag for all containers""
global.image.pullSecretsPull secrets for all containers[]
global.podLabelsLabels added to all pods across subcharts{}
global.podAnnotationsAnnotations added to all pods across subcharts{}
global.extraEnvVarsEnv vars injected into all containers across subcharts[]
global.serviceAccount.createOverride service account creation across subchartstrue
global.serviceAccount.nameOverride service account name across subcharts""
global.storageClassOverride storage class""

Common Parameters

ParameterDescriptionDefault
nameOverrideOverride chart name""
fullnameOverrideOverride fully qualified app name""
namespaceOverrideOverride namespace""
commonLabelsLabels added to all resources{}
commonAnnotationsAnnotations added to all resources{}
extraObjectsExtra Kubernetes resources to deploy[]

Image Parameters

ParameterDescriptionDefault
image.registryImage registry""
image.repositoryImage repository""
image.tagImage tag (defaults to Chart.AppVersion)""
image.digestImage digest (overrides tag)""
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsImage pull secrets[]

Test Image Parameters

ParameterDescriptionDefault
testImage.registryTest image registrydocker.io
testImage.repositoryTest image repositorybusybox
testImage.tagTest image taglatest
testImage.pullPolicyTest image pull policyIfNotPresent

Deployment Parameters

ParameterDescriptionDefault
deployment.enabledDeploy as Deploymenttrue
deployment.replicaCountNumber of replicas1
deployment.revisionHistoryLimitRevision history limit3
deployment.updateStrategy.typeUpdate strategyRollingUpdate
deployment.annotationsDeployment annotations{}
deployment.labelsDeployment labels{}
deployment.minReadySecondsMin seconds before pod is ready""

CronJob Parameters

Mutually exclusive with Deployment — set deployment.enabled: false when using CronJob mode.

ParameterDescriptionDefault
cronJob.enabledDeploy as CronJobfalse
cronJob.scheduleCron schedule expression (required)""
cronJob.concurrencyPolicyConcurrency policyForbid
cronJob.failedJobsHistoryLimitFailed jobs history limit1
cronJob.successfulJobsHistoryLimitSuccessful jobs history limit3
cronJob.startingDeadlineSecondsStarting deadline""
cronJob.suspendSuspend the CronJobfalse
cronJob.backoffLimitJob backoff limit6
cronJob.activeDeadlineSecondsActive deadline for jobs""
cronJob.ttlSecondsAfterFinishedTTL for finished jobs""
cronJob.restartPolicyPod restart policyOnFailure
cronJob.annotationsCronJob annotations{}
cronJob.labelsCronJob labels{}

Container Parameters

ParameterDescriptionDefault
commandOverride container command[]
argsOverride container args[]
containerPortPrimary container port8080
extraContainerPortsAdditional container ports[]
resourcesResource requests and limits{}
resourcesPresetResource preset (nano/micro/small/medium/large/xlarge/2xlarge)""
lifecycleHooksLifecycle hooks{}
extraEnvVarsAdditional environment variables[]
extraEnvVarsCMConfigMap name for envFrom""
extraEnvVarsSecretSecret name for envFrom""
extraVolumeMountsAdditional volume mounts[]
extraVolumesAdditional volumes[]

Diagnostic Mode

Overrides command, args, and disables probes and lifecycle hooks for debugging.

ParameterDescriptionDefault
diagnosticMode.enabledEnable diagnostic modefalse
diagnosticMode.commandDiagnostic command["sleep"]
diagnosticMode.argsDiagnostic args["infinity"]

Probes

Default probes can be overridden with custom*Probe or disabled entirely with diagnosticMode.

ParameterDescriptionDefault
livenessProbeDefault liveness probehttpGet /healthz
customLivenessProbeOverride liveness probe{}
readinessProbeDefault readiness probehttpGet /healthz
customReadinessProbeOverride readiness probe{}
startupProbeDefault startup probehttpGet /healthz
customStartupProbeOverride startup probe{}

Pod Parameters

ParameterDescriptionDefault
podLabelsAdditional pod labels{}
podAnnotationsAdditional pod annotations{}
podSecurityContextPod security context{enabled: true, fsGroup: 1001, ...}
containerSecurityContextContainer security context{enabled: true, runAsNonRoot: true, ...}
podAffinityPresetPod affinity preset (soft/hard)""
podAntiAffinityPresetPod anti-affinity preset (soft/hard)soft
nodeAffinityPreset.typeNode affinity preset type""
nodeAffinityPreset.keyNode affinity label key""
nodeAffinityPreset.valuesNode affinity label values[]
affinityFull affinity override{}
nodeSelectorNode selector{}
tolerationsTolerations[]
topologySpreadConstraintsTopology spread constraints[]
priorityClassNamePriority class name""
schedulerNameScheduler name""
terminationGracePeriodSecondsTermination grace period""
dnsPolicyDNS policy""
dnsConfigDNS configuration{}
hostNetworkUse host networkfalse
initContainersInit containers[]
extraContainersExtra containers[]

Service Account

ParameterDescriptionDefault
serviceAccount.createCreate a ServiceAccounttrue
serviceAccount.nameServiceAccount name"" (generated)
serviceAccount.annotationsServiceAccount annotations{}
serviceAccount.automountServiceAccountTokenAutomount API tokenfalse

RBAC

ParameterDescriptionDefault
rbac.createCreate RBAC resourcesfalse
rbac.clusterRole.rulesClusterRole rules[]
rbac.role.rulesRole rules (namespace-scoped)[]

Service

ParameterDescriptionDefault
service.enabledCreate a Servicetrue
service.typeService typeClusterIP
service.portService port80
service.targetPortTarget porthttp
service.nodePortNodePort (when type=NodePort)""
service.clusterIPCluster IP (use None for headless)""
service.loadBalancerIPLoad balancer IP""
service.loadBalancerSourceRangesLoad balancer source ranges[]
service.externalTrafficPolicyExternal traffic policy""
service.internalTrafficPolicyInternal traffic policy""
service.sessionAffinitySession affinity (None/ClientIP)""
service.sessionAffinityConfigSession affinity config{}
service.annotationsService annotations{}
service.labelsService labels{}
service.extraPortsAdditional service ports[]

Ingress

ParameterDescriptionDefault
ingress.enabledEnable Ingressfalse
ingress.ingressClassNameIngress class name""
ingress.hostnameIngress hostname""
ingress.pathIngress path/
ingress.pathTypePath typePrefix
ingress.annotationsIngress annotations{}
ingress.labelsIngress labels{}
ingress.tlsEnable TLSfalse
ingress.extraHostsAdditional hosts[]
ingress.extraTlsAdditional TLS entries[]
ingress.extraRulesAdditional rules[]

HTTPRoute (Gateway API)

ParameterDescriptionDefault
httpRoute.enabledEnable HTTPRoutefalse
httpRoute.parentRefsGateway parent references[]
httpRoute.hostnamesRoute hostnames[]
httpRoute.rulesRoute rules; every HTTPRouteRule field is passed through, with backendRefs defaulting to the release Service (auto-generates default if empty)[]
httpRoute.timeoutsRule timeouts (request, backendRequest) for every rule without its own timeouts; 0s disables{}
httpRoute.annotationsHTTPRoute annotations{}
httpRoute.labelsHTTPRoute labels{}
httpRoute.httpRedirect.enabledEnable HTTP→HTTPS redirect companionfalse
httpRoute.httpRedirect.parentRefsRedirect parent refs (defaults to main)[]
httpRoute.httpRedirect.hostnamesRedirect hostnames (defaults to main)[]
httpRoute.httpRedirect.annotationsRedirect annotations (defaults to main){}
httpRoute.httpRedirect.labelsRedirect labels (defaults to main){}
httpRoute.httpRedirect.schemeRedirect schemehttps
httpRoute.httpRedirect.statusCodeRedirect status code301
httpRoute.httpRedirect.portRedirect port""
httpRoute.httpRedirect.pathRedirect path{}

Autoscaling (HPA)

ParameterDescriptionDefault
autoscaling.enabledEnable HPAfalse
autoscaling.minReplicasMinimum replicas1
autoscaling.maxReplicasMaximum replicas10
autoscaling.targetCPUTarget CPU utilization80
autoscaling.targetMemoryTarget memory utilization""
autoscaling.behaviorScaling behavior{}
autoscaling.customMetricsCustom metrics[]

PodDisruptionBudget

ParameterDescriptionDefault
pdb.enabledEnable PDBfalse
pdb.minAvailableMinimum available pods""
pdb.maxUnavailableMaximum unavailable pods1

NetworkPolicy

ParameterDescriptionDefault
networkPolicy.enabledEnable NetworkPolicyfalse
networkPolicy.policyTypesPolicy types[Ingress, Egress]
networkPolicy.ingressIngress rules[]
networkPolicy.egressEgress rules[]
networkPolicy.allowExternalDNSAllow DNS egresstrue

ServiceMonitor (Prometheus)

ParameterDescriptionDefault
serviceMonitor.enabledEnable ServiceMonitorfalse
serviceMonitor.namespaceServiceMonitor namespace""
serviceMonitor.portMetrics porthttp
serviceMonitor.pathMetrics path/metrics
serviceMonitor.intervalScrape interval30s
serviceMonitor.scrapeTimeoutScrape timeout""
serviceMonitor.labelsAdditional labels{}
serviceMonitor.annotationsAdditional annotations{}
serviceMonitor.relabelingsRelabeling rules[]
serviceMonitor.metricRelabelingsMetric relabeling rules[]
serviceMonitor.honorLabelsHonor labelsfalse

PodMonitor (Prometheus)

ParameterDescriptionDefault
podMonitor.enabledEnable PodMonitorfalse
podMonitor.namespacePodMonitor namespace""
podMonitor.podMetricsEndpointsPod metrics endpoints[{port: http, path: /metrics}]
podMonitor.intervalScrape interval30s
podMonitor.scrapeTimeoutScrape timeout""
podMonitor.labelsAdditional labels{}
podMonitor.annotationsAdditional annotations{}
podMonitor.relabelingsRelabeling rules[]
podMonitor.metricRelabelingsMetric relabeling rules[]
podMonitor.honorLabelsHonor labelsfalse

ConfigMap

ParameterDescriptionDefault
configMap.enabledCreate a ConfigMapfalse
configMap.dataConfigMap data (supports template expressions){}

Secret

ParameterDescriptionDefault
secret.enabledCreate a Secretfalse
secret.typeSecret typeOpaque
secret.dataSecret data (base64-encoded){}
secret.stringDataSecret string data (plain text){}

Persistence

ParameterDescriptionDefault
`persiste

Deploy generic with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has generic 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 chartgeneric is pinned at v1.0.22 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