universal-legacy
by tina.junold
The universal chart can be used to create full applications customizing the values.
About this chart
Universal-Legacy Helm Chart
The universal chart can be used to create full applications customizing the values.
Homepage: https://gitlab.com/ideaplexus/charts
Legacy chart. It is kept for existing releases and receives fixes only. New deployments should use the universal chart, which replaces the
multipleflag with plain dictionaries and adds StatefulSets, DaemonSets, PodDisruptionBudgets, RBAC and per-workload images.
Table of Contents
- Table of Contents
- Maintainers
- Source Code
- Single or Multiple Resources
- Configuration
- Common and global
- Deployment
- Service
- Ingress
- TraefikMiddleware
- Autoscaling
- Secret
- CronJob
- Job
- Examples
- Only Deployment and Service; e.g. private API
- Deployment, Service, Ingress and Job; e.g. public REST API
- CronJob
Maintainers
| Name | Url | |
|---|---|---|
| Tina Junold | [email protected] | https://ideaplexus.com |
Source Code
Single or Multiple Resources
deployment, service and autoscaling each work in two modes.
With multiple: false (the default) the keys of the block describe one
resource, named after the release:
deployment:
enabled: true
replicaCount: 2
With multiple: true every key that is not one of the block's own
parameters becomes a resource of its own and the key is appended to the release
name as a suffix. The reserved keys are ignored in this mode, so each entry has
to carry its own enabled and replicaCount:
deployment:
multiple: true
web:
enabled: true
replicaCount: 2
worker:
enabled: true
replicaCount: 1
Named deployments also get an app.kubernetes.io/component label with the key
as its value. A named service can point at one of them with deployment: web,
which adds that component to the service selector.
A named entry without replicaCount renders replicas: empty and Kubernetes
falls back to one replica. Set it explicitly to avoid the surprise.
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.pullPolicy | This affects the way kubelet attempts to pull the specified image. | IfNotPresent |
global.image.pullSecrets | Secrets that must be used the pull the specified image from the repository. | [ ] |
global.image.tag | Overrides the image tag whose default is the chart appVersion. | "" |
global.env | Adds env variables via name and value globally. More Information: Define Environment Variables for a Container | [ ] |
global.podAnnotations | Annotations for a pod. _More Information | { } |
global.podSecurityContext | Security context for a pod. More Information: Set the security context for a Pod | { } |
global.containerSecurityContext | Security context for a container. More Information: Set the security context for a Container | { } |
global.resources | Set the default resources for a container. Can be overwritten in deployment, cronjob or job. More Information: Resource Management for Pods and Containers | requests: cpu: 100m memory: 128Milimits: cpu: 100m memory: 128Mi |
global.nodeSelector | Assign the go pod based on labels to a node. More Information: Assigning Pods to Nodes | { } |
global.affinity | Assign the go pod based on expressive syntax to a node. More Information: Assigning Pods to Nodes | { } |
global.tolerations | Assign the go pod based on labels to a node. More Information: Taints and Tolerations | [ ] |
global.cronjob.backoffLimit | Set the backoff limit for all cronjobs. More Information: Pod backoff failure policy | - |
global.cronjob.concurrencyPolicy | Can an instance of a cronjob run while another instance is running. More Information: Concurrency Policy | - |
global.cronjob.failedJobsHistoryLimit | Keep last failed jobs. More Information: Jobs History Limits | - |
global.cronjob.successfulJobsHistoryLimit | Keep last successful jobs. More Information: Jobs History Limits | - |
global.cronjob.restartPolicy | Try to restart the pod in case of an issue. More Information: Container Restart Policy | - |
global.job.backoffLimit | Set the backoff limit for all jobs. More Information: Pod backoff failure policy | - |
global.serviceAccountName | Serviceaccount name to enable usage of AWS IAM roles | - |
global.terminationGracePeriodSeconds | Global optional duration in seconds the pod needs to terminate gracefully. Defaults to 30 seconds. | - |
Deployment
| Parameter | Description | Default |
|---|---|---|
deployment.multiple | Treat every key other than the reserved ones as a deployment of its own. Se |
Deploy universal-legacy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has universal-legacy 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-legacy is pinned at v1.0.3 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