Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Setting up external access to a pod in a cluster
    • All guides
    • Projects
    • Resource model
      • Overview
      • Certificate Manager
      • DNS
      • IAM
      • Logging Stack
      • Managed Service for Apache Kafka®
      • Managed Service for PostgreSQL
      • Managed Service for ClickHouse®
      • DataLens
      • Monitoring
      • Object Storage
      • Disk subsystem
      • NVIDIA® GPU support
      • Policy Manager
      • Secrets Store
      • SpeechSense
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting

In this article:

  • Component configuration
  • Creating a cluster
  • Cluster network access
  • Service types
  • Cluster endpoint
  • Shard endpoints
  • Getting connection addresses
  • Deletion protection
  1. Concepts
  2. Components
  3. Managed Service for ClickHouse®

Managed Service for ClickHouse®

Written by
Yandex Cloud
Updated at April 8, 2026
  • Component configuration
  • Creating a cluster
  • Cluster network access
    • Service types
    • Cluster endpoint
    • Shard endpoints
    • Getting connection addresses
  • Deletion protection

Managed Service for ClickHouse® is a managed service for working with an open-source column-oriented ClickHouse® DBMS. It simplifies database cluster deployment and upgrades, ensures fault tolerance through replication and sharding, and provides backup and monitoring tools.

With Managed Service for ClickHouse®, you can:

  • Create and recover clusters using the ClickhouseCluster custom resource.
  • Create one-time backups using the ClickhouseBackup custom resource.
  • Configure data replication between hosts for high availability.
  • Use sharding for horizontal scaling and load distribution.

You can manage integration with ClickHouse® using the ManagedClickhouseConfig custom resource settings.

Component configurationComponent configuration

The ManagedClickhouseConfig resource settings define the Managed Service for ClickHouse® component configuration in the cluster, such as the component status (enabled/disabled), operator resources, and default cluster resources.

Here is an example:

apiVersion: stackland.yandex.cloud/v1alpha1
kind: ManagedClickhouseConfig
metadata:
  name: main  # Required, must be main
spec:
  enabled: true
  settings:
    # Monitoring for ClickHouse
    monitoring:
      enabled: true
    # stackland-clickhouse-operator
    stackland-ch:
      replicas: 1
      resources:
        requests:
          cpu: "200m"
          memory: "256Mi"
        limits:
          cpu: "1000m"
          memory: "1Gi"
    # altinity-clickhouse-operator
    altinity-ch:
      resources:
        requests:
          cpu: "100m"
          memory: "256Mi"
        limits:
          cpu: "500m"
          memory: "512Mi"
    # altinity-clickhouse-operator.metrics
    metrics:
      resources:
        requests:
          cpu: "50m"
          memory: "64Mi"
        limits:
          cpu: "200m"
          memory: "128Mi"
    # defaultClickHouseResources: {}
    # defaultKeeperResources: {}

Settings:

  • enabled: Enables/disables the component.
  • settings.monitoring.enabled: Enables/disables monitoring for ClickHouse®.
  • settings.stackland-ch: stackland-clickhouse-operator settings, such as replicas standing for the operator pod replica count and resources specifying CPU and memory requests and limits.
  • settings.altinity-ch: resources for the altinity-clickhouse-operator pod.
  • settings.metrics: Metric component resources.
  • settings.defaultClickHouseResources: Default resources for ClickHouse pods if not specified in the ClickhouseCluster resource.
  • settings.defaultKeeperResources: Default Keeper resources if not specified in the ClickhouseCluster resource.

Creating a clusterCreating a cluster

Here is an example of a minimal cluster configuration:

apiVersion: clickhouse.stackland.yandex.cloud/v1alpha1
kind: ClickhouseCluster
metadata:
  labels:
    app.kubernetes.io/name: ch-stackland-operator
    app.kubernetes.io/managed-by: kustomize
  name: ch-sample-min
