universal-legacy

by tina.junold

Helm chartv1.0.3App 1.0.0Verified publisher

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 multiple flag 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

NameEmailUrl
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

ParameterDescriptionDefault
nameOverrideOverrides the name of the chart used to construct kubernetes object names.""
fullnameOverrideOverrides fully generated kubernetes object names.""
global.image.repositoryThe repository, where the image is located.""
global.image.pullPolicyThis affects the way kubelet attempts to pull the specified image.IfNotPresent
global.image.pullSecretsSecrets that must be used the pull the specified image from the repository.[ ]
global.image.tagOverrides the image tag whose default is the chart appVersion.""
global.envAdds env variables via name and value globally. More Information: Define Environment Variables for a Container[ ]
global.podAnnotationsAnnotations for a pod. _More Information{ }
global.podSecurityContextSecurity context for a pod. More Information: Set the security context for a Pod{ }
global.containerSecurityContextSecurity context for a container. More Information: Set the security context for a Container{ }
global.resourcesSet the default resources for a container. Can be overwritten in deployment, cronjob or job. More Information: Resource Management for Pods and Containersrequests:  cpu: 100m  memory: 128Milimits:  cpu: 100m  memory: 128Mi
global.nodeSelectorAssign the go pod based on labels to a node. More Information: Assigning Pods to Nodes{ }
global.affinityAssign the go pod based on expressive syntax to a node. More Information: Assigning Pods to Nodes{ }
global.tolerationsAssign the go pod based on labels to a node. More Information: Taints and Tolerations[ ]
global.cronjob.backoffLimitSet the backoff limit for all cronjobs. More Information: Pod backoff failure policy-
global.cronjob.concurrencyPolicyCan an instance of a cronjob run while another instance is running. More Information: Concurrency Policy-
global.cronjob.failedJobsHistoryLimitKeep last failed jobs. More Information: Jobs History Limits-
global.cronjob.successfulJobsHistoryLimitKeep last successful jobs. More Information: Jobs History Limits-
global.cronjob.restartPolicyTry to restart the pod in case of an issue. More Information: Container Restart Policy-
global.job.backoffLimitSet the backoff limit for all jobs. More Information: Pod backoff failure policy-
global.serviceAccountNameServiceaccount name to enable usage of AWS IAM roles-
global.terminationGracePeriodSecondsGlobal optional duration in seconds the pod needs to terminate gracefully. Defaults to 30 seconds.-

Deployment

ParameterDescriptionDefault
deployment.multipleTreat 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartuniversal-legacy is pinned at v1.0.3 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