vald-helm-operator

by Vdaas

Helm chartv1.8.1

A Helm chart for vald-helm-operator

About this chart

vald-helm-operator

This is a Helm chart to install vald-helm-operator.

Current chart version is v1.8.1

Table of Contents

  • Install
  • Custom Resources
    • ValdRelease
    • ValdHelmOperatorRelease
  • Configuration

Install

Add Vald Helm repository

$ helm repo add vald https://vald.vdaas.org/charts

Run the following command to install the chart,

$ helm install vald-helm-operator-release vald/vald-helm-operator

Upgrading the version

Please upgrade the CRDs first because Helm doesn't have a support to upgrade CRDs.

$ kubectl replace -f https://raw.githubusercontent.com/vdaas/vald/v1.8.1/charts/operator/helm/crds/valdrelease.yaml
$ kubectl replace -f https://raw.githubusercontent.com/vdaas/vald/v1.8.1/charts/operator/helm/crds/valdhelmoperatorrelease.yaml

After upgrading CRDs, you can upgrade the operator. If you're using valdhelmoperatorrelease (or vhor) resource, please update the spec.image.tag field of it.

$ kubectl patch vhor vhor-release -p '{"spec":{"image":{"tag":"v1.8.1"}}}'

On the other hand, please update the operator's deployment manually.

Custom Resources

ValdRelease

This is a custom resource that represents values of the Vald Helm chart.

Example:

apiVersion: vald.vdaas.org/v1
kind: ValdRelease
metadata:
  name: vald-cluster
# the values of Helm chart for Vald can be placed under the `spec` field.
spec: {}

ValdHelmOperatorRelease

This is a custom resource that represents values of the vald-helm-operator Helm chart.

Example:

apiVersion: vald.vdaas.org/v1
kind: ValdHelmOperatorRelease
metadata:
  name: vald-helm-operator-release
# the values of Helm chart for vald-helm-operator can be placed under the `spec` field.
spec: {}

Configuration

KeyTypeDefaultDescription
affinityobject{}affinity
annotationsobject{}deployment annotations
enableLeaderElectionbooltrueenable leader election for controller manager.
enableMetricsbooltrueenable metrics endpoint
healthPortint8081port of health endpoint
image.pullPolicystring"Always"image pull policy
image.registrystring""image registry (e.g. "myregistry.example.com")
image.repositorystring"vdaas/vald-helm-operator"image repository
image.tagstring"v1.8.1"image tag
leaderElectionIDstring"vald-helm-operator"name of the configmap that is used for holding the leader lock.
livenessProbe.enabledbooltrueenable liveness probe.
livenessProbe.failureThresholdint2liveness probe failure threshold
livenessProbe.httpGet.pathstring"/healthz"readiness probe path
livenessProbe.httpGet.portstring"health"readiness probe port
livenessProbe.httpGet.schemestring"HTTP"readiness probe scheme
livenessProbe.initialDelaySecondsint15liveness probe initial delay seconds
livenessProbe.periodSecondsint20liveness probe period seconds
livenessProbe.successThresholdint1liveness probe success threshold
livenessProbe.timeoutSecondsint5liveness probe timeout seconds
logging.formatstring"console"logging format of operator (console or json)
logging.levelstring"info"logging level of operator (debug, info, or error)
logging.stacktraceLevelstring"error"minimum log level triggers stacktrace generation
maxConcurrentReconcilesint1max number of concurrent reconciles
metricsPortint6061port of metrics endpoint
namestring"vald-helm-operator"name of the deployment
namespacedbooltrueif it is true, operator will behave as a namespace-scoped operator, if it is false, it will behave as a cluster-scoped operator.
nodeSelectorobject{}node labels for pod assignment
podAnnotationsobject{}pod annotations
podSecurityContextobject{"fsGroup":65532,"fsGroupChangePolicy":"OnRootMismatch","runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532}security context for pod
rbac.createbooltruerequired roles and rolebindings will be created
rbac.namestring"vald-helm-operator"name of roles and rolebindings
readinessProbe.enabledbooltrueenable readiness probe.
readinessProbe.failur

Deploy vald-helm-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vald-helm-operator 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 chartvald-helm-operator is pinned at v1.8.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