clickhouse-operator
ClickHouse-Operator Overview
Secure your stack with a hardened ClickHouse-Operator image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
ClickHouse Operator automates the deployment, configuration, scaling, and lifecycle management of ClickHouse clusters on Kubernetes using custom resources.
Try It Out
This guide installs a single cluster-wide ClickHouse Operator in a dedicated test or development cluster.
Prerequisites
- A running Kubernetes cluster (v1.21 or higher is recommended)
- Helm v3.8 or higher for OCI support (Installation instructions)
kubectlinstalled and configured
Step 1: Start Cluster
If you have a cluster to work with, skip this step. Otherwise, start a Minikube cluster. Deployment instructions
Step 2: Add Repository to your Local Client
Add the Helm chart to your local Helm client.
helm repo add altinity https://helm.altinity.com
helm repo updateNote that the Altinity Helm repository offers 2 different charts for deploying the operator, depending on the scope:
altinity/altinity-clickhouse-operatordeploys only the Operator imageclickhouse/clickhousedeploys the full ClickHouse stack including the Operator, Keeper, and metrics-exporter on a test cluster
The recommended production pattern is to install the operator once per cluster, then deploy ClickHouse separately—either with a ClickHouseInstallation custom resource or via the clickhouse/clickhouse chart with operator.enabled: false in your values file. The key is to avoid running two operators.
Step 3: Create Namespace
Create a namespace:
kubectl create ns clickhouseStep 4: Save Values File Locally
Save the file below as values.yaml
crdHook:
enabled: true
image:
repository: reg.mini.dev/kubectl
tag: latest
operator:
image:
repository: reg.mini.dev/clickhouse-operator
tag: latest
metrics:
enabled: true
image:
repository: reg.mini.dev/clickhouse-metrics-exporter
tag: latestRender the chart locally with the overrides to confirm Minimus images will be deployed:
helm template clickhouse-operator -f values.yaml altinity/altinity-clickhouse-operator | grep "image:" | sort -uStep 5: Deploy the Helm Chart
Deploy the cluster-wide operator:
helm upgrade --install clickhouse-operator altinity/altinity-clickhouse-operator -f values.yaml -n clickhouse-operatorStep 6: Verify
Wait a minute and check that the operator pod is up and running:
kubectl -n clickhouse-operator get poConfirm that Minimus images were deployed:
kubectl -n clickhouse-operator describe pods | grep Image:Check operator logs to confirm it started successfully:
kubectl -n clickhouse-operator logs -l app.kubernetes.io/instance=clickhouse-operator --all-containers --tail=20To deploy a ClickHouse cluster next, follow the Keeper or Metrics-Exporter guides, making sure to set operator.enabled: false in your values file.
Clean Up
Uninstall the chart and clean up:
helm uninstall clickhouse-operator -n clickhouse-operator
kubectl delete ns clickhouse-operatorTechnical Considerations
The ClickHouse-Operator image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
ClickHouse-Operator built by Minimus:
- Runs as non-root by default as user 65534.
- Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.