spec:
  clickhouse:
    service: ClusterIP # Service type for the whole cluster (None, ClusterIP, or LoadBalancer). The default type is ClusterIP.
    shards:
      - id: shard-1
        # service: None # Service type for the shard (None, ClusterIP, or LoadBalancer). The default type is None (nothing is created).
    storage:
      size: 1Gi
    resources:
      requests:
        cpu: "500m"
        memory: "1Gi"
      limits:
        cpu: "1"
        memory: "2Gi"
  keeper:
    storage:
      size: 1Gi

Where:

  • shards: Cluster topology. In this example, we will use one shard with default settings.
  • storage: Disk space settings for storing data.
  • resources: Limits resources for the Managed Service for ClickHouse® pod.
  • keeper: ClickHouse® Keeper configuration.

Cluster network accessCluster network access

Managed Service for ClickHouse® enables configuring network access to a ClickHouse® cluster at two levels:

  • Cluster endpoint: Single entry point for connecting to the entire cluster. Requests are automatically distributed across all shards.
  • Shard endpoints: Direct connection to a specific cluster shard.

Service typesService types

You can select one of the following service types for each endpoint:

  • None: No endpoint is created. This option is the default for shards.
  • ClusterIP: Endpoint is only accessible within the Kubernetes cluster. This option is the default for the cluster endpoint.
  • LoadBalancer: Endpoint is accessible both within the cluster and externally via a network load balancer.

Cluster endpointCluster endpoint

The system automatically creates a cluster endpoint when you create a ClickHouse® cluster. The default type is ClusterIP, which allows access from other Kubernetes pods.

To make the cluster accessible externally, specify the LoadBalancer type in the spec.clickhouse.service setting.

spec:
  clickhouse:
    service: LoadBalancer

Shard endpointsShard endpoints

By default, shard endpoints are not created, i.e., service: None. This helps save resources when direct access to shards is not required.

To create an endpoint for a specific shard, set a service type in the spec.clickhouse.shards[].service setting:

spec:
  clickhouse:
    shards:
      - id: shard-1
        service: ClusterIP  # access only within the cluster
      - id: shard-2
        service: LoadBalancer  # external access

When creating a shard endpoint, a single service is created for the entire shard rather than dedicated services for each replica within the shard.

Getting connection addressesGetting connection addresses

After the cluster is created, you can find connection addresses in the ClickhouseCluster resource status:

kubectl get clickhousecluster <cluster_name> -n <project_name> -o jsonpath='{.status.clusterStatus.fqdns}'

Response structure:

  • cluster.internal: Internal FQDN for connecting to the cluster from other pods.
  • cluster.external: External FQDN for external connections to the cluster (only for LoadBalancer).
  • shards[].serviceFqdn.internal: Internal FQDN for connecting to a specific shard.
  • shards[].serviceFqdn.external: External FQDN for external connections to the shard (only for LoadBalancer).

Internal FQDNs have the <resource_name>.<project_name>.svc.<cluster domain> format and are only available within the Kubernetes cluster.

External FQDNs are created automatically for LoadBalancer type services and are available from outside the cluster. Learn more about DNS here.

Deletion protectionDeletion protection

The spec.deletionProtection setting in the ClickhouseCluster resource prevents accidental deletion of the cluster via the Kubernetes API. With protection enabled (spec.deletionProtection: true), the operator rejects any attempt to delete the cluster resource; the kubectl delete command and deletion through the management console do not work until protection is disabled.

  • The default value is false, meaning that protection is disabled.
  • To enable or disable deletion protection, set spec.deletionProtection as needed when creating or updating your cluster.
  • Protection is limited to the ClickhouseCluster resource. It does not apply to operator-created resources, such as PVC, Secret, and ConfigMap.

Was the article helpful?

Previous
Managed Service for PostgreSQL
Next
DataLens
© 2026 Direct Cursus Technology L.L.C.