Creating a CCE Node
Related Resources
Procedure
- Create a CCE cluster. For details, see Creating a CCE Cluster.
- Create a CCE node.
- Add the following content to the cce.tf file created in Creating a CCE Cluster.
data "huaweicloud_availability_zones" "myaz" {} resource "huaweicloud_compute_keypair" "mykeypair" { name = "mykeypair" } resource "huaweicloud_cce_node" "mynode" { cluster_id = huaweicloud_cce_cluster.mycce.id name = "mynode" flavor_id = "t6.large.2" availability_zone = data.huaweicloud_availability_zones.myaz.names[0] key_pair = huaweicloud_compute_keypair.mykeypair.name root_volume { size = 40 volumetype = "SAS" } data_volumes { size = 100 volumetype = "SAS" } }
- Run terraform plan to view resources.
- After you confirm that the resource information is correct, run terraform apply to start resource creation.
- Run terraform show to view the created CCE node.
- Add the following content to the cce.tf file created in Creating a CCE Cluster.
Resource Name |
Parameter |
Description |
|
---|---|---|---|
huaweicloud_cce_node |
cluster_id |
(Mandatory) Cluster ID. |
|
name |
(Optional) Node name.
|
||
flavor_id |
(Mandatory) Node flavor. |
||
availability_zone |
(Mandatory) Name of the AZ to which a node belongs.
|
||
key_pair |
(Optional) Key pair used for login.
|
||
root_volume |
size |
(Mandatory) Disk size in GB.
|
|
volumetype |
(Mandatory) Disk type.
|
||
data_volume |
size |
(Mandatory) Disk size in GB.
|
|
volumetype |
(Mandatory) Disk type.
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot