Modifying the operating system only affects subsequently added or reinstalled nodes, and has no impact on the existing nodes' OS.
Within the same cluster, nodes using different versions of the operating system will not affect the cluster's functionality.
A single script may not be suitable for all operating systems. It is recommended that you verify the compatibility of the node's OS with the script after configuring the script for the node.
If you need to use the custom image feature, create custom images using the basic image provided by the container service. For more information, see Custom Image Instructions.
Instructions
Changing the Default Cluster Operating System
Note
Before changing the default OS of a cluster, read Operating System Description carefully to learn about the relevant risks.
1. Log in to the TKE console and select Cluster in the left sidebar.
2. On the "Cluster Management" page, select View Cluster Credentials on the right side of the target cluster's row to access the cluster's basic information page.
3. In the "Node and Network Information" section, click on the
icon to the right of Default OS. See the image below:
4. In the pop-up "Set up The Cluster Operating System" window, change the operating system as shown in the figure below: