altinity-clickhouse-operator
by slamdev
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
| Name | Url | |
|---|---|---|
| slamdev | [email protected] |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalResources | list | [] | list of additional resources to create (are processed via tpl function) |
| affinity | object | {} | affinity for scheduler pod assignment |
| configs | object | check the values.yaml file for the config content | clickhouse configs |
| dashboards.additionalLabels | object | {} | labels to add to a secret with dashboards |
| dashboards.annotations | object | {} | annotations to add to a secret with dashboards |
| dashboards.enabled | bool | false | provision 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 ) |
| fullnameOverride | string | "" | full name of the chart. |
| imagePullSecrets | list | [] | image pull secret for private images |
| metrics.env | list | [] | additional environment variables for the deployment |
| metrics.image.pullPolicy | string | "IfNotPresent" | image pull policy |
| metrics.image.repository | string | "altinity/metrics-exporter" | image repository |
| metrics.image.tag | string | "" | image tag (chart's appVersion value will be used if not set) |
| metrics.resources | object | {} | custom resource configuration |
| nameOverride | string | "" | override name of the chart |
| nodeSelector | object | {} | node for scheduler pod assignment |
| operator.env | list | [] | additional environment variables for the deployment |
| operator.image.pullPolicy | string | "IfNotPresent" | image pull policy |
| operator.image.repository | string | "altinity/clickhouse-operator" | image repository |
| operator.image.tag | string | "" | image tag (chart's appVersion value will be used if not set) |
| operator.resources | object | {} | custom resource configuration |
| podAnnotations | object | {"prometheus.io/port":"8888","prometheus.io/scrape":"true"} | annotations to add to the pod |
| secret.create | bool | true | create a secret with operator credentials |
| secret.password | string | "clickhouse_operator_password" | operator credentials password |
| secret.username | string | "clickhouse_operator" | operator credentials username |
| serviceAccount.annotations | object | {} | annotations to add to the service account |
| serviceAccount.create | bool | true | specifies whether a service account should be created |
| serviceAccount.name | string | nil | the name of the service account to use; if not set and create is true, a name is generated using the fullname template |
| serviceMonitor.additionalLabels | object | {} | additional labels for service monitor |
| serviceMonitor.enabled | bool | false | ServiceMonitor CRD is created for a prometheus operator |
| tolerations | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaltinity-clickhouse-operator is pinned at v0.1.2 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