检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
e) { e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Add a node running
Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
For details, see Number of Node Network Interfaces (Available Only in CCE Turbo Clusters).
Default value: N/A Response Parameters Status code: 200 The node pool synchronization has been accepted.
Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
If the mask of the container CIDR block allocated to each node is 28 (a total of 16 pod IP addresses allocated each time), a maximum of 4,096 (65536/16) nodes can be created. This is an extreme case.
The mask of the container CIDR block allocated to a node is 25. That is, the number of pod IP addresses on each node is 128. Therefore, a maximum of 512 (65536/128) nodes can be created.
Status Codes Status Code Description 200 The job for migrating a node from a specified cluster to another cluster is successfully delivered. Error Codes See Error Codes. Parent Topic: Node Management
It may be an internal component or an external service. code: HTTP response status code, such as 200 (OK), 404 (Not Found), 500 (Internal Server Error), or 429 (Too Many Requests).
Status Codes Status Code Description 200 The node labels have been obtained. Error Codes See Error Codes. Parent Topic: Tag Management
Range N/A Default Value N/A userTags No Array of UserTag objects Definition Cloud server tag (resource tag). When creating a node, you can specify an initial value for this field, and this field is not returned during query.
(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Removing a Node 1 2 3 4 5 6 7 8 9 10 11 12 13
} catch (ServiceResponseException e) { e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg());
Constraints N/A Range N/A Default Value N/A name No String Definition Node name. NOTE: Specifying this field during reinstallation will change the node name, and the server name will change accordingly. By default, the current server name is used as the node name.
/services/cce/v3/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cce/v3/region" ) func main() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
/cce/v3/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cce/v3/region" ) func main() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
The costs of a single cluster consist of the namespace cost, unallocated cost, and cluster management cost (the cost for managing master nodes in a CCE cluster and the system namespace). The unallocated cost and cluster management cost are defined as shared costs.
/cce/v3/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cce/v3/region" ) func main() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
Status Codes Status Code Description 200 The job for managing a node in the customized node pool in the cluster delivered. Error Codes See Error Codes. Parent Topic: Node Management
For details about how to obtain the value, see How to Obtain Parameters in the API URI. nodepool_id Yes String Node pool ID. Request Parameters Table 2 Request header parameters Parameter Mandatory Type Description Content-Type Yes String Message body type (format).