Updated on 2023-12-13 GMT+08:00

CCE.NodePool

Property Description

Table 1 Property Description

Property

Required

Type

Description

dataVolumes

Yes

CCE.DataVolume

Data disk of the created node

Value Description: Supports customization, for example, [{"volumeType":"SATA","size":100}].

Value Constraint: Array format. Currently, only one object is supported.

Suggestion: Customize the value. For details, visit https://support.huaweicloud.com/intl/en-us/tr-aos/datatypes-cce-datavolume.html.

availabilityZone

Yes

HuaweiCloud.ECS.AvailabilityZone.Name

AZ where the node is located

Value Description: AZ where the to-be-created ECS is located. The name of the AZ needs to be specified, for example, cn-north-1a. For details, see the Regions and Endpoints.

Value Constraint: The value varies depending on the belonged region. For details, visit https://developer.huaweicloud.com/intl/en-us/endpoint.

Suggestion: 1. Use the get_input function to pass this parameter. Its value can then be automatically selected when you create a stack on the AOS console. 2. For details about the AZ of each region, visit https://developer.huaweicloud.com/intl/en-us/endpoint.

name

No

string

Name of the created node

Value Description: Supports customization.

Value Constraint: The value contains 4 to 32 characters and must start with a lowercase letter. Only lowercase letters, digits, and underscores (_) are allowed.

Suggestion: Customize the value. Generally, the stack name is used as the node name.

publicKey

No

HuaweiCloud.ECS.KeyPair.PublicKey

Public key of the key pair in the duration-based billing mode

Value Description: Selects an existing public key.

Suggestion: Use the get_input function to pass this parameter. Its value can then be automatically selected based on parameter sshKeyName when you create a stack on the AOS console.

postInstall

No

string

Node post-installation script

Value Description: Supports customization.

Value Constraint: The script you specify here will be executed after Kubernetes software is installed.

Suggestion: The script is usually used to modify container parameters.

labels

No

dict

Labels of the created node

Value Description: Supports customization, for example, {"key": "aos","value": "app","scope":[1,2]}.

Suggestion: Enter the key, value, and scope as required.

preInstall

No

string

Node pre-installation script

Value Description: Supports customization.

Value Constraint: The script you specify here will be executed before K8S software is installed. Note that if the script is incorrect, Kubernetes software may not be installed successfully.

Suggestion: The script is usually used to format data disks.

publicIp

No

CCE.PublicIP

Virtual IP address of the created node

Value Description: Supports customization, for example, {"eip":{"bandwidth:{" shareType":PER}, 5_sbgp"}}.

Value Constraint: Only one elastic IP address can be defined for each node.

Suggestion: Customize the value. For details, visit https://support.huaweicloud.com/intl/en-us/tr-aos/datatypes-cce-publicip.html.

instances

Yes

integer

Number of the created nodes

Value Description: Supports customization. The value ranges from 1 to 50.

Value Constraint: {u'in_range': [1, 50]}

Suggestion: Set the value based on specifications and requirements.

rootVolume

Yes

ECS.RootVolume

System disk of the created node

Value Description: Supports customization, for example, {"volumeType":"SATA","size":40}.

Suggestion: Customize the value. For details, visit https://support.huaweicloud.com/intl/en-us/tr-aos/datatypes-ecs-rootvolume.html.

os

No

string

os of the created node

Value Description: ["EulerOS 2.2", "CentOS 7.4"]

Value Constraint: Customize the value. This parameter is EulerOS 2.2 by default.

Suggestion: Supports EulerOS 2.2 and CentOS 7.4.

nodePasswd

No

password

Password of the nodes' root

Value Description: Supports customization.

Value Constraint: 1. The parameter must be written into inputs and set using the get_input function. 2. The value cannot be empty or a weak password. Enter 8 to 26 characters. Only uppercase and lowercase letters, digits, and special characters !@$%^-_=+[{}]:,./? are allowed. The value must contain at least two types of characters. 3. 3. Using both sshkeyName and nodePasswd is not supported

Suggestion: You are advised to use the get_input function to obtain the value and avoid plaintext passwords to ensure security.

flavor

Yes

HuaweiCloud.CCE.Node.Flavor.Name

Container node specifications

Value Description: System flavor ID of the ECS to be created. For example, c1.medium indicates 1 vCPU | 1 GB, and c2.large indicates 2 vCPU | 4 GB. For details about the available flavors, see ECS Specifications at https://support.huaweicloud.com/intl/en-us/productdesc-ecs/ecs_01_0014.html. You are advised to use the get_input function to pass this parameter.

Suggestion: Select the node specification during node creation on the CCE console. In the node template, you can set inputs to specify the node specification.

sshKeyName

Yes

HuaweiCloud.ECS.KeyPair.Name

Key pair used for logging in to a node, which needs to be kept properly

Value Description: Must be created on the ECS console in advance.

Value Constraint: Using both sshkeyName and nodePasswd is not supported.

Suggestion: 1. You are advised to use the get_input function to assign values so that you can select a value when using the template. 2. Query information on the ECS page and then enter such information accordingly.

annotations

No

dict

Annotations of Node

Value Description: Supports customization, for example, {"app": "aos"}.

Suggestion: Enter multiple key-value pairs to customize the value.