Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-zaitsev committed Oct 3, 2024
1 parent 7e8b2bd commit e9ebc74
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
14 changes: 14 additions & 0 deletions docs/chk-examples/01-chi-simple-with-keeper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: simple-with-keeper
spec:
configuration:
zookeeper:
nodes:
- host: keeper-simple-1 # This is a service name of chk/simple-1
port: 2181
clusters:
- name: default
layout:
replicasCount: 2
5 changes: 3 additions & 2 deletions docs/chk-examples/01-simple-1.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
name: simple1
name: simple-1
spec:
configuration:
clusters:
- name: "cluster1"
- name: "cluster1"
# see 01-chi-simple-with-keeper.yaml for CHI example using this
4 changes: 2 additions & 2 deletions docs/chk-examples/01-simple-3.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
name: simple3
name: simple-3
spec:
configuration:
clusters:
- name: "cluster3"
- name: "cluster1"
layout:
replicasCount: 3
11 changes: 2 additions & 9 deletions docs/chk-examples/02-extended-1-node.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
name: single-node
name: extended-1
spec:
configuration:
clusters:
- name: "extended-1"
- name: cluster1
layout:
replicasCount: 1
settings:
logger/level: "trace"
logger/console: "true"
listen_host: "0.0.0.0"
keeper_server/storage_path: /var/lib/clickhouse-keeper
keeper_server/tcp_port: "2181"
keeper_server/four_letter_word_white_list: "*"
keeper_server/coordination_settings/raft_logs_level: "information"
keeper_server/raft_configuration/server/port: "9444"
prometheus/endpoint: "/metrics"
prometheus/port: "7000"
prometheus/metrics: "true"
Expand All @@ -30,17 +27,13 @@ spec:
podTemplate: default

templates:

podTemplates:
- name: default
spec:
containers:
- name: clickhouse-keeper
imagePullPolicy: IfNotPresent
image: "clickhouse/clickhouse-keeper:24.3.5.46"
volumeMounts:
- name: default
mountPath: /var/lib/clickhouse
resources:
requests:
memory: "256M"
Expand Down
10 changes: 2 additions & 8 deletions docs/chk-examples/02-extended-3-nodes.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
name: triple-node
name: extended-3
spec:
configuration:
clusters:
- name: "extended-3"
- name: "cluster1"
layout:
replicasCount: 3
settings:
logger/level: "trace"
logger/console: "true"
listen_host: "0.0.0.0"
keeper_server/storage_path: /var/lib/clickhouse-keeper
keeper_server/tcp_port: "2181"
keeper_server/four_letter_word_white_list: "*"
keeper_server/coordination_settings/raft_logs_level: "information"
keeper_server/raft_configuration/server/port: "9444"
prometheus/endpoint: "/metrics"
prometheus/port: "7000"
prometheus/metrics: "true"
Expand Down Expand Up @@ -48,9 +45,6 @@ spec:
- name: clickhouse-keeper
imagePullPolicy: IfNotPresent
image: "clickhouse/clickhouse-keeper:24.3.5.46"
volumeMounts:
- name: default
mountPath: /var/lib/clickhouse
resources:
requests:
memory: "256M"
Expand Down

0 comments on commit e9ebc74

Please sign in to comment.