This chart provides a common template helpers which can be used to develop new charts using Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
Kubernetes 1.12+
Helm 3.1.0
Parameters
The following table lists the helpers available in the library which are scoped in different sections.
Affinities
Helper identifier
Description
Expected Input
common.affinities.node.soft
Return a soft nodeAffinity definition
dict "key" "FOO" "values" (list "BAR" "BAZ")
common.affinities.node.hard
Return a hard nodeAffinity definition
dict "key" "FOO" "values" (list "BAR" "BAZ")
common.affinities.pod.soft
Return a soft podAffinity/podAntiAffinity definition
dict "component" "FOO" "context" $
common.affinities.pod.hard
Return a hard podAffinity/podAntiAffinity definition
dict "component" "FOO" "context" $
Capabilities
Helper identifier
Description
Expected Input
common.capabilities.kubeVersion
Return the target Kubernetes version (using client default if .Values.kubeVersion is not set).
. Chart context
common.capabilities.cronjob.apiVersion
Return the appropriate apiVersion for cronjob.
. Chart context
common.capabilities.deployment.apiVersion
Return the appropriate apiVersion for deployment.
. Chart context
common.capabilities.statefulset.apiVersion
Return the appropriate apiVersion for statefulset.
. Chart context
common.capabilities.ingress.apiVersion
Return the appropriate apiVersion for ingress.
. Chart context
common.capabilities.rbac.apiVersion
Return the appropriate apiVersion for RBAC resources.
. Chart context
common.capabilities.crd.apiVersion
Return the appropriate apiVersion for CRDs.
. Chart context
common.capabilities.policy.apiVersion
Return the appropriate apiVersion for podsecuritypolicy.
. Chart context
common.capabilities.networkPolicy.apiVersion
Return the appropriate apiVersion for networkpolicy.
. Chart context
common.capabilities.supportsHelmVersion
Returns true if the used Helm version is 3.3+
. Chart context
Errors
Helper identifier
Description
Expected Input
common.errors.upgrade.passwords.empty
It will ensure required passwords are given when we are upgrading a chart. If validationErrors is not empty it will throw an error and will stop the upgrade action.
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 v1.10.6 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