Helm chartv12.12.1Apache-2.0Verified publisher

Bedag's common Helm chart to use for creating other Helm charts

About this chart

common

Bedag's common Helm chart to use for creating other Helm charts

Maintainers

NameEmailUrl
SRE[email protected]

Source Code

Major Changes

Major Changes to functions are documented with the version affected. Before upgrading the dependency version, check this section out!

ChangeChart VersionDescriptionCommits/PRs
logPersistence removed8.0.0Removes logPersistence functionality as it can be achieved with volumeMounts & extraVolumeClaimTemplates and is buggy anyway.https://github.com/bedag/helm-charts/pull/68
networkpolicy template changes9.0.0add possibility to define more than one Port in networkpolicyhttps://github.com/bedag/helm-charts/pull/70
networkpolicy template changes10.0.0add possibility to create multiple networkpolicieshttps://github.com/bedag/helm-charts/pull/77
ingress template changes11.0.0add possibility to create multiple ingress objectshttps://github.com/bedag/helm-charts/pull/134
ingress template changes12.0.0support defining multiple hosts and secrets for one ingresshttps://github.com/bedag/helm-charts/pull/138

Values by Component

Ingress

KeyTypeDefaultDescription
ingresses.ingress-1.annotationsobject{"nginx.ingress.kubernetes.io/ssl-redirect":"true"}annotations is a dictionary for defining ingress controller specific annotations
ingresses.ingress-1.annotations."nginx.ingress.kubernetes.io/ssl-redirect"string"true"nginx.ingress.kubernetes.io/ssl-redirect needs to be set to 'true' when using SSL/TLS offloading with a LB outside of Kubernetes
ingresses.ingress-1.deployboolfalsedeploy has to be set to true for rendering to be applied
ingresses.ingress-1.ingressClassNamestring""ingressClassName, defines the class of the ingress controller.
ingresses.ingress-1.ruleslist[{"host":"myapp.cluster.local","http":{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]},"secretName":""}]rules is a list of host rules used to configure the Ingress
ingresses.ingress-1.rules[0]object{"host":"myapp.cluster.local","http":{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]},"secretName":""}host is the URL which ingress is listening
ingresses.ingress-1.rules[0].httpobject{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]}http is a list of http selectors pointing to backends
ingresses.ingress-1.rules[0].http.pathslist[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]paths is a list of paths that map requests to backends
ingresses.ingress-1.rules[0].http.paths[0]object{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}backend defines the referenced service endpoint to which the traffic will be forwarded to
ingresses.ingress-1.rules[0].http.paths[0].backend.serviceNameSuffixstring"component-1"serviceNameSuffix describes the suffix of the serviceName
ingresses.ingress-1.rules[0].http.paths[0].backend.servicePortstring"http"servicePort describes the port where the service is listening at (can be either a string or a number)
ingresses.ingress-1.rules[0].http.paths[0].pathstring"/"path which ingress is listening
ingresses.ingress-1.rules[0].http.paths[0].pathTypestring"ImplementationSpecific"pathType Each path in an Ingress is required to have a corresponding path type. Comment out for using default ("ImplementationSpecific")
ingresses.ingress-1.rules[0].secretNamestring""name of existing secrets with tls.crt & tls.key content
ingresses.ingress-1.tls.provided.certstring""If SSL is terminated on ingress and you have a generated (preferrably CERT-001) certificate/key Has to be base64 encoded and should be encrypted in the ejson vault Add Variable to your CI/CD Settings "SKIP_DECRYPT" with value "" that it doesnt decrypt the cert and fails.
ingresses.ingress-1.tls.provided.keystring""The key must not have a passphrase
ingresses.ingress-1.tls.selfobject{"alternativeDnsNames":[],"commonName":"*.cluster.local","ipAddresses":[],"validityDuration":365}depending on the type you have further configuration options:
ingresses.ingress-1.tls.self.alternativeDnsNameslist[]alternativeDnsNames is an optional list of DNS names to add in the Subject Alternative Names (SAN) sectiom
ingresses.ingress-1.tls.self.commonNamestring"*.cluster.local"commonName of the certificate (mandatory)
ingresses.ingress-1.tls.self.ipAddresseslist[]ipAddresses is an optional list of IP addresses to add in the Subject Alternative Names (SAN) section
ingresses.ingress-1.tls.self.validityDurationint365validityDuration defines how long the certificate is valid (in days)
ingresses.ingress-1.tls.typestring"none"define your type of tls certificate, it can be one of: none: tls will be disabled existing: use an existing secret already present in the namespace. Requires secretName to be specified in .rules.host provided: use an officially generated certificate/key k8s: use the default k8s-ingress tls. no further configuration needed self: generate a self signed certificate, which is stored as secret. Needs commonName and validityDuration at least

ServiceMonitor

KeyTypeDefaultDescription
servicemonitor.basicAuthobject{"enabled":false,"existingSecret":"","newSecret":{},"passwordKey":"password","userKey":"username"}basicAuth is a dictionary for defining values for setting up basic Authentication
servicemonitor.basicAuth.enabledboolfalseenabled when set to 'true', adds basic authentication to all endpoints
servicemonitor.basicAuth.existingSecretstring""existingSecret if not empty (""), points to an existing secret (matching name of the resource)
servicemonitor.basicAuth.newSecretobject{}newSecret is a dictionary for defining key/value pairs to be stored in a new secret (See values.yaml)
servicemonitor.basicAuth.passwordKeystring"password"passwordKey is the default key to grab the password in the secret
servicemonitor.basicAuth.userKeystring"username"userKey is the default key to grab the username in the secret
servicemonitor.deployboolfalsedeploy has to be set to true for rendering to be applied
servicemonitor.endpointsobject{}

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 v12.12.1 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