onechart

by Southern Lights

Helm chartv0.77.1Verified publisher

One chart to rule them all. A generic Helm chart for your application deployments. Because no-one can remember the Kubernetes yaml syntax.

About this chart

OneChart

OneChart is a generic, highly configurable Helm chart designed to standardize deployments across your Kubernetes clusters. Instead of maintaining dozens of near-identical charts, OneChart provides a single, robust interface for almost any application deployment, following industry best practices by default.

Feature Highlights

  • Standard Deployment: Streamlined configuration for replicas, resource limits/requests, and liveness/readiness/startup probes.
  • Networking:
    • Automatic Service creation with sticky session support.
    • Comprehensive Ingress support with TLS, annotations, and Nginx Basic Auth.
    • First-class support for Kong Plugins (Rate limiting, CORS, Request Transformer).
  • Scaling & Availability:
    • HPA: Horizontal Pod Autoscaler integration for dynamic scaling based on CPU/Memory.
    • Smart PDB: Intelligent Pod Disruption Budget management that respects HPA settings and ensures cluster stability.
  • Security & Configuration:
    • Manage environment variables via vars.
    • Native support for Secrets, ConfigMaps, and SealedSecrets.
    • Secure integration with external secret managers (AWS, GCP, Vault) via CSI SecretProviderClass.
  • Persistence: Easy PersistentVolumeClaim (PVC) management for stateful workloads via the volumes configuration.
  • Observability: Built-in Prometheus ServiceMonitor and PrometheusRule templates for unified monitoring.

Installation

Add the OneChart Helm repository:

helm repo add onechart https://chart.onechart.dev

Install the chart:

helm install my-release onechart/onechart \
  --set image.repository=nginx \
  --set image.tag=1.21.0

Core Concepts

The "OneChart" Philosophy

The goal of OneChart is to provide a unified set of parameters that cover 90% of common deployment needs. By standardizing the interface, platform teams can ensure consistent security policies, observability, and operational standards across all teams without requiring every developer to become a Helm expert.

Smart PDB Logic

OneChart implements "Smart PDB" logic to prevent misconfigurations that could block cluster maintenance or cause application downtime:

  1. Minimum Replicas Check: A PDB is only created if the effective minimum number of replicas is greater than 1. This ensures that single-replica deployments do not get a PDB that would prevent them from being evicted (which would freeze node upgrades).
  2. HPA Awareness: If Horizontal Pod Autoscaling (HPA) is enabled, the logic uses autoscaling.minReplicas to determine the minimum number of pods. If HPA is not enabled, it uses the static replicas value.
  3. Default Safety: If PDB is enabled (podDisruptionBudgetEnabled: true) but neither podDisruptionBudgetMinAvailable nor podDisruptionBudgetMaxUnavailable is specified, it defaults to minAvailable: 1.

Configuration Reference

The following table lists the most commonly used configuration parameters.

ParameterDescriptionDefault
image.repositoryImage repositorynginx
image.tagImage taglatest
replicasNumber of replicas (if HPA is disabled)1
varsDictionary of environment variables{}
resourcesPod resource requests and limitscpu: 200m, mem: 200Mi
ingress.hostIngress hostnamenil
ingress.tlsEnabledEnable TLS for ingressfalse
podDisruptionBudgetEnabledEnable Smart PDB logictrue
volumesList of volumes and mounts (supports PVC)[]
monitor.enabledEnable Prometheus ServiceMonitorfalse

Examples

Simple Nginx Deployment

image:
  repository: nginx
  tag: 1.21.0
replicas: 3
containerPort: 80

Ingress with Basic Auth

ingress:
  host: my-app.example.com
  ingressClassName: nginx
  tlsEnabled: true
  nginxBasicAuth:
    user: southernlights
    password: changeme

High Availability with HPA

replicas: 2
autoscaling:
  minReplicas: 3
  maxReplicas: 10
  cpuAverageUtilization: 80

AWS Secrets Manager Integration

secrets:
  secretManager:
    name: "production/my-app"
    keys:
      - "DB_PASSWORD"
      - "API_KEY"
    keyMappings:
      DATABASE_URL_KEY: "DATABASE_URL"

For a full list of parameters, see the values.yaml file or the JSON Schema.

Deploy onechart with OpenTenant

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