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.
Overrides command, args, and disables probes and lifecycle hooks for debugging.
Parameter
Description
Default
diagnosticMode.enabled
Enable diagnostic mode
false
diagnosticMode.command
Diagnostic command
["sleep"]
diagnosticMode.args
Diagnostic args
["infinity"]
Probes
Default probes can be overridden with custom*Probe or disabled entirely with diagnosticMode.
Parameter
Description
Default
livenessProbe
Default liveness probe
httpGet /healthz
customLivenessProbe
Override liveness probe
{}
readinessProbe
Default readiness probe
httpGet /healthz
customReadinessProbe
Override readiness probe
{}
startupProbe
Default startup probe
httpGet /healthz
customStartupProbe
Override startup probe
{}
Pod Parameters
Parameter
Description
Default
podLabels
Additional pod labels
{}
podAnnotations
Additional pod annotations
{}
podSecurityContext
Pod security context
{enabled: true, fsGroup: 1001, ...}
containerSecurityContext
Container security context
{enabled: true, runAsNonRoot: true, ...}
podAffinityPreset
Pod affinity preset (soft/hard)
""
podAntiAffinityPreset
Pod anti-affinity preset (soft/hard)
soft
nodeAffinityPreset.type
Node affinity preset type
""
nodeAffinityPreset.key
Node affinity label key
""
nodeAffinityPreset.values
Node affinity label values
[]
affinity
Full affinity override
{}
nodeSelector
Node selector
{}
tolerations
Tolerations
[]
topologySpreadConstraints
Topology spread constraints
[]
priorityClassName
Priority class name
""
schedulerName
Scheduler name
""
terminationGracePeriodSeconds
Termination grace period
""
dnsPolicy
DNS policy
""
dnsConfig
DNS configuration
{}
hostNetwork
Use host network
false
initContainers
Init containers
[]
extraContainers
Extra containers
[]
Service Account
Parameter
Description
Default
serviceAccount.create
Create a ServiceAccount
true
serviceAccount.name
ServiceAccount name
"" (generated)
serviceAccount.annotations
ServiceAccount annotations
{}
serviceAccount.automountServiceAccountToken
Automount API token
false
RBAC
Parameter
Description
Default
rbac.create
Create RBAC resources
false
rbac.clusterRole.rules
ClusterRole rules
[]
rbac.role.rules
Role rules (namespace-scoped)
[]
Service
Parameter
Description
Default
service.enabled
Create a Service
true
service.type
Service type
ClusterIP
service.port
Service port
80
service.targetPort
Target port
http
service.nodePort
NodePort (when type=NodePort)
""
service.clusterIP
Cluster IP (use None for headless)
""
service.loadBalancerIP
Load balancer IP
""
service.loadBalancerSourceRanges
Load balancer source ranges
[]
service.externalTrafficPolicy
External traffic policy
""
service.internalTrafficPolicy
Internal traffic policy
""
service.sessionAffinity
Session affinity (None/ClientIP)
""
service.sessionAffinityConfig
Session affinity config
{}
service.annotations
Service annotations
{}
service.labels
Service labels
{}
service.extraPorts
Additional service ports
[]
Ingress
Parameter
Description
Default
ingress.enabled
Enable Ingress
false
ingress.ingressClassName
Ingress class name
""
ingress.hostname
Ingress hostname
""
ingress.path
Ingress path
/
ingress.pathType
Path type
Prefix
ingress.annotations
Ingress annotations
{}
ingress.labels
Ingress labels
{}
ingress.tls
Enable TLS
false
ingress.extraHosts
Additional hosts
[]
ingress.extraTls
Additional TLS entries
[]
ingress.extraRules
Additional rules
[]
HTTPRoute (Gateway API)
Parameter
Description
Default
httpRoute.enabled
Enable HTTPRoute
false
httpRoute.parentRefs
Gateway parent references
[]
httpRoute.hostnames
Route hostnames
[]
httpRoute.rules
Route rules; every HTTPRouteRule field is passed through, with backendRefs defaulting to the release Service (auto-generates default if empty)
[]
httpRoute.timeouts
Rule timeouts (request, backendRequest) for every rule without its own timeouts; 0s disables
{}
httpRoute.annotations
HTTPRoute annotations
{}
httpRoute.labels
HTTPRoute labels
{}
httpRoute.httpRedirect.enabled
Enable HTTP→HTTPS redirect companion
false
httpRoute.httpRedirect.parentRefs
Redirect parent refs (defaults to main)
[]
httpRoute.httpRedirect.hostnames
Redirect hostnames (defaults to main)
[]
httpRoute.httpRedirect.annotations
Redirect annotations (defaults to main)
{}
httpRoute.httpRedirect.labels
Redirect labels (defaults to main)
{}
httpRoute.httpRedirect.scheme
Redirect scheme
https
httpRoute.httpRedirect.statusCode
Redirect status code
301
httpRoute.httpRedirect.port
Redirect port
""
httpRoute.httpRedirect.path
Redirect path
{}
Autoscaling (HPA)
Parameter
Description
Default
autoscaling.enabled
Enable HPA
false
autoscaling.minReplicas
Minimum replicas
1
autoscaling.maxReplicas
Maximum replicas
10
autoscaling.targetCPU
Target CPU utilization
80
autoscaling.targetMemory
Target memory utilization
""
autoscaling.behavior
Scaling behavior
{}
autoscaling.customMetrics
Custom metrics
[]
PodDisruptionBudget
Parameter
Description
Default
pdb.enabled
Enable PDB
false
pdb.minAvailable
Minimum available pods
""
pdb.maxUnavailable
Maximum unavailable pods
1
NetworkPolicy
Parameter
Description
Default
networkPolicy.enabled
Enable NetworkPolicy
false
networkPolicy.policyTypes
Policy types
[Ingress, Egress]
networkPolicy.ingress
Ingress rules
[]
networkPolicy.egress
Egress rules
[]
networkPolicy.allowExternalDNS
Allow DNS egress
true
ServiceMonitor (Prometheus)
Parameter
Description
Default
serviceMonitor.enabled
Enable ServiceMonitor
false
serviceMonitor.namespace
ServiceMonitor namespace
""
serviceMonitor.port
Metrics port
http
serviceMonitor.path
Metrics path
/metrics
serviceMonitor.interval
Scrape interval
30s
serviceMonitor.scrapeTimeout
Scrape timeout
""
serviceMonitor.labels
Additional labels
{}
serviceMonitor.annotations
Additional annotations
{}
serviceMonitor.relabelings
Relabeling rules
[]
serviceMonitor.metricRelabelings
Metric relabeling rules
[]
serviceMonitor.honorLabels
Honor labels
false
PodMonitor (Prometheus)
Parameter
Description
Default
podMonitor.enabled
Enable PodMonitor
false
podMonitor.namespace
PodMonitor namespace
""
podMonitor.podMetricsEndpoints
Pod metrics endpoints
[{port: http, path: /metrics}]
podMonitor.interval
Scrape interval
30s
podMonitor.scrapeTimeout
Scrape timeout
""
podMonitor.labels
Additional labels
{}
podMonitor.annotations
Additional annotations
{}
podMonitor.relabelings
Relabeling rules
[]
podMonitor.metricRelabelings
Metric relabeling rules
[]
podMonitor.honorLabels
Honor labels
false
ConfigMap
Parameter
Description
Default
configMap.enabled
Create a ConfigMap
false
configMap.data
ConfigMap data (supports template expressions)
{}
Secret
Parameter
Description
Default
secret.enabled
Create a Secret
false
secret.type
Secret type
Opaque
secret.data
Secret data (base64-encoded)
{}
secret.stringData
Secret string data (plain text)
{}
Persistence
Parameter
Description
Default
`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.
Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
Place the chartgeneric is pinned at v1.0.22 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