CCE.NodePool
Property Description
| Property | Mandatory | Type | Description |
|---|---|---|---|
| dataVolumes | Yes | 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, see https://support.huaweicloud.com/en-us/tr-aos/datatypes-cce-datavolume.html. | |
| availabilityZone | Yes | HuaweiCloud.ECS.AvailabilityZone.Name | AZ where the node is located Value Description: Indicates the AZ where the to-be-created ECS is located. The name of the AZ needs to be specified, for example, cn-north-1a. See the Regions and Endpoints. Value Constraint: For details, visit https://developer.huaweicloud.com/en-us/endpoint. Suggestion: 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. For details about the AZ of each region, visit https://developer.huaweicloud.com/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 K8S 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. Suggestion: Customize the value. |
| 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, K8S software may not be installed successfully Suggestion: The script is usually used to format data disks |
| publicIp | No | 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, see https://support.huaweicloud.com/en-us/tr-aos/datatypes-cce-publicip.html. | |
| instances | Yes | integer | Number of created nodes Value Description: Supports customization. The value ranges from 1 to 50. Suggestion: Set the value based on specifications and requirements. |
| rootVolume | Yes | System disk of the created node Value Description: Supports customization, for example, {"volumeType":"SATA","size":40}. Suggestion: Customize the value. For details, see https://support.huaweicloud.com/en-us/tr-aos/datatypes-ecs-rootvolume.html. | |
| os | No | string | os of the created node Value Description: Supports customization. Value Constraint: Customize the value. default EulerOS 2.2 Suggestion: Supports EulerOS 2.2 and CentOS 7.4 |
| nodePasswd | No | password | Password of nodes' root Value Description: Supports customization. Value Constraint: 1. The parameter must be written into inputs and imported using the get_input function. 2. The value is not empty, and consists of uppercase and lowercase letters, numbers, and special symbols !@$%^-_=+[{}]:,./? and contains at least two, length 8 ~26 bit, non-weak password. 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 specification 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/en-us/productdesc-ecs/en-us_topic_0159822360.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 the 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 in advance on the ECS console. 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. Suggestion: Supports customization. |
Last Article: CCE.Labels
Next Article: CCE.PublicIP
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.