Skip to content

Commit cc3699c

Browse files
committed
docs: revisit examples
1 parent 4d38663 commit cc3699c

12 files changed

+25
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
apiVersion: "clickhouse.altinity.com/v1"
22
kind: "ClickHouseInstallation"
33
metadata:
4-
name: clickhouse-custom-ports
4+
name: "template-custom-ports"
55
spec:
66
defaults:
77
templates:
88
podTemplate: default
9+
configuration:
10+
settings:
11+
http_port: 8124
12+
tcp_port: 9001
13+
interserver_http_port: 9010
914
templates:
1015
podTemplates:
1116
- name: default
@@ -20,9 +25,3 @@ spec:
2025
containerPort: 9001
2126
- name: interserver
2227
containerPort: 9010
23-
configuration:
24-
settings:
25-
http_port: 8124
26-
tcp_port: 9001
27-
interserver_http_port: 9010
28-

docs/chi-examples/03-templates-01-pod-resources-limit.yaml renamed to docs/chi-examples/02-templates-02-pod-resources-limit.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: "clickhouse.altinity.com/v1"
22
kind: "ClickHouseInstallation"
33
metadata:
4-
name: "template-01"
4+
name: "template-pod-res"
55
spec:
66
configuration:
77
clusters:

docs/chi-examples/02-persistent-volume-02-pod-template.yaml renamed to docs/chi-examples/03-persistent-volume-02-pod-template.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ spec:
1010
templates:
1111
podTemplate: pod-template-with-volumes
1212
layout:
13-
shardsCount: 1
14-
replicasCount: 1
13+
shardsCount: 2
14+
replicasCount: 2
1515

1616
templates:
1717
podTemplates:

docs/chi-examples/06-advanced-layout-01-shards.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: "clickhouse.altinity.com/v1"
22
kind: "ClickHouseInstallation"
33
metadata:
4-
name: "adv-layout-01"
4+
name: "adv-layout-shard"
55
spec:
66
configuration:
77
clusters:

docs/chi-examples/06-advanced-layout-02-replicas.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: "clickhouse.altinity.com/v1"
22
kind: "ClickHouseInstallation"
33
metadata:
4-
name: "adv-layout-02"
4+
name: "adv-layout-repl"
55
spec:
66
configuration:
77
clusters:
@@ -11,10 +11,19 @@ spec:
1111
replicas:
1212
- templates:
1313
podTemplate: clickhouse:19.1.10
14+
httpPort: 8000
15+
tcpPort: 8001
16+
interserverHTTPPort: 8002
1417
- templates:
1518
podTemplate: clickhouse:19.3.5
19+
httpPort: 9000
20+
tcpPort: 9001
21+
interserverHTTPPort: 9002
1622
- templates:
1723
podTemplate: clickhouse:19.3.7
24+
httpPort: 10000
25+
tcpPort: 10001
26+
interserverHTTPPort: 10002
1827

1928
templates:
2029
podTemplates:

docs/chi-examples/06-advanced-layout-03-multiple-clusters.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: "clickhouse.altinity.com/v1"
22
kind: "ClickHouseInstallation"
33
metadata:
4-
name: "adv-layout-03"
4+
name: "adv-layout-mul"
55
spec:
66
configuration:
77
clusters:

docs/quick_start.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Connected to ClickHouse server version 19.4.3 revision 54416.
184184
## Simple Persistent Volume Example
185185

186186
In case of having Dynamic Volume Provisioning available - ex.: running on AWS - we are able to use PersistentVolumeClaims
187-
Manifest is [available in examples](./chi-examples/02-persistent-volume-01-default-volume.yaml)
187+
Manifest is [available in examples](./chi-examples/03-persistent-volume-01-default-volume.yaml)
188188

189189
```yaml
190190
apiVersion: "clickhouse.altinity.com/v1"
@@ -227,7 +227,7 @@ Let's install more complex example with:
227227
1. Pod template
228228
1. VolumeClaim template
229229
230-
Manifest is [available in examples](./chi-examples/02-persistent-volume-02-pod-template.yaml)
230+
Manifest is [available in examples](./chi-examples/03-persistent-volume-02-pod-template.yaml)
231231
232232
```yaml
233233
apiVersion: "clickhouse.altinity.com/v1"

docs/storage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Storage
22

33
Examples are available in [examples](./chi-examples) folder:
4-
1. [Simple Default Persistent Volume](./chi-examples/02-persistent-volume-01-default-volume.yaml)
5-
1. [Pod Template with Persistent Volume](./chi-examples/02-persistent-volume-02-pod-template.yaml)
4+
1. [Simple Default Persistent Volume](./chi-examples/03-persistent-volume-01-default-volume.yaml)
5+
1. [Pod Template with Persistent Volume](./chi-examples/03-persistent-volume-02-pod-template.yaml)
66
1. AWS-based cluster with data replication and Persistent Volumes [minimal](./chi-examples/04-replication-zookeeper-03-minimal-AWS-persistent-volume.yaml)
77
and [medium](./chi-examples/04-replication-zookeeper-04-medium-AWS-persistent-volume.yaml) Zookeeper installations
88

0 commit comments

Comments
 (0)