Upgrade a Hardened Custom/Imported Cluster to Kubernetes v1.25

    If you have custom or imported hardened clusters, you must take special preparations to ensure that the upgrade from an earlier version of Kubernetes to v1.25 or later goes smoothly.

    备注

    • RKE2
    • K3s

    Perform the following on each node in the cluster:

    1. Save in .
    2. Edit the RKE2 configuration file:
      1. Update the profile field to cis-1.23.
      2. Specify the path for the configuration file that you just added: .

    Perform the following on each node in the cluster:

    After you perform these steps, you can upgrade the cluster’s Kubernetes version through the Rancher UI:

    1. In the upper left corner, click ☰ > Cluster Management.
    2. Select Edit Config.
    3. In the Kubernetes Version dropdown menu, select the version that you would like to use.
    4. Click Save.

    Upgrading Custom Hardened Clusters to Kubernetes v1.25 or Later

    • RKE2
    • K3s
    1. In the upper left corner, click ☰ > Cluster Management.
    2. Find the cluster you want to update in the Clusters table, and click the .
    3. Select Edit Config.
    4. Under Basics > Security, in the CIS Profile dropdown menu, select cis-1.23.
    5. In the Kubernetes Version dropdown menu, select the version that you would like to use.
    6. Click Save.

    7. Find the cluster you want to update in the Clusters table, and click the .
    8. Select Edit YAML.
    9. Delete from kube-apiserver-arg.enable-admission-plugins
    10. Add this line to the spec field:
    11. Update kubernetesVersion to your chosen version (v1.25 or later).
    12. Click Save.