Helm chartv26.9.0Verified publisher

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

RepositoryNameVersion

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

KeyTypeDefaultDescription
backendTLSPolicyobjectSee belowGateway 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
configMapsobjectSee belowKubernetes ConfigMaps to be generated by the chart. Additional ConfigMaps can be added by adding a dictionary key similar to the 'config' object.
configMapsFromFolderobject{"autoDetectBinary":false,"configMapsOverrides":{},"enabled":false}Generate ConfigMaps from files in the chart filesystem
configMapsFromFolder.autoDetectBinarystringfalseBase path containing configmap subfolders basePath:
controllersobjectSee belowDefine 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
defaultPodOptionsobject{"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.affinityobject{}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.annotationsobject{}Annotations to set on the item.
defaultPodOptions.automountServiceAccountTokenboolfalseSet to true to automatically mount the service account token.
defaultPodOptions.dnsConfigobject{}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.enableServiceLinksboolfalseEnable/disable the generation of environment variables for services. See https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
defaultPodOptions.hostAliaseslist[]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.hostIPCboolfalseSet to true to use the host's ipc namespace.
defaultPodOptions.hostNetworkboolfalseSet to false to disable host networking on the Pod. When using hostNetwork, make sure you set dnsPolicy to 'ClusterFirstWithHostNet'
defaultPodOptions.hostPIDboolfalseSet to true to use the host's pid namespace.
defaultPodOptions.hostUsersboolnilSet to false to create a new userns for the Pod. (Requires Kubernetes 1.29 or newer)
defaultPodOptions.imagePullSecretslist[]Set image pull secrets.
defaultPodOptions.labelsobject{}Labels to set on the item.
defaultPodOptions.nodeSelectorobject{}Node selection constraint. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
defaultPodOptions.resizePolicylist[]Pod-level resize policy for controlling container restart on resource resize. (Requires Kubernetes 1.36 or newer with InPlacePodLevelResourcesVerticalScaling enabled)
defaultPodOptions.resourceClaimslist[]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.resourcesobject{}Set the resource requests / limits for the Pod. (Requires Kubernetes 1.32 or newer)
defaultPodOptions.schedulingGateslist[]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.securityContextobject{}Configure the Security Context for the Pod.
defaultPodOptions.shareProcessNamespaceboolnilAllows sharing process namespace between containers in a Pod. See https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
defaultPodOptions.terminationGracePeriodSecondsintnilDuration in seconds the pod needs to terminate gracefully. See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle
defaultPodOptions.tolerationslist[]Specify taint tolerations. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
defaultPodOptions.topologySpreadConstraintslist[]Defines topologySpreadConstraint rules. See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
defaultPodOptionsStrategystring"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.
globalobject{"alwaysAppendIdentifierToResourceName":false,"annotations":{},"createDefaultServiceAccount":true,"fullnameOverride":null,"labels":{},"nameOverride":null,"propagateGlobalMetadataToPods":false}Allows for configuring chart-wide settings
global.alwaysAppendIdentifierToResourceNameboolfalseAlways append identifier slugs to resource names, regardless of the enabled resource count.
global.annotationsobject{}Set additional global annotations. Helm templates can be used.
global.createDefaultServiceAccountbooltrueWhen 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.fullnameOverridestringnilSet the chart fullname definition
global.labelsobject{}Set additional global labels. Helm templates can be used.
global.nameOverridestringnilSet the chart name
global.propagateGlobalMetadataToPodsboolfalseSet to true to propagate global metadata to Pod labels.
ingressobjectSee belowKubernetes 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
networkPolicyobjectSee belownetworkPolicy 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.)
persistenceobjectSee belowConfigure 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
podMonitorobjectSee belowpodMonitor objects to be generated by the chart. Additional PodMonitors can be added by adding a dictionary key similar to the 'main' PodMonitor.
rawResourcesobjectSee belowAllows for the inclusion of raw Kubernetes resources that are not supported by the chart otherwise​
rbacobject{"bindings":{},"roles":{}}Configure the Roles and Role Bindings for the chart here
rbac.bindingsClusterSee belowRoleBinding objects to be generated by the chart
rbac.rolesClusterSee belowRole objects to be generated by the chart
routeobjectSee belowKubernetes 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
secretsobjectSee belowKubernetes 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.
secretsFromFolderobject{"enabled":false,"overrides":{}}Generate Secrets from files in the chart filesystem
secretsFromFolder.overridesstringSee belowBase path containing secret subfolders basePath:
serviceobjectSee belowKubernetes Service objects to be generated by the chart. Each key is a service identifier. service: main: controller: main ports: http: port: 80
serviceAccountobjectSee belowKubernetes serviceAccount objects to be generated by the chart
serviceMonitorobjectSee belowserviceMonitor objects to be generated by the chart. Additional ServiceMonitors can be added by adding a dictionary key similar to the 'main' ServiceMonitor.

Support


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.

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