Reference / experimental
clickhouse-operator
These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.
Altinity ClickHouse operator: ClickHouseInstallation and ClickHouseKeeperInstallation controller
This page is generated from kix/packages/experimental/clickhouse-operator.
| Stability | Experimental |
package value | packages.experimental.clickhouse-operator |
| Default software version | 0.27.4 |
| Default aliases | clickhouseOperator |
Dependencies
Section titled “Dependencies”Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.
| Dependency | Requirement |
|---|---|
credentials | Required |
prometheus | Optional |
Options
Section titled “Options”Config fragments the operator injects into every operand pod, as
<chi|chk>.<directory>.<file name> = contents. The directories are
the operator’s: conf.d, config.d, templates.d, and users.d
for chi; conf.d, keeper_config.d, templates.d, and users.d for
chk. Merged over the upstream files under ./files, and null removes
one of those. A fragment for a single installation belongs in that
CR’s spec.configuration.files.
-
Type:
attribute set of attribute set of attribute set of (null or string) -
Default:
{ } -
Example:
1{2chi = {3"config.d" = {4"01-clickhouse-02-logger.xml" = null;5"50-limits.xml" = "<clickhouse><max_concurrent_queries>200</max_concurrent_queries></clickhouse>";6};7};8}
Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.
-
Type:
submodule -
Default:
1{2digest = "sha256:c60c872fedd85017f843167dfdd2b900bb06b668a3deaf02b21782e59af859e3";3pullPolicy = "IfNotPresent";4repository = "docker.io/altinity/clickhouse-operator";5tag = "0.27.4";6}
image.digest
Section titled “image.digest”Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.
- Type:
null or string - Default: the package’s digest while
tagis the package’s tag, otherwise null
image.note
Section titled “image.note”Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.
- Type:
null or string - Default:
null
image.promotedBy
Section titled “image.promotedBy”Who resolved this pin, for the record. Null when unknown.
- Type:
null or string - Default:
null
image.pullPolicy
Section titled “image.pullPolicy”imagePullPolicy for containers using this image. Null leaves it to Kubernetes.
- Type:
null or string - Default:
"IfNotPresent"
image.repository
Section titled “image.repository”Image repository, registry host included.
- Type:
string - Default:
"docker.io/altinity/clickhouse-operator"
image.resolvedAt
Section titled “image.resolvedAt”When this pin was resolved, RFC 3339. Null when unknown.
- Type:
null or string - Default:
null
image.sourceRev
Section titled “image.sourceRev”Revision of the source the image was built from, when Kix built it. Null for upstream images.
- Type:
null or string - Default:
null
image.tag
Section titled “image.tag”Image tag. What was asked for.
- Type:
string - Default:
"0.27.4"
metrics.enabled
Section titled “metrics.enabled”Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.
- Type:
boolean - Default:
true
metrics.interval
Section titled “metrics.interval”Scrape interval (e.g. ”30s”). Null = use Prometheus default.
- Type:
null or string - Default:
null
metricsExporterImage
Section titled “metricsExporterImage”Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.
-
Type:
submodule -
Default:
1{2digest = "sha256:d257a72e6a6a9e1a9768b7a5a231b56901ea6dee668e41c7243b78bd298f631a";3pullPolicy = "IfNotPresent";4repository = "docker.io/altinity/metrics-exporter";5tag = config.image.tag;6}
metricsExporterImage.digest
Section titled “metricsExporterImage.digest”Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.
- Type:
null or string - Default: the package’s digest while
tagis the package’s tag, otherwise null
metricsExporterImage.note
Section titled “metricsExporterImage.note”Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.
- Type:
null or string - Default:
null
metricsExporterImage.promotedBy
Section titled “metricsExporterImage.promotedBy”Who resolved this pin, for the record. Null when unknown.
- Type:
null or string - Default:
null
metricsExporterImage.pullPolicy
Section titled “metricsExporterImage.pullPolicy”imagePullPolicy for containers using this image. Null leaves it to Kubernetes.
- Type:
null or string - Default:
"IfNotPresent"
metricsExporterImage.repository
Section titled “metricsExporterImage.repository”Image repository, registry host included.
- Type:
string - Default:
"docker.io/altinity/metrics-exporter"
metricsExporterImage.resolvedAt
Section titled “metricsExporterImage.resolvedAt”When this pin was resolved, RFC 3339. Null when unknown.
- Type:
null or string - Default:
null
metricsExporterImage.sourceRev
Section titled “metricsExporterImage.sourceRev”Revision of the source the image was built from, when Kix built it. Null for upstream images.
- Type:
null or string - Default:
null
metricsExporterImage.tag
Section titled “metricsExporterImage.tag”Image tag. What was asked for.
- Type:
string - Default:
config.image.tag
metricsExporterResources
Section titled “metricsExporterResources”Resources of the metrics-exporter container. Its work per scrape is one round of queries per ClickHouse host.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "250m";4memory = "256Mi";5};6requests = {7cpu = "20m";8memory = "64Mi";9};10}
metricsExporterResources.claims
Section titled “metricsExporterResources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
metricsExporterResources.claims.*.name
Section titled “metricsExporterResources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
metricsExporterResources.claims.*.request
Section titled “metricsExporterResources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
metricsExporterResources.limits
Section titled “metricsExporterResources.limits”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
metricsExporterResources.limits.cpu
Section titled “metricsExporterResources.limits.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"250m"
metricsExporterResources.limits.ephemeral-storage
Section titled “metricsExporterResources.limits.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
metricsExporterResources.limits.memory
Section titled “metricsExporterResources.limits.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"256Mi"
metricsExporterResources.requests
Section titled “metricsExporterResources.requests”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
metricsExporterResources.requests.cpu
Section titled “metricsExporterResources.requests.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"20m"
metricsExporterResources.requests.ephemeral-storage
Section titled “metricsExporterResources.requests.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
metricsExporterResources.requests.memory
Section titled “metricsExporterResources.requests.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"64Mi"
operatorConfig
Section titled “operatorConfig”The operator’s config.yaml, merged over the package’s own (see
builtinOperatorConfig in operator.nix). Set a key to null to remove
it from the package’s own, which hands that setting back to the
operator’s compiled-in default. clickhouse.access.secret comes from
the credentials dep.
-
Type:
attribute set of anything -
Default:
{ } -
Example:
1{2reconcile = {3runtime = {4reconcileCHIsThreadsNumber = 2;5};6};7watch = {8namespaces = {9include = [10"analytics"11];12};13};14}
resources
Section titled “resources”Resources of the operator container. Upstream sets none. The operator holds every installation it watches in memory, with the normalized copy beside it, so the memory limit grows with their count and size.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "500m";4memory = "512Mi";5};6requests = {7cpu = "50m";8memory = "128Mi";9};10}
resources.claims
Section titled “resources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
resources.claims.*.name
Section titled “resources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
resources.claims.*.request
Section titled “resources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
resources.limits
Section titled “resources.limits”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
resources.limits.cpu
Section titled “resources.limits.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"500m"
resources.limits.ephemeral-storage
Section titled “resources.limits.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
resources.limits.memory
Section titled “resources.limits.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"512Mi"
resources.requests
Section titled “resources.requests”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
resources.requests.cpu
Section titled “resources.requests.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"50m"
resources.requests.ephemeral-storage
Section titled “resources.requests.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
resources.requests.memory
Section titled “resources.requests.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"128Mi"