webapp

by stand-sure

Helm chartv3.6.0App 2.6.3Apache-2.0Verified publisher

Innago Helm chart for deploying web applications to Kubernetes with production-ready patterns

About this chart

webapp

Innago Helm chart for deploying web applications to Kubernetes with production-ready patterns

Homepage: https://innago-property-management.github.io/helm-charts/webapp

Maintainers

NameEmailUrl
Innago[email protected]

Source Code

Values

KeyTypeDefaultDescription
additionalContainerPortslist[]Follows Kubernetes container port syntax
additionalContainerslist[]Common patterns: - OAuth2 Proxy for authentication - Fluent Bit for log shipping - Cloud SQL Proxy for database connections - Envoy proxy for service mesh
additionalServicePortslist[]Useful for exposing metrics, gRPC, or custom protocols
affinityobject{}Example: Prefer spreading pods across different zones podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app.kubernetes.io/name operator: In values: - webapp topologyKey: topology.kubernetes.io/zone
autoscalingobject{"behavior":{},"enabled":"no","maxReplicas":4,"minReplicas":2,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":null}Requires metrics-server to be installed in the cluster
autoscaling.behaviorobject{}See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#scaling-policies
autoscaling.enabledstring"no"Enable HPA (disables fixed replicaCount)
autoscaling.maxReplicasint4Maximum number of replicas (set based on expected peak load)
autoscaling.minReplicasint2Minimum number of replicas. 0 is allowed, but scaling an HPA to zero requires the HPAScaleToZero feature gate to be enabled on the cluster; without it the API server rejects minReplicas: 0. Production recommendation: 2+ for HA
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage (scale up when exceeded). Example: 80 means scale up when average CPU > 80%. To scale on memory only, set this to null, 0 or false. At least one of the CPU and memory targets must remain set; disabling both fails rendering
autoscaling.targetMemoryUtilizationPercentageint80Target memory utilization percentage (scale up when exceeded). Memory scaling is ENABLED by default, alongside CPU. Requires a memory request on the container, which the chart sets by default. To scale on CPU only, set this to null, 0 or false in the values override
configMapslist[]The ConfigMap name will be prefixed with the release fullname
configVersionstring""Only needed if you manage ConfigMaps outside of Helm
containerEnvFromlist[]Example: Load all variables from a ConfigMap or Secret
containerEnvironmentVariableslist[]Common patterns: - ASPNETCORE_ENVIRONMENT: "Production" - LOG_LEVEL: "Info" - Feature flags and toggles
containerSecurityContextobject{}Production recommendation: Set all commented values below
deploymentAnnotationsobject{}Useful for external tools that watch Deployment metadata
deploymentLabelsobject{}Useful for organizational grouping or policy matching
fullnameOverridestring""Useful when migrating from another naming scheme
health.livenessProbe.failureThresholdint3
health.livenessProbe.httpGet.pathstring"/healthz/live"
health.livenessProbe.httpGet.portstring"http"
health.livenessProbe.initialDelaySecondsint10
health.livenessProbe.periodSecondsint10
health.livenessProbe.successThresholdint1
health.livenessProbe.timeoutSecondsint5
health.readinessProbe.failureThresholdint3
health.readinessProbe.httpGet.pathstring"/healthz/ready"
health.readinessProbe.httpGet.portstring"http"
health.readinessProbe.initialDelaySecondsint5
health.readinessProbe.periodSecondsint5
health.readinessProbe.successThresholdint1
health.readinessProbe.timeoutSecondsint3
health.startupProbeobject{}If not set, no startup probe is configured
httpContainerPortint80Default: 80 for compatibility with nginx base image
httpsContainerPortint443Recommended: 8443 for non-root users
image.pullPolicystring"IfNotPresent"Always: Pull on every pod start (useful for development with :latest tag)
image.repositorystring"nginx"Container image repository (change this to your application image)
image.tagstring""IMPORTANT: Always pin to specific version in production, never use "latest"
imagePullSecretslist[]
ingress.annotationsobject{}Examples: cert-manager.io/cluster-issuer: "letsencrypt-prod" # Automatic TLS with cert-manager nginx.ingress.kubernetes.io/limit-rps: "10" # Rate limiting nginx.ingress.kubernetes.io/rewrite-target: / # Path rewriting
ingress.classNamestring""Kubernetes 1.18+ uses ingressClassName instead of annotation
ingress.enabledboolfalseExposes HTTP/HTTPS routes from outside the cluster to services
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Each host can have multiple paths routing to this service
ingress.tlslist[]Secret can be created manually or via cert-manager
initContainerslist[]Common use cases: database migrations, configuration setup, dependency checks
innagoVaultK8sRoleOperator.additionalPolicieslist[]an array of additional policy names. you would use this if dynamic secrets for a database, messaging system, etc. are in use.
innagoVaultK8sRoleOperator.useboolfalsewhether a config map to trigger vault role and policy should be created. Disabled by default: opt in only when the https://github.com/innago-property-management/innago-vault-k8s-role-operator is present in the cluster. When enabled, this creates a config map which the operator then uses to create a policy and role for the service account used by your app.
lifecycleobject{"preStop":{"enabled":true,"sleepSeconds":5},"terminationGracePeriodSeconds":30}Lifecycle hooks and termination configuration
lifecycle.preStopobject{"enabled":true,"sleepSeconds":5}preStop hook configuration
lifecycle.preStop.enabledbooltrueEnable preStop hook for graceful shutdown
lifecycle.preStop.sleepSecondsint5Seconds to sleep in preStop hook (allows load balancer to deregister)
lifecycle.terminationGracePeriodSecondsint30Pod termination grace period (seconds) Time for graceful shutdown before SIGKILL
metrics.enabledbooltrueEnable metrics endpoint
metrics.pathstring"/metricsz"Metrics endpoint path
metrics.portstring"http"Metrics endpoint port name
metrics.serviceMonitorobject{"enabled":false,"interval":"30s","labels":{},"metricRelabelings":[],"namespace":"","namespaceSelector":{},"relabelings":[],"scrapeTimeout":"10s"}ServiceMonitor configuration for Prometheus Operator
metrics.serviceMonitor.enabledboolfalseEnable ServiceMonitor creation
metrics.serviceMonitor.intervalstring"30s"Scrape interval
metrics.serviceMonitor.labelsobject{}Must match Prometheus serviceMonitorSelector
metrics.serviceMonitor.metricRelabelingslist[]See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
metrics.serviceMonitor.namespacestring""ServiceMonitor namespace (defaults to release namespace)
metrics.serviceMonitor.namespaceSelectorobject{}Namespace selector for ServiceMonitor
metrics.serviceMonitor.relabelingslist[]See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
metrics.serviceMonitor.scrapeTimeoutstring"10s"Scrape timeout
migrationJob.activeDeadlineSecondsint300Maximum duration in seconds for the migration job to complete. The job is terminated if it exceeds this time
migrationJob.annotationsobject{}Example: Set TTL for automatic cleanup ttlSecondsAfterFinished: "86400" # Delete job after 24 hours
migrationJob.backoffLimitint3Number of retries before the migration job is marked as failed
migrationJob.cleanupActiveDeadlineSecondsint120Maximum duration in seconds for the cleanup hook to complete
migrationJob.cleanupBackoffLimitint1Retries before the cleanup hook is marked as failed
migrationJob.cleanupImageobject{"pullPolicy":"IfNotPresent","repository":"alpine/kubectl","resources":{"requests":{"cpu":"10m","memory":"32Mi"}},"tag":"1.34.1"}Image used by the migration history cleanup hook (must provide kubectl and a shell) Production recommendation: Mirror this image to your private registry
migrationJob.cleanupImage.resourcesobject{"requests":{"cpu":"10m","memory":"32Mi"}}Resource requests for the cleanup container
migrationJob.cleanupTtlSecondsAfterFinishedint300Seconds after the cleanup hook finishes before Kubernetes deletes it
migrationJob.commandstringnilExample for EF Core: ["dotnet", "ef", "database", "update"]
migrationJob.containerEnvFromlist[]Load environment variables from ConfigMaps or Secrets
migrationJob.enabledboolfalseCreates a Kubernetes Job to run database migrations before app deployment
migrationJob.environmentVariableslist[]Use Vault syntax for secrets: vault:/secret/data/path#key
migrationJob.historyLimitint3Number of finished migration jobs to keep in the namespace. Each migration image produces a differently named Job, and Kubernetes has no history limit for standalone Jobs, so without this every migration ever run stays in the namespace. After each install/upgrade a cleanup hook deletes all but the newest N. Set to 0 to keep every migration job and skip the cleanup hook entirely.
migrationJob.image.pullPolicystring"IfNotPresent"
migrationJob.image.repositorystring""Should contain your database migration tooling (e.g., dotnet ef, flyway, liquibase)
migrationJob.image.tagstring""Allows independent versioning of migrations
migrationJob.initContainerImageobject{"pullPolicy":"IfNotPresent","repository":"groundnuty/k8s-wait-for","tag":"v2.0"}Production recommendation: Mirror this image to your private registry
migrationJob.resourcesobject{"requests":{"cpu":"100m","memory":"256Mi"}}Resource requests for migration job container Limits intentionally omitted to allow VPA recommendations
migrationJob.volumeMountslist[]
migrationJob.volumeslist[]
migrationJob.waitForItInInitContainerboolfalseUse true for long-running migrations (>5 minutes) to avoid Helm timeouts
nameOverridestring""Rarely needed, defaults to chart name "webapp"
networkPolicyobject{"egress":{"customRules":[],"dns":{"to":[]},"enabled":false},"enabled":false,"ingress":{"allowExternal":false,"customRules":[],"namespaceSelector":{},"podSelector":{},"prometheusNamespaceSelector":{}}}Network policy configuration
networkPolicy.egressobject{"customRules":[],"dns":{"to":[]},"enabled":false}Egress rules configuration
networkPolicy.egress.customRuleslist[]Custom egress rules (advanced)
networkPolicy.egress.dnsobject{"to":[]}DNS egress configuration
networkPolicy.egress.dns.tolist[]Custom DNS egress selectors (overrides defaults) If unset, defaults to kube-system namespace with kube-dns labels For CoreDNS or different configurations, customize these selectors Example for custom CoreDNS: to: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: kube-system - podSelector: matchLabels: k8s-app: coredns
networkPolicy.egress.enabledboolfalseEnable egress rules (restricts outbound traffic)
networkPolicy.enabledboolfalseEnable NetworkPolicy creation
networkPolicy.ingressobject{"allowExternal":false,"customRules":[],"namespaceSelector":{},"podSelector":{},"prometheusNamespaceSelector":{}}Ingress rules configuration
networkPolicy.ingress.allowExternalboolfalseAllow external client connections (beyond pod-to-pod) Requires at least one of namespaceSelector or podSelector to be set
networkPolicy.ingress.customRuleslist[]Custom ingress rules (advanced)
networkPolicy.ingress.namespaceSelectorobject{}Namespace selector for allowed clients Example: namespaceSelector: { matchLabels: { name: "app-namespace" } }
networkPolicy.ingress.podSelectorobject{}Pod selector for allowed clients Example: podSelector: { matchLabels: { app: "my-app" } }
networkPolicy.ingress.prometheusNamespaceSelectorobject{}Namespace selector for Prometheus Example: prometheusNamespaceSelector: { matchLabels: { name: "monitoring" } }
nodeSelectorobject{}Examples: disktype: ssd # Only schedule on nodes with SS

Deploy webapp with OpenTenant

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