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
@@ -220,7 +218,13 @@ You can use script `update-R4-to-R5.sh` to update the cluster's `cluster-templat
220
218
R4 to R5. This script could update an existing Kubernetes cluster configuration files
221
219
as well as `cluster-defaults` files that could be used for spawning new R5 clusters.
222
220
223
-
If you want to update an existing cluster configuration files from R4 to R5, just use script as follows:
221
+
> Note: If you didn't change `cluster-template.yaml` or `clusterctl.yaml` before, the script should work
222
+
> without any problems. If you customized these files (e.g. when you are upgrading from the main branch, instead of maintained/v5.x),
223
+
> you should review the [script](https://github.com/SovereignCloudStack/k8s-cluster-api-provider/blob/main/terraform/files/bin/update-R4-to-R5.sh)
224
+
> and apply necessary changes manually. E.g. use `git diff ~/${CLUSTER_NAME}/cluster-template.yaml ~/k8s-cluster-api-provider/terraform/files/template/cluster-template.yaml`,
225
+
> revisit changes between releases and your customizations and apply them.
226
+
227
+
If you want to update an existing cluster configuration files from R4 to R5, just use script as follows (backup recommended):
224
228
```bash
225
229
update-R4-to-R5.sh <CLUSTER_NAME>
226
230
```
@@ -251,7 +255,13 @@ You can use script `update-R5-to-R6.sh` to update the cluster's `cluster-templat
251
255
R5 to R6. This script could update an existing Kubernetes cluster configuration files
252
256
as well as `cluster-defaults` files that could be used for spawning new R6 clusters.
253
257
254
-
If you want to update an existing cluster configuration files from R5 to R6, just use script as follows:
258
+
> Note: If you didn't change `cluster-template.yaml` or `clusterctl.yaml` before, the script should work
259
+
> without any problems. If you customized these files (e.g. when you are upgrading from the main branch, instead of maintained/v6.x),
260
+
> you should review the [script](https://github.com/SovereignCloudStack/k8s-cluster-api-provider/blob/main/terraform/files/bin/update-R5-to-R6.sh)
261
+
> and apply necessary changes manually. E.g. use `git diff ~/${CLUSTER_NAME}/cluster-template.yaml ~/k8s-cluster-api-provider/terraform/files/template/cluster-template.yaml`,
262
+
> revisit changes between releases and your customizations and apply them.
263
+
264
+
If you want to update an existing cluster configuration files from R5 to R6, just use script as follows (backup recommended):
255
265
```bash
256
266
update-R5-to-R6.sh <CLUSTER_NAME>
257
267
```
@@ -371,54 +381,55 @@ If you decide to migrate your existing Kubernetes cluster from R4 to R5 be aware
371
381
372
382
Follow the below steps if you want to migrate an existing cluster from R4 to R5:
373
383
1. Access your management node
374
-
2. Checkout R5 branch
384
+
2. Make sure there are no changes waiting to be applied (`create_cluster.sh <CLUSTER_NAME>`)
385
+
3. Checkout R5 branch
375
386
```bash
376
387
cd k8s-cluster-api-provider
377
388
git pull
378
389
git checkout maintained/v6.x
379
390
```
380
-
3. Backup an existing cluster configuration files (recommended)
391
+
4. Backup an existing cluster configuration files (recommended)
381
392
```bash
382
393
cd ..
383
394
cp -R <CLUSTER_NAME><CLUSTER_NAME>-backup
384
395
```
385
-
4. Update an existing cluster configuration files from R4 to R5
396
+
5. Update an existing cluster configuration files from R4 to R5, see [related](#r4-to-r5) section for details before
386
397
```bash
387
398
update-R4-to-R5.sh <CLUSTER_NAME>
388
399
```
389
-
5. Validate updated cluster configuration files. You will find that e.g. Calico version
400
+
6. Validate updated cluster configuration files. You will find that e.g. Calico version
390
401
has been bumped from v3.25.0 to v3.26.1. Note that some software versions are not configurable
391
402
and are not directly mentioned in the cluster configuration files, but they are hardcoded
392
403
in R5 scripts (e.g. ingress nginx controller, metrics server). Hence, read carefully the
393
404
R5 release notes too. Also see that Kubernetes version was not updated, and it is still v1.25.6.
394
-
6. Update an existing cluster (except Kubernetes version)
405
+
7. Update an existing cluster (except Kubernetes version)
395
406
```bash
396
407
create_cluster.sh <CLUSTER_NAME>
397
408
```
398
-
7. Update cluster-API and openstack cluster-API provider, see [related](#updating-cluster-api-and-openstack-cluster-api-provider) section for details
409
+
8. Update cluster-API and openstack cluster-API provider, see [related](#updating-cluster-api-and-openstack-cluster-api-provider) section for details
8. Increase the generation counter for worker and control plane nodes
477
+
9. Increase the generation counter for worker and control plane nodes
466
478
```bash
467
479
sed -r 's/(^CONTROL_PLANE_MACHINE_GEN: genc)([0-9][0-9])/printf "\1%02d" $((\2+1))/ge' -i <CLUSTER_NAME>/clusterctl.yaml
468
480
sed -r 's/(^WORKER_MACHINE_GEN: genw)([0-9][0-9])/printf "\1%02d" $((\2+1))/ge' -i <CLUSTER_NAME>/clusterctl.yaml
469
481
```
470
-
9. Update an existing cluster to the R6
471
-
```bash
472
-
create_cluster.sh <CLUSTER_NAME>
473
-
```
474
-
> Note: You will probably experience a double rollout of nodes because
475
-
> the k8s version and templates are changed concurrently here.
476
-
> See [https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/operate-cluster#effects-of-concurrent-changes](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/operate-cluster#effects-of-concurrent-changes)
477
-
10. Upgrade cilium (for clusters with `USE_CILIUM: true`)
482
+
10. Update an existing cluster to the R6
483
+
```bash
484
+
create_cluster.sh <CLUSTER_NAME>
485
+
```
486
+
> Note: You will probably experience a double rollout of nodes because
487
+
> the k8s version and templates are changed concurrently here.
488
+
> See [https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/operate-cluster#effects-of-concurrent-changes](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/operate-cluster#effects-of-concurrent-changes)
489
+
11. Upgrade cilium (for clusters with `USE_CILIUM: true`)
0 commit comments