Skip to content

Commit 0a36f26

Browse files
authored
Merge pull request #1566 from xavierleune/fix/version-match-files
Docs: fix version to match manifests in chi-examples/08-*
2 parents 3001f8c + 00712d2 commit 0a36f26

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/chi_update_clickhouse_version.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,37 +51,37 @@ configmap/chi-06791a-deploy-confd-28a0-0-0 1 9s
5151
configmap/chi-06791a-deploy-confd-28a0-0-1 1 9s
5252
configmap/chi-06791a-deploy-confd-28a0-0-2 1 9s
5353
```
54-
We expect all Pods to run ClickHouse version `19.1.10` as specified in [initial manifest][initial-manifest].
54+
We expect all Pods to run ClickHouse version `23.3.0` as specified in [initial manifest][initial-manifest].
5555

5656
Let's explore all Pods in order to check available ClickHouse version.
5757
Navigate directly inside each Pod
5858
```bash
5959
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
6060
```
6161
```text
62-
ClickHouse client version 19.1.10.
62+
ClickHouse client version 23.3.0.
6363
Connecting to localhost:9000.
64-
Connected to ClickHouse server version 19.1.10 revision 54413.
64+
Connected to ClickHouse server version 23.3.0 revision 54413.
6565
```
6666
Repeat for all Pods
6767
```bash
6868
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
6969
```
7070
```text
71-
ClickHouse client version 19.1.10.
71+
ClickHouse client version 23.3.0.
7272
Connecting to localhost:9000.
73-
Connected to ClickHouse server version 19.1.10 revision 54413.
73+
Connected to ClickHouse server version 23.3.0 revision 54413.
7474
```
7575
And the last Pod
7676
```bash
7777
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
7878
```
7979
```text
80-
ClickHouse client version 19.1.10.
80+
ClickHouse client version 23.3.0.
8181
Connecting to localhost:9000.
82-
Connected to ClickHouse server version 19.1.10 revision 54413.
82+
Connected to ClickHouse server version 23.3.0 revision 54413.
8383
```
84-
All is fine, all Pods are running `19.1.10`
84+
All is fine, all Pods are running `23.3.0`
8585

8686
We'll make Version Update in two steps:
8787
1. Update one ClickHouse instance (one Pod)
@@ -93,40 +93,40 @@ Now let's update version of only one instance of ClickHouse. Let it be the last
9393
We can do by explicitly specifying `templates` with different ClickHouse version:
9494
```yaml
9595
templates:
96-
podTemplate: clickhouse:19.3.7
96+
podTemplate: clickhouse:23.8.0
9797
```
9898
Manifest file with one ClickHouse instance update is [08-clickhouse-version-update-02-apply-update-one.yaml][08-clickhouse-version-update-02-apply-update-one.yaml]:
9999
```bash
100100
kubectl -n dev apply -f 08-clickhouse-version-update-02-apply-update-one.yaml
101101
```
102-
And let's check what ClickHouse versions are running over the whole cluster. We expect the last instance to run specific version `19.3.7`. Check the first Pod:
102+
And let's check what ClickHouse versions are running over the whole cluster. We expect the last instance to run specific version `23.8.0`. Check the first Pod:
103103
```bash
104104
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
105105
```
106106
```text
107-
ClickHouse client version 19.1.10.
107+
ClickHouse client version 23.3.0.
108108
Connecting to localhost:9000.
109-
Connected to ClickHouse server version 19.1.10 revision 54413.
109+
Connected to ClickHouse server version 23.3.0 revision 54413.
110110
```
111111
The second Pod:
112112
```bash
113113
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
114114
```
115115
```text
116-
ClickHouse client version 19.1.10.
116+
ClickHouse client version 23.3.0.
117117
Connecting to localhost:9000.
118-
Connected to ClickHouse server version 19.1.10 revision 54413.
118+
Connected to ClickHouse server version 23.3.0 revision 54413.
119119
```
120120
And the most interesting part - the last one:
121121
```bash
122122
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
123123
```
124124
```text
125-
ClickHouse client version 19.3.7.
125+
ClickHouse client version 23.8.0.
126126
Connecting to localhost:9000 as user default.
127-
Connected to ClickHouse server version 19.3.7 revision 54415.
127+
Connected to ClickHouse server version 23.8.0 revision 54415.
128128
```
129-
As we can see - it runs different, explicitly specified version `19.3.7`.
129+
As we can see - it runs different, explicitly specified version `23.8.0`.
130130
All seems to be good. Let's update the whole cluster now.
131131

132132
## Update the whole cluster
@@ -136,32 +136,32 @@ Manifest file with all ClickHouse instance updated is [08-clickhouse-version-upd
136136
```bash
137137
kubectl -n dev apply -f 08-clickhouse-version-update-03-apply-update-all.yaml
138138
```
139-
And let's check the results - we expect all Pods to have ClickHouse `19.3.7` running. The first Pod
139+
And let's check the results - we expect all Pods to have ClickHouse `23.8.0` running. The first Pod
140140
```bash
141141
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
142142
```
143143
```text
144-
ClickHouse client version 19.3.7.
144+
ClickHouse client version 23.8.0.
145145
Connecting to localhost:9000 as user default.
146-
Connected to ClickHouse server version 19.3.7 revision 54415.```
146+
Connected to ClickHouse server version 23.8.0 revision 54415.```
147147
```
148148
The second Pod
149149
```bash
150150
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
151151
```
152152
```text
153-
ClickHouse client version 19.3.7.
153+
ClickHouse client version 23.8.0.
154154
Connecting to localhost:9000 as user default.
155-
Connected to ClickHouse server version 19.3.7 revision 54415.
155+
Connected to ClickHouse server version 23.8.0 revision 54415.
156156
```
157157
And the last Pod
158158
```bash
159159
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
160160
```
161161
```text
162-
ClickHouse client version 19.3.7.
162+
ClickHouse client version 23.8.0.
163163
Connecting to localhost:9000 as user default.
164-
Connected to ClickHouse server version 19.3.7 revision 54415.
164+
Connected to ClickHouse server version 23.8.0 revision 54415.
165165
```
166166
All looks fine.
167167

0 commit comments

Comments
 (0)