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
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].
55
55
56
56
Let's explore all Pods in order to check available ClickHouse version.
57
57
Navigate directly inside each Pod
58
58
```bash
59
59
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
60
60
```
61
61
```text
62
-
ClickHouse client version 19.1.10.
62
+
ClickHouse client version 23.3.0.
63
63
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.
65
65
```
66
66
Repeat for all Pods
67
67
```bash
68
68
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
69
69
```
70
70
```text
71
-
ClickHouse client version 19.1.10.
71
+
ClickHouse client version 23.3.0.
72
72
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.
74
74
```
75
75
And the last Pod
76
76
```bash
77
77
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
78
78
```
79
79
```text
80
-
ClickHouse client version 19.1.10.
80
+
ClickHouse client version 23.3.0.
81
81
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.
83
83
```
84
-
All is fine, all Pods are running `19.1.10`
84
+
All is fine, all Pods are running `23.3.0`
85
85
86
86
We'll make Version Update in two steps:
87
87
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
93
93
We can do by explicitly specifying `templates` with different ClickHouse version:
94
94
```yaml
95
95
templates:
96
-
podTemplate: clickhouse:19.3.7
96
+
podTemplate: clickhouse:23.8.0
97
97
```
98
98
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]:
99
99
```bash
100
100
kubectl -n dev apply -f 08-clickhouse-version-update-02-apply-update-one.yaml
101
101
```
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:
103
103
```bash
104
104
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
105
105
```
106
106
```text
107
-
ClickHouse client version 19.1.10.
107
+
ClickHouse client version 23.3.0.
108
108
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.
110
110
```
111
111
The second Pod:
112
112
```bash
113
113
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
114
114
```
115
115
```text
116
-
ClickHouse client version 19.1.10.
116
+
ClickHouse client version 23.3.0.
117
117
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.
119
119
```
120
120
And the most interesting part - the last one:
121
121
```bash
122
122
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
123
123
```
124
124
```text
125
-
ClickHouse client version 19.3.7.
125
+
ClickHouse client version 23.8.0.
126
126
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.
128
128
```
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`.
130
130
All seems to be good. Let's update the whole cluster now.
131
131
132
132
## Update the whole cluster
@@ -136,32 +136,32 @@ Manifest file with all ClickHouse instance updated is [08-clickhouse-version-upd
136
136
```bash
137
137
kubectl -n dev apply -f 08-clickhouse-version-update-03-apply-update-all.yaml
138
138
```
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
140
140
```bash
141
141
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
142
142
```
143
143
```text
144
-
ClickHouse client version 19.3.7.
144
+
ClickHouse client version 23.8.0.
145
145
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.```
147
147
```
148
148
The second Pod
149
149
```bash
150
150
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
151
151
```
152
152
```text
153
-
ClickHouse client version 19.3.7.
153
+
ClickHouse client version 23.8.0.
154
154
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.
156
156
```
157
157
And the last Pod
158
158
```bash
159
159
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
160
160
```
161
161
```text
162
-
ClickHouse client version 19.3.7.
162
+
ClickHouse client version 23.8.0.
163
163
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.
0 commit comments