it-wiki:kubernetes:rke2_upgrade_guid
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
it-wiki:kubernetes:rke2_upgrade_guid [2024/03/07 17:01] – [Add the plans] marko | it-wiki:kubernetes:rke2_upgrade_guid [2025/04/29 06:05] (aktuell) – [Add the plans] marko | ||
---|---|---|---|
Zeile 20: | Zeile 20: | ||
Install the controller with the following command: | Install the controller with the following command: | ||
<code bash> | <code bash> | ||
- | kubectl apply -f https:// | + | kubectl apply -f https:// |
</ | </ | ||
Zeile 30: | Zeile 30: | ||
==== Add the plans ==== | ==== Add the plans ==== | ||
Example Master node plans: | Example Master node plans: | ||
- | < | + | < |
apiVersion: upgrade.cattle.io/ | apiVersion: upgrade.cattle.io/ | ||
kind: Plan | kind: Plan | ||
Zeile 62: | Zeile 62: | ||
upgrade: | upgrade: | ||
image: rancher/ | image: rancher/ | ||
- | version: v1.28.7+rke2r1 | + | version: v1.31.7+rke2r1 |
</ | </ | ||
Zeile 68: | Zeile 68: | ||
Example Worker node plans: | Example Worker node plans: | ||
- | < | + | < |
apiVersion: upgrade.cattle.io/ | apiVersion: upgrade.cattle.io/ | ||
kind: Plan | kind: Plan | ||
Zeile 105: | Zeile 105: | ||
upgrade: | upgrade: | ||
image: rancher/ | image: rancher/ | ||
- | version: v1.28.7+rke2r1 | + | version: v1.31.7+rke2r1 |
</ | </ | ||
Zeile 143: | Zeile 143: | ||
===== Upgrade rke2 Using the Installation Script ===== | ===== Upgrade rke2 Using the Installation Script ===== | ||
+ | To upgrade rke2 from an older version you can re-run the installation script using the same flags, for example: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | This will upgrade to the most recent version in the stable channel by default. | ||
+ | |||
+ | If upgrading agent nodes, you should specify the INSTALL_RKE2_TYPE environment variable: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | If you want to upgrade to the most recent version in a specific channel (such as latest) you can specify the channel: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | If you want to upgrade to a specific version you can run the following command: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | Remember to restart the rke2 process after installing: | ||
+ | |||
+ | # Server nodes: | ||
+ | <code bash> | ||
+ | |||
+ | # Agent nodes: | ||
+ | <code bash> | ||
+ | |||
+ | ===== Restarting rke2 ===== | ||
+ | Restarting rke2 is supported by the installation script for systemd. | ||
+ | |||
+ | systemd | ||
+ | |||
+ | To restart servers manually: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | To restart agents manually: | ||
+ | |||
+ | <code bash> |
it-wiki/kubernetes/rke2_upgrade_guid.1709830892.txt.gz · Zuletzt geändert: von marko