Make sure the IP address or IP address range is not in use when you specify an IP address or IP address range for a controller node or worker node.
On the top navigation bar, click Compute.
From the left navigation pane, select Container Engines > Container Clusters.
Click Create Cluster.
Configure cluster information, specify control and worker nodes, and configure authentication parameters.
Click OK.
Configure Cluster Info
OS: Select an operating system. Options include Euler, CentOS, and Kylin.
Kubernetes Version: Select a version for the Kubernetes cluster.
Cluster Name: Enter a name for the Kubernetes cluster.
Cluster Description: Enter a description for the Kubernetes cluster.
Container Network Model: Select a network model for Pods in the cluster. Options include the following:
Tunnel Network—A tunnel network supports only one type of nodes. This model is applicable to scenarios that have low requirements for network latency and bandwidth.
Routing Network—Each node must have one route to another node for inter-node container communication. A maximum of 200 routes are supported in the network. This model is applicable to scenarios that have high requirements for network latency and bandwidth.
Container Network: Specify a network for containers in the cluster. The system assigns IP addresses automatically from this network when deploying containers. You can use the default network 10.240.0.0/12 or manually specify a network.
Service Network: Specify a network for services in the cluster. The system assigns IP addresses automatically from this network when creating services. You can use the default network 10.100.0.0/16 or manually specify a network.
Customize SANs: Specify the subject alternative names (SANs) to use for the API server certificate. To create a VIP for the cluster and use the VIP to access the API server, add the VIP to this field.
You cannot change the SANs after the cluster is created. If the API server certificate expires, you must renew it. For more information about certificates, see "Manage certificates."
Cluster Domain Name: Specify a cluster domain name for access from outside the cluster.
Configure Node Settings
Controller Node
Node Quantity: Select the number of controller nodes. Options include Single Node and Three Nodes. As a best practice, select Three Nodes for HA.
Cluster VIP: Set the virtual IP address for the container cluster to provide services. The cluster VIP can be configured only when three controller nodes available for high availability.
Node Name: Specify a name for the controller node.
CPU: Select the number of CPU cores.
Memory: Specify the memory size.
Select Cluster: Select the cluster to which the controller node belongs. You must enable container cluster when you create a cluster.
Select Storage: Select the storage that the controller node uses. Only storage pools of the shared file system type mounted to the host are supported.
Select vSwitch: Select a vSwitch for the controller node to use.
Select Port Profile: Select a port profile for the controller node to use.
IP Address: Specify an IP address for the controller node. You must configure this field when you select Single Node.
Start IP Address: Specify an IP address to start for assigning IP addresses to controller nodes. You must configure this field when you select Multiple Nodes.
Subnet Mask: Specify a subnet mask for the controller node.
Default Gateway: Specify a default gateway.
Worker Node
Node Name: Specify a name for the worker node.
CPU: Select the number of CPU cores.
Memory: Specify the memory size.
Node Quantity: Select node quantity. You must specify at least one worker node.
Select Cluster: Select the cluster to which the worker node belongs. You must enable container cluster when you create a cluster.
Select Storage: Select the storage that the worker node uses. Only storage pools of the shared file system type mounted to the host are supported.
Select vSwitch: Select a vSwitch for the worker node to use.
Select Port Profile: Select a port profile for the worker node to use.
IP Address: Specify an IP address for the worker node. You must configure this field when you set the node quantity to 1.
Start IP Address: Specify an IP address to start for assigning IP addresses to worker nodes. You must configure this field when you select Multiple Nodes.
Subnet Mask: Specify a subnet mask for the worker node.
Default Gateway: Specify a default gateway.
Authentication Info
Username: Specify a username. Only root is supported.
Password: Specify a password.