You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Zookeeper installed as described in [Zookeeper Setup](zookeeper_setup.md)
7
+
1. Zookeeper [installed](zookeeper_setup.md)
8
8
9
9
10
10
## Manifest
11
11
12
-
The example below creates a cluster with 2 shards and 2 replicas and persistent storage.
12
+
Let's take a look on [example](./examples/04-zookeeper-replication-05-simple-PV.yaml), which creates a cluster with 2 shards and 2 replicas and persistent storage.
13
13
14
14
```yaml
15
15
apiVersion: "clickhouse.altinity.com/v1"
16
16
kind: "ClickHouseInstallation"
17
17
18
18
metadata:
19
-
name: test
19
+
name: "repl-05"
20
20
21
21
spec:
22
22
defaults:
@@ -25,10 +25,9 @@ spec:
25
25
podTemplate: clickhouse:19.6
26
26
27
27
configuration:
28
-
zookeeper:# Add Zookeeper
28
+
zookeeper:
29
29
nodes:
30
30
- host: zookeeper.zoo1ns
31
-
port: 2181
32
31
clusters:
33
32
- name: replicated
34
33
layout:
@@ -62,7 +61,7 @@ Operator provides set of [macros](https://clickhouse.yandex/docs/en/operations/s
62
61
1. `{replica}` -- replica name in the cluster, maps to pod service name
63
62
1. `{shard}` -- shard id
64
63
65
-
ClickHouse also supports internal macros {database} and {table} that maps to current database.table.
64
+
ClickHouse also supports internal macros `{database}` and `{table}` that maps to current **database** and **table** respectively.
0 commit comments