common
Function library for Helm charts
About this chart
common
Function library for Helm charts
This chart is not maintained by the upstream project and any issues with the chart should be raised here
Source Code
Requirements
Kubernetes: >=1.31.0-0
Dependencies
| Repository | Name | Version |
|---|
TL;DR
helm repo add retsamedoc https://retsamedoc.github.io/helm-charts/
helm repo update
helm install common retsamedoc/common
Installing the Chart
To install the chart with the release name common
helm install common retsamedoc/common
Uninstalling the Chart
To uninstall the common deployment
helm uninstall common
The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.
Configuration
Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.
Specify each parameter using the --set key=value[,key=value] argument to helm install.
helm install common \
--set env.TZ="America/New York" \
retsamedoc/common
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
helm install common retsamedoc/common -f values.yaml
Custom configuration
N/A
Values
Important: When deploying an application Helm chart you can add more values from the common library chart here
| Key | Type | Default | Description |
|---|---|---|---|
| backendTLSPolicy | object | See below | Gateway API BackendTLSPolicy objects (TLS from Gateway to backend Service). Requires Gateway API CRDs with BackendTLSPolicy support (Standard since 1.4). backendTLSPolicy: main: targetRefs: - kind: Service identifier: main validation: hostname: app.example.com wellKnownCACertificates: System |
| configMaps | object | See below | Kubernetes ConfigMaps to be generated by the chart. Additional ConfigMaps can be added by adding a dictionary key similar to the 'config' object. |
| configMapsFromFolder | object | {"autoDetectBinary":false,"configMapsOverrides":{},"enabled":false} | Generate ConfigMaps from files in the chart filesystem |
| configMapsFromFolder.autoDetectBinary | string | false | Base path containing configmap subfolders basePath: |
| controllers | object | See below | Define the Pod controllers to be generated by the chart. Each key is a controller identifier. Supported types: deployment (default), statefulset, daemonset, cronjob, job. controllers: main: containers: main: image: repository: nginx tag: latest |
| defaultPodOptions | object | {"affinity":{},"annotations":{},"automountServiceAccountToken":false,"dnsConfig":{},"enableServiceLinks":false,"hostAliases":[],"hostIPC":false,"hostNetwork":false,"hostPID":false,"hostUsers":null,"imagePullSecrets":[],"labels":{},"nodeSelector":{},"resizePolicy":[],"resourceClaims":[],"resources":{},"schedulingGates":[],"securityContext":{},"shareProcessNamespace":null,"terminationGracePeriodSeconds":null,"tolerations":[],"topologySpreadConstraints":[]} | Set default options for all controllers / pods here. Each of these options can be overridden on a controller level. Useful for setting node selectors, tolerations, security contexts, or service accounts that should apply to every pod. |
| defaultPodOptions.affinity | object | {} | Set affinity constraint rules. Helm templates can be used. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity |
| defaultPodOptions.annotations | object | {} | Annotations to set on the item. |
| defaultPodOptions.automountServiceAccountToken | bool | false | Set to true to automatically mount the service account token. |
| defaultPodOptions.dnsConfig | object | {} | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. Configuring the ndots option may resolve nslookup issues on some Kubernetes setups. |
| defaultPodOptions.enableServiceLinks | bool | false | Enable/disable the generation of environment variables for services. See https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service |
| defaultPodOptions.hostAliases | list | [] | Use hostAliases to add custom entries to /etc/hosts - mapping IP addresses to hostnames. See https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ |
| defaultPodOptions.hostIPC | bool | false | Set to true to use the host's ipc namespace. |
| defaultPodOptions.hostNetwork | bool | false | Set to false to disable host networking on the Pod. When using hostNetwork, make sure you set dnsPolicy to 'ClusterFirstWithHostNet' |
| defaultPodOptions.hostPID | bool | false | Set to true to use the host's pid namespace. |
| defaultPodOptions.hostUsers | bool | nil | Set to false to create a new userns for the Pod. (Requires Kubernetes 1.29 or newer) |
| defaultPodOptions.imagePullSecrets | list | [] | Set image pull secrets. |
| defaultPodOptions.labels | object | {} | Labels to set on the item. |
| defaultPodOptions.nodeSelector | object | {} | Node selection constraint. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
| defaultPodOptions.resizePolicy | list | [] | Pod-level resize policy for controlling container restart on resource resize. (Requires Kubernetes 1.36 or newer with InPlacePodLevelResourcesVerticalScaling enabled) |
| defaultPodOptions.resourceClaims | list | [] | ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. (Requires Kubernetes 1.32 or newer) |
| defaultPodOptions.resources | object | {} | Set the resource requests / limits for the Pod. (Requires Kubernetes 1.32 or newer) |
| defaultPodOptions.schedulingGates | list | [] | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-scheduling-readiness/ |
| defaultPodOptions.securityContext | object | {} | Configure the Security Context for the Pod. |
| defaultPodOptions.shareProcessNamespace | bool | nil | Allows sharing process namespace between containers in a Pod. See https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/ |
| defaultPodOptions.terminationGracePeriodSeconds | int | nil | Duration in seconds the pod needs to terminate gracefully. See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle |
| defaultPodOptions.tolerations | list | [] | Specify taint tolerations. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
| defaultPodOptions.topologySpreadConstraints | list | [] | Defines topologySpreadConstraint rules. See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |
| defaultPodOptionsStrategy | string | "overwrite" | Set the strategy for the default pod options. Defaults to overwrite. overwrite: If pod-level options are set, use those instead of the defaults. merge: If pod-level options are set, merge them with the defaults. |
| global | object | {"alwaysAppendIdentifierToResourceName":false,"annotations":{},"createDefaultServiceAccount":true,"fullnameOverride":null,"labels":{},"nameOverride":null,"propagateGlobalMetadataToPods":false} | Allows for configuring chart-wide settings |
| global.alwaysAppendIdentifierToResourceName | bool | false | Always append identifier slugs to resource names, regardless of the enabled resource count. |
| global.annotations | object | {} | Set additional global annotations. Helm templates can be used. |
| global.createDefaultServiceAccount | bool | true | When true (default), automatically create a dedicated ServiceAccount using the release name as the identifier if no serviceAccount is explicitly configured. If any serviceAccount entries are present, the default is not created and user configuration takes precedence. |
| global.fullnameOverride | string | nil | Set the chart fullname definition |
| global.labels | object | {} | Set additional global labels. Helm templates can be used. |
| global.nameOverride | string | nil | Set the chart name |
| global.propagateGlobalMetadataToPods | bool | false | Set to true to propagate global metadata to Pod labels. |
| ingress | object | See below | Kubernetes Ingress objects to be generated by the chart. Each key is an ingress identifier. ingress: main: className: nginx hosts: - host: app.example.com paths: - path: / pathType: Prefix service: identifier: main port: http |
| networkPolicy | object | See below | networkPolicy objects to be generated by the chart. Additional networkPolicies can be added by adding a dictionary key similar to the 'main' networkPolicy. (Top-level key is networkPolicy, not networkpolicies.) |
| persistence | object | See below | Configure persistent storage and mount options. Each key is an identifier for a persistence item. Supported types: persistentVolumeClaim (default), configMap, secret, nfs, emptyDir, hostPath, image, custom. By default each item mounts to /. Use globalMounts or advancedMounts to customize mount paths. persistence: config: type: persistentVolumeClaim accessMode: ReadWriteOnce size: 1Gi globalMounts: - path: /config tmp: type: emptyDir persistence: config: type: persistentVolumeClaim accessMode: ReadWriteOnce size: 1Gi persistence: config: type: persistentVolumeClaim accessMode: ReadWriteOnce size: 10Gi storageClass: fast-ssd retain: true globalMounts: - path: /config |
| podMonitor | object | See below | podMonitor objects to be generated by the chart. Additional PodMonitors can be added by adding a dictionary key similar to the 'main' PodMonitor. |
| rawResources | object | See below | Allows for the inclusion of raw Kubernetes resources that are not supported by the chart otherwise​ |
| rbac | object | {"bindings":{},"roles":{}} | Configure the Roles and Role Bindings for the chart here |
| rbac.bindings | Cluster | See below | RoleBinding objects to be generated by the chart |
| rbac.roles | Cluster | See below | Role objects to be generated by the chart |
| route | object | See below | Kubernetes Gateway API *Route objects to be generated by the chart. Additional routes can be added by adding a dictionary key similar to the 'main' route. See https://gateway-api.sigs.k8s.io/references/spec/ for the Gateway API specification. Requires Gateway API CRDs on the cluster (not bundled with k3s by default). route: main: kind: HTTPRoute parentRefs: - name: my-gateway namespace: kube-system sectionName: https hostnames: - app.example.com rules: - matches: - path: type: PathPrefix value: / backendRefs: - identifier: main port: http |
| secrets | object | See below | Kubernetes Secrets to be generated by the chart. Be aware that these values are not encrypted by default, and could therefore be visible to anybody with access to the values.yaml file. Additional Secrets can be added by adding a dictionary key similar to the 'secret' object. |
| secretsFromFolder | object | {"enabled":false,"overrides":{}} | Generate Secrets from files in the chart filesystem |
| secretsFromFolder.overrides | string | See below | Base path containing secret subfolders basePath: |
| service | object | See below | Kubernetes Service objects to be generated by the chart. Each key is a service identifier. service: main: controller: main ports: http: port: 80 |
| serviceAccount | object | See below | Kubernetes serviceAccount objects to be generated by the chart |
| serviceMonitor | object | See below | serviceMonitor objects to be generated by the chart. Additional ServiceMonitors can be added by adding a dictionary key similar to the 'main' ServiceMonitor. |
Support
- Open an issue
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy common with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has common 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 chartcommon is pinned at v26.9.0 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