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
| Name | Url | |
|---|---|---|
| Innago | [email protected] |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalContainerPorts | list | [] | Follows Kubernetes container port syntax |
| additionalContainers | list | [] | Common patterns: - OAuth2 Proxy for authentication - Fluent Bit for log shipping - Cloud SQL Proxy for database connections - Envoy proxy for service mesh |
| additionalServicePorts | list | [] | Useful for exposing metrics, gRPC, or custom protocols |
| affinity | object | {} | 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 |
| autoscaling | object | {"behavior":{},"enabled":"no","maxReplicas":4,"minReplicas":2,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":null} | Requires metrics-server to be installed in the cluster |
| autoscaling.behavior | object | {} | See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#scaling-policies |
| autoscaling.enabled | string | "no" | Enable HPA (disables fixed replicaCount) |
| autoscaling.maxReplicas | int | 4 | Maximum number of replicas (set based on expected peak load) |
| autoscaling.minReplicas | int | 2 | Minimum 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.targetCPUUtilizationPercentage | int | 80 | Target 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.targetMemoryUtilizationPercentage | int | 80 | Target 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 |
| configMaps | list | [] | The ConfigMap name will be prefixed with the release fullname |
| configVersion | string | "" | Only needed if you manage ConfigMaps outside of Helm |
| containerEnvFrom | list | [] | Example: Load all variables from a ConfigMap or Secret |
| containerEnvironmentVariables | list | [] | Common patterns: - ASPNETCORE_ENVIRONMENT: "Production" - LOG_LEVEL: "Info" - Feature flags and toggles |
| containerSecurityContext | object | {} | Production recommendation: Set all commented values below |
| deploymentAnnotations | object | {} | Useful for external tools that watch Deployment metadata |
| deploymentLabels | object | {} | Useful for organizational grouping or policy matching |
| fullnameOverride | string | "" | Useful when migrating from another naming scheme |
| health.livenessProbe.failureThreshold | int | 3 | |
| health.livenessProbe.httpGet.path | string | "/healthz/live" | |
| health.livenessProbe.httpGet.port | string | "http" | |
| health.livenessProbe.initialDelaySeconds | int | 10 | |
| health.livenessProbe.periodSeconds | int | 10 | |
| health.livenessProbe.successThreshold | int | 1 | |
| health.livenessProbe.timeoutSeconds | int | 5 | |
| health.readinessProbe.failureThreshold | int | 3 | |
| health.readinessProbe.httpGet.path | string | "/healthz/ready" | |
| health.readinessProbe.httpGet.port | string | "http" | |
| health.readinessProbe.initialDelaySeconds | int | 5 | |
| health.readinessProbe.periodSeconds | int | 5 | |
| health.readinessProbe.successThreshold | int | 1 | |
| health.readinessProbe.timeoutSeconds | int | 3 | |
| health.startupProbe | object | {} | If not set, no startup probe is configured |
| httpContainerPort | int | 80 | Default: 80 for compatibility with nginx base image |
| httpsContainerPort | int | 443 | Recommended: 8443 for non-root users |
| image.pullPolicy | string | "IfNotPresent" | Always: Pull on every pod start (useful for development with :latest tag) |
| image.repository | string | "nginx" | Container image repository (change this to your application image) |
| image.tag | string | "" | IMPORTANT: Always pin to specific version in production, never use "latest" |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | 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.className | string | "" | Kubernetes 1.18+ uses ingressClassName instead of annotation |
| ingress.enabled | bool | false | Exposes HTTP/HTTPS routes from outside the cluster to services |
| ingress.hosts | list | [{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}] | Each host can have multiple paths routing to this service |
| ingress.tls | list | [] | Secret can be created manually or via cert-manager |
| initContainers | list | [] | Common use cases: database migrations, configuration setup, dependency checks |
| innagoVaultK8sRoleOperator.additionalPolicies | list | [] | an array of additional policy names. you would use this if dynamic secrets for a database, messaging system, etc. are in use. |
| innagoVaultK8sRoleOperator.use | bool | false | whether 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. |
| lifecycle | object | {"preStop":{"enabled":true,"sleepSeconds":5},"terminationGracePeriodSeconds":30} | Lifecycle hooks and termination configuration |
| lifecycle.preStop | object | {"enabled":true,"sleepSeconds":5} | preStop hook configuration |
| lifecycle.preStop.enabled | bool | true | Enable preStop hook for graceful shutdown |
| lifecycle.preStop.sleepSeconds | int | 5 | Seconds to sleep in preStop hook (allows load balancer to deregister) |
| lifecycle.terminationGracePeriodSeconds | int | 30 | Pod termination grace period (seconds) Time for graceful shutdown before SIGKILL |
| metrics.enabled | bool | true | Enable metrics endpoint |
| metrics.path | string | "/metricsz" | Metrics endpoint path |
| metrics.port | string | "http" | Metrics endpoint port name |
| metrics.serviceMonitor | object | {"enabled":false,"interval":"30s","labels":{},"metricRelabelings":[],"namespace":"","namespaceSelector":{},"relabelings":[],"scrapeTimeout":"10s"} | ServiceMonitor configuration for Prometheus Operator |
| metrics.serviceMonitor.enabled | bool | false | Enable ServiceMonitor creation |
| metrics.serviceMonitor.interval | string | "30s" | Scrape interval |
| metrics.serviceMonitor.labels | object | {} | Must match Prometheus serviceMonitorSelector |
| metrics.serviceMonitor.metricRelabelings | list | [] | See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs |
| metrics.serviceMonitor.namespace | string | "" | ServiceMonitor namespace (defaults to release namespace) |
| metrics.serviceMonitor.namespaceSelector | object | {} | Namespace selector for ServiceMonitor |
| metrics.serviceMonitor.relabelings | list | [] | See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config |
| metrics.serviceMonitor.scrapeTimeout | string | "10s" | Scrape timeout |
| migrationJob.activeDeadlineSeconds | int | 300 | Maximum duration in seconds for the migration job to complete. The job is terminated if it exceeds this time |
| migrationJob.annotations | object | {} | Example: Set TTL for automatic cleanup ttlSecondsAfterFinished: "86400" # Delete job after 24 hours |
| migrationJob.backoffLimit | int | 3 | Number of retries before the migration job is marked as failed |
| migrationJob.cleanupActiveDeadlineSeconds | int | 120 | Maximum duration in seconds for the cleanup hook to complete |
| migrationJob.cleanupBackoffLimit | int | 1 | Retries before the cleanup hook is marked as failed |
| migrationJob.cleanupImage | object | {"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.resources | object | {"requests":{"cpu":"10m","memory":"32Mi"}} | Resource requests for the cleanup container |
| migrationJob.cleanupTtlSecondsAfterFinished | int | 300 | Seconds after the cleanup hook finishes before Kubernetes deletes it |
| migrationJob.command | string | nil | Example for EF Core: ["dotnet", "ef", "database", "update"] |
| migrationJob.containerEnvFrom | list | [] | Load environment variables from ConfigMaps or Secrets |
| migrationJob.enabled | bool | false | Creates a Kubernetes Job to run database migrations before app deployment |
| migrationJob.environmentVariables | list | [] | Use Vault syntax for secrets: vault:/secret/data/path#key |
| migrationJob.historyLimit | int | 3 | Number 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.pullPolicy | string | "IfNotPresent" | |
| migrationJob.image.repository | string | "" | Should contain your database migration tooling (e.g., dotnet ef, flyway, liquibase) |
| migrationJob.image.tag | string | "" | Allows independent versioning of migrations |
| migrationJob.initContainerImage | object | {"pullPolicy":"IfNotPresent","repository":"groundnuty/k8s-wait-for","tag":"v2.0"} | Production recommendation: Mirror this image to your private registry |
| migrationJob.resources | object | {"requests":{"cpu":"100m","memory":"256Mi"}} | Resource requests for migration job container Limits intentionally omitted to allow VPA recommendations |
| migrationJob.volumeMounts | list | [] | |
| migrationJob.volumes | list | [] | |
| migrationJob.waitForItInInitContainer | bool | false | Use true for long-running migrations (>5 minutes) to avoid Helm timeouts |
| nameOverride | string | "" | Rarely needed, defaults to chart name "webapp" |
| networkPolicy | object | {"egress":{"customRules":[],"dns":{"to":[]},"enabled":false},"enabled":false,"ingress":{"allowExternal":false,"customRules":[],"namespaceSelector":{},"podSelector":{},"prometheusNamespaceSelector":{}}} | Network policy configuration |
| networkPolicy.egress | object | {"customRules":[],"dns":{"to":[]},"enabled":false} | Egress rules configuration |
| networkPolicy.egress.customRules | list | [] | Custom egress rules (advanced) |
| networkPolicy.egress.dns | object | {"to":[]} | DNS egress configuration |
| networkPolicy.egress.dns.to | list | [] | 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.enabled | bool | false | Enable egress rules (restricts outbound traffic) |
| networkPolicy.enabled | bool | false | Enable NetworkPolicy creation |
| networkPolicy.ingress | object | {"allowExternal":false,"customRules":[],"namespaceSelector":{},"podSelector":{},"prometheusNamespaceSelector":{}} | Ingress rules configuration |
| networkPolicy.ingress.allowExternal | bool | false | Allow external client connections (beyond pod-to-pod) Requires at least one of namespaceSelector or podSelector to be set |
| networkPolicy.ingress.customRules | list | [] | Custom ingress rules (advanced) |
| networkPolicy.ingress.namespaceSelector | object | {} | Namespace selector for allowed clients Example: namespaceSelector: { matchLabels: { name: "app-namespace" } } |
| networkPolicy.ingress.podSelector | object | {} | Pod selector for allowed clients Example: podSelector: { matchLabels: { app: "my-app" } } |
| networkPolicy.ingress.prometheusNamespaceSelector | object | {} | Namespace selector for Prometheus Example: prometheusNamespaceSelector: { matchLabels: { name: "monitoring" } } |
| nodeSelector | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartwebapp is pinned at v3.6.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