altinity-clickhouse-operator

by slamdev

Helm chartv0.1.2App 0.20.0

Helm chart to deploy [altinity-clickhouse-operator](https://github.com/Altinity/clickhouse-operator). The ClickHouse Operator creates, configures and manages ClickHouse clusters running on Kubernetes. Refer to operator repo for additional information.

About this chart

altinity-clickhouse-operator

Helm chart to deploy altinity-clickhouse-operator.

The ClickHouse Operator creates, configures and manages ClickHouse clusters running on Kubernetes.

Refer to operator repo for additional information.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/altinity-clickhouse-operator

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
additionalResourceslist[]list of additional resources to create (are processed via tpl function)
affinityobject{}affinity for scheduler pod assignment
configsobjectcheck the values.yaml file for the config contentclickhouse configs
dashboards.additionalLabelsobject{}labels to add to a secret with dashboards
dashboards.annotationsobject{}annotations to add to a secret with dashboards
dashboards.enabledboolfalseprovision https://github.com/Altinity/clickhouse-operator/tree/release-0.19.1/grafana-dashboard as secrets (can be synced by grafana dashboards sidecar https://github.com/grafana/helm-charts/blob/grafana-6.33.1/charts/grafana/values.yaml#L679 )
fullnameOverridestring""full name of the chart.
imagePullSecretslist[]image pull secret for private images
metrics.envlist[]additional environment variables for the deployment
metrics.image.pullPolicystring"IfNotPresent"image pull policy
metrics.image.repositorystring"altinity/metrics-exporter"image repository
metrics.image.tagstring""image tag (chart's appVersion value will be used if not set)
metrics.resourcesobject{}custom resource configuration
nameOverridestring""override name of the chart
nodeSelectorobject{}node for scheduler pod assignment
operator.envlist[]additional environment variables for the deployment
operator.image.pullPolicystring"IfNotPresent"image pull policy
operator.image.repositorystring"altinity/clickhouse-operator"image repository
operator.image.tagstring""image tag (chart's appVersion value will be used if not set)
operator.resourcesobject{}custom resource configuration
podAnnotationsobject{"prometheus.io/port":"8888","prometheus.io/scrape":"true"}annotations to add to the pod
secret.createbooltruecreate a secret with operator credentials
secret.passwordstring"clickhouse_operator_password"operator credentials password
secret.usernamestring"clickhouse_operator"operator credentials username
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createbooltruespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
serviceMonitor.additionalLabelsobject{}additional labels for service monitor
serviceMonitor.enabledboolfalseServiceMonitor CRD is created for a prometheus operator
tolerationslist[]tolerations for scheduler pod assignment

Deploy altinity-clickhouse-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has altinity-clickhouse-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 chartaltinity-clickhouse-operator is pinned at v0.1.2 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