universal
by tina.junold
The universal chart provides a flexible, opinionated way to deploy applications on Kubernetes. It supports multiple deployments, statefulsets, daemonsets, services, ingresses, HPAs, jobs, cronjobs, persistent volume claims and network policies through a clean dictionary-based configuration.
About this chart
Universal Helm Chart
The universal chart provides a flexible, opinionated way to deploy applications on Kubernetes. It supports multiple deployments, statefulsets, daemonsets, services, ingresses, HPAs, jobs, cronjobs, persistent volume claims and network policies through a clean dictionary-based configuration.
Homepage: https://gitlab.com/ideaplexus/charts
Table of Contents
- Table of Contents
- Maintainers
- Source Code
- Requirements
- Installation
- Basic Installation
- Installation from Source
- Upgrade from universal-legacy
- Configuration
- Common and global
- Deployment
- StatefulSet
- DaemonSet
- Service
- Ingress
- HorizontalPodAutoscaler
- PodDisruptionBudget
- CronJob
- Job
- ConfigMap
- Secret
- SecretEnv
- PersistentVolumeClaim
- NetworkPolicy
- TraefikMiddleware
- TraefikIngressRoute
- TraefikService
- TraefikServersTransport
- ExtraObjects
- Examples
- Single Deployment
- Multiple Deployments
- StatefulSet with Persistent Storage
- DaemonSet for Node Agent
- Full Stack Application
- Advanced Features
- Per-Workload Images
- Init Containers
- Sidecar Containers
- Lifecycle Hooks
- RBAC
- Pod Topology Spread Constraints
- Environment Variable Dependencies
- Traefik Middleware Integration
- Secrets and ConfigMaps
- Creating Secrets
- Creating ConfigMaps
- Mounting Secrets and ConfigMaps
- 1. As Environment Variables (envFrom)
- 2. As Volume Mounts
- Complete Example
- Vault Secret Integration
- Migration Guide
- Major Breaking Changes
- What Changed
- From universal-legacy to universal
- Single Resource Migration
- Multiple Resources Migration
- What Stays the Same
- Major Breaking Changes
- Testing
- Test Configuration
- Running Tests
- Unit Tests (Template Validation)
- Template Rendering Tests
- Lint Tests
- Integration Tests (Runtime)
- Run All Tests
- Test Value Files
- Disable Tests
- CI/CD Integration
- Test Types Explained
- 1. Connectivity Tests (
test-connection.yaml) - 2. Component Label Tests (
test-component-labels.yaml) - 3. Config Mount Tests (
test-config-mount.yaml) - 4. Env Dependency Tests (
test-env-dependencies.yaml)
- 1. Connectivity Tests (
- Troubleshooting Test Failures
- Test Pod Stuck in Pending
- Connectivity Test Fails
- Component Label Test Fails
- Config Mount Test Fails
- Troubleshooting
- Services Not Targeting Correct Pods
- HPA Not Scaling Deployment
- Environment Variable Circular Dependencies
- Schema Validation Errors
- Template Rendering Issues
- License
- Contributing
Maintainers
| Name | Url | |
|---|---|---|
| Tina Junold | [email protected] | https://ideaplexus.com |
Source Code
Requirements
- Kubernetes: >=1.35.0
- Helm: >= 3.x
This chart has no external dependencies - all functionality is self-contained.
Installation
Basic Installation
helm repo add ideaplexus https://charts.ideaplexus.com
helm install my-app ideaplexus/universal -f values.yaml
Installation from Source
helm install my-app ./charts/universal -f values.yaml
Upgrade from universal-legacy
- Backup your current values file
- Restructure according to the Migration Guide
- Perform upgrade:
helm upgrade my-app ideaplexus/universal -f values-v2.yaml
Configuration
Common and global
| Parameter | Description | Default |
|---|---|---|
nameOverride | Overrides the name of the chart used to construct Kubernetes object names. | "" |
fullnameOverride | Overrides fully generated Kubernetes object names. | "" |
global.image.repository | The repository where the image is located. | "" |
global.image.tag | Overrides the image tag (default is the chart appVersion). | "" |
global.image.pullPolicy | This affects the way kubelet attempts to pull the specified image. | IfNotPresent |
global.image.pullSecrets | List of registry secret names used to pull the image. | [] |
global.env | Global environment variables merged into all workloads. More Information: Define Environment Variables for a Container | null |
global.labels | Labels added to every resource the chart creates and to the pod template of every workload. Not added to the selector, which Kubernetes treats as immutable. | {} |
global.annotations | Annotations added to every resource the chart creates, including the helm test hooks, whose own hook annotations always win. A resource's own annotations take precedence. Pod annotations are set via global.podAnnotations. | {} |
global.podAnnotations | Annotations applied to all pods. | {} |
global.podSecurityContext | Security context for all pods. More Information: Set the security context for a Pod | {} |
global.containerSecurityContext | Security context for the main container of every deployment, statefulSet, daemonSet, job and cronJob. Init and sidecar containers carry their own, see Init Containers. More Information: Set the security context for a Container | {} |
global.resources | Default resource requests and limits for all containers. Can be overridden per deployment, statefulSet, daemonSet, cronJob, or job. More Information: Resource Management for Pods and Containers | requests: cpu: 100m memory: 128Milimits: cpu: 100m memory: 128Mi |
global.nodeSelector | Assign pods to nodes based on labels. More Information: Assigning Pods to Nodes | {} |
global.affinity | Assign pods to nodes using expressive rules. More Information: Assigning Pods to Nodes | {} |
Deploy universal with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has universal 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 chartuniversal is pinned at v1.6.2 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