onechart
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
Servicecreation with sticky session support. - Comprehensive
Ingresssupport with TLS, annotations, and Nginx Basic Auth. - First-class support for Kong Plugins (Rate limiting, CORS, Request Transformer).
- Automatic
- 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, andSealedSecrets. - Secure integration with external secret managers (AWS, GCP, Vault) via CSI
SecretProviderClass.
- Manage environment variables via
- Persistence: Easy
PersistentVolumeClaim(PVC) management for stateful workloads via thevolumesconfiguration. - Observability: Built-in Prometheus
ServiceMonitorandPrometheusRuletemplates 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:
- 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).
- HPA Awareness: If Horizontal Pod Autoscaling (HPA) is enabled, the logic uses
autoscaling.minReplicasto determine the minimum number of pods. If HPA is not enabled, it uses the staticreplicasvalue. - Default Safety: If PDB is enabled (
podDisruptionBudgetEnabled: true) but neitherpodDisruptionBudgetMinAvailablenorpodDisruptionBudgetMaxUnavailableis specified, it defaults tominAvailable: 1.
Configuration Reference
The following table lists the most commonly used configuration parameters.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image repository | nginx |
image.tag | Image tag | latest |
replicas | Number of replicas (if HPA is disabled) | 1 |
vars | Dictionary of environment variables | {} |
resources | Pod resource requests and limits | cpu: 200m, mem: 200Mi |
ingress.host | Ingress hostname | nil |
ingress.tlsEnabled | Enable TLS for ingress | false |
podDisruptionBudgetEnabled | Enable Smart PDB logic | true |
volumes | List of volumes and mounts (supports PVC) | [] |
monitor.enabled | Enable Prometheus ServiceMonitor | false |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartonechart is pinned at v0.77.1 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