diff --git a/docs/cce/api-ref/.placeholder b/docs/cce/api-ref/.placeholder deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/cce/api-ref/ALL_META.TXT.json b/docs/cce/api-ref/ALL_META.TXT.json index 6312292fa..ef72564ff 100644 --- a/docs/cce/api-ref/ALL_META.TXT.json +++ b/docs/cce/api-ref/ALL_META.TXT.json @@ -230,9 +230,49 @@ "githuburl":"" }, { - "uri":"cce_02_0354.html", + "uri":"AddNode.html", "product_code":"cce", "code":"24", + "des":"This API is used to accept a node into a specified cluster.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource", + "doc_type":"api2", + "kw":"Accepting a Node,Cluster Management,API Reference", + "title":"Accepting a Node", + "githuburl":"" + }, + { + "uri":"ResetNode.html", + "product_code":"cce", + "code":"25", + "des":"This API is used to reset a node in a specified cluster.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource pa", + "doc_type":"api2", + "kw":"Resetting a Node,Cluster Management,API Reference", + "title":"Resetting a Node", + "githuburl":"" + }, + { + "uri":"RemoveNode.html", + "product_code":"cce", + "code":"26", + "des":"This API is used to remove a node from a specified cluster.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource", + "doc_type":"api2", + "kw":"Removing a Node,Cluster Management,API Reference", + "title":"Removing a Node", + "githuburl":"" + }, + { + "uri":"MigrateNode.html", + "product_code":"cce", + "code":"27", + "des":"This API is used to migrate a node from a specified cluster to another cluster (both clusters must in the same VPC). Physical nodes of the ECS service in a CCE Turbo clus", + "doc_type":"api2", + "kw":"Migrating a Node,Cluster Management,API Reference", + "title":"Migrating a Node", + "githuburl":"" + }, + { + "uri":"cce_02_0354.html", + "product_code":"cce", + "code":"28", "des":"This API is used to create a node pool in a specified cluster.POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepoolsTable 1 describes the parameters of the AP", "doc_type":"api2", "kw":"Creating a Node Pool,Cluster Management,API Reference", @@ -242,7 +282,7 @@ { "uri":"cce_02_0355.html", "product_code":"cce", - "code":"25", + "code":"29", "des":"This API is used to query a specified node pool.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource path, that", "doc_type":"api2", "kw":"Querying a Specified Node Pool,Cluster Management,API Reference", @@ -252,7 +292,7 @@ { "uri":"cce_02_0356.html", "product_code":"cce", - "code":"26", + "code":"30", "des":"This API is used to update a specified node pool.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource path, tha", "doc_type":"api2", "kw":"Updating a Specified Node Pool,Cluster Management,API Reference", @@ -262,7 +302,7 @@ { "uri":"cce_02_0269.html", "product_code":"cce", - "code":"27", + "code":"31", "des":"This API is used to obtain information about all node pools in a specified cluster.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, ur", "doc_type":"api2", "kw":"Listing All Node Pools in a Specified Cluster,Cluster Management,API Reference", @@ -272,7 +312,7 @@ { "uri":"cce_02_0357.html", "product_code":"cce", - "code":"28", + "code":"32", "des":"This API is used to delete a specified node pool.The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource path, tha", "doc_type":"api2", "kw":"Deleting a Node Pool,Cluster Management,API Reference", @@ -282,7 +322,7 @@ { "uri":"cce_02_0320.html", "product_code":"cce", - "code":"29", + "code":"33", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api2", "kw":"Add-on Management", @@ -292,7 +332,7 @@ { "uri":"cce_02_0322.html", "product_code":"cce", - "code":"30", + "code":"34", "des":"This API is used to install an add-on instance by using the add-on template. One or more instances will be created for the installed add-on.The URL for add-on management ", "doc_type":"api2", "kw":"Installing an Add-on Instance,Add-on Management,API Reference", @@ -302,7 +342,7 @@ { "uri":"cce_02_0321.html", "product_code":"cce", - "code":"31", + "code":"35", "des":"This API is used to query add-on information.The URL for add-on management is in the format of https://{clusterid}.Endpoint/uri. In the URL, {clusterid} indicates the clu", "doc_type":"api2", "kw":"Reading Add-on Templates,Add-on Management,API Reference", @@ -312,7 +352,7 @@ { "uri":"cce_02_0323.html", "product_code":"cce", - "code":"32", + "code":"36", "des":"This API is used to update an add-on instance.The URL for add-on management is in the format of https://{clusterid}.Endpoint/uri. In the URL, {clusterid} indicates the cl", "doc_type":"api2", "kw":"Updating an Add-on Instance,Add-on Management,API Reference", @@ -322,7 +362,7 @@ { "uri":"cce_02_0324.html", "product_code":"cce", - "code":"33", + "code":"37", "des":"This API is used to delete an add-on instance.The URL for add-on management is in the format of https://{clusterid}.Endpoint/uri. In the URL, {clusterid} indicates the cl", "doc_type":"api2", "kw":"Deleting an Add-on Instance,Add-on Management,API Reference", @@ -332,7 +372,7 @@ { "uri":"cce_02_0325.html", "product_code":"cce", - "code":"34", + "code":"38", "des":"This API is used to obtain details about an add-on instance.The URL for add-on management is in the format of https://{clusterid}.Endpoint/uri. In the URL, {clusterid} in", "doc_type":"api2", "kw":"Reading an Add-on Instance,Add-on Management,API Reference", @@ -342,7 +382,7 @@ { "uri":"cce_02_0326.html", "product_code":"cce", - "code":"35", + "code":"39", "des":"This API is used to list all add-on instances in the cluster.The URL for add-on management is in the format of https://{clusterid}.Endpoint/uri. In the URL, {clusterid} i", "doc_type":"api2", "kw":"Listing Add-on Instances,Add-on Management,API Reference", @@ -352,7 +392,7 @@ { "uri":"quota_lifecycle_management.html", "product_code":"cce", - "code":"36", + "code":"40", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api2", "kw":"Quota Management", @@ -362,7 +402,7 @@ { "uri":"ShowQuotas.html", "product_code":"cce", - "code":"37", + "code":"41", "des":"This API is used to query CCE resource quotas.GET /api/v3/projects/{project_id}/quotasStatus code: 200NoneStatus code: 200The resource quotas are obtained successfully.Se", "doc_type":"api2", "kw":"Querying Resource Quotas,Quota Management,API Reference", @@ -372,7 +412,7 @@ { "uri":"cce_02_0340.html", "product_code":"cce", - "code":"38", + "code":"42", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api2", "kw":"Kubernetes APIs", @@ -382,7 +422,7 @@ { "uri":"kubernetesapi.html", "product_code":"cce", - "code":"39", + "code":"43", "des":"You can use Kubernetes native APIs to manage your Kubernetes clusters. For details, see Kubernetes API Concepts.To find detailed API definitions for different Kubernetes ", "doc_type":"api2", "kw":"Overview,Kubernetes APIs,API Reference", @@ -392,7 +432,7 @@ { "uri":"cce_02_0327.html", "product_code":"cce", - "code":"40", + "code":"44", "des":"This chapter describes fine-grained permissions management for your CCE. If your cloud account does not need individual IAM users, then you may skip over this chapter.A p", "doc_type":"api2", "kw":"Permissions Policies and Supported Actions,API Reference", @@ -402,7 +442,7 @@ { "uri":"cce_02_0083.html", "product_code":"cce", - "code":"41", + "code":"45", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api2", "kw":"Appendix", @@ -412,7 +452,7 @@ { "uri":"cce_02_0085.html", "product_code":"cce", - "code":"42", + "code":"46", "des":"Kubernetes APIs use the HTTP header \"Content-Type\" to distinguish between patch request method operations.Currently, three types of patch request method operations are su", "doc_type":"api2", "kw":"Patch Request Method Operation Description,Appendix,API Reference", @@ -422,7 +462,7 @@ { "uri":"cce_02_0086.html", "product_code":"cce", - "code":"43", + "code":"47", "des":"This section provides examples of Merge Patch and Strategic Merge Patch method operations.By way of example, Merge Patch and Strategic Merge Patch method operations are p", "doc_type":"api2", "kw":"Patch Request Method Operation Example,Appendix,API Reference", @@ -432,7 +472,7 @@ { "uri":"cce_02_0084.html", "product_code":"cce", - "code":"44", + "code":"48", "des":"Table 1 describes the status codes.", "doc_type":"api2", "kw":"Status Code,Appendix,API Reference", @@ -442,7 +482,7 @@ { "uri":"cce_02_0250.html", "product_code":"cce", - "code":"45", + "code":"49", "des":"If an error occurs in API calling, no result is returned. Identify the cause based on the error code of each API. If an error occurs in API calling, HTTP status code 4xx ", "doc_type":"api2", "kw":"Error Codes,Appendix,API Reference", @@ -452,7 +492,7 @@ { "uri":"cce_02_0341.html", "product_code":"cce", - "code":"46", + "code":"50", "des":"You can obtain the project ID by calling the API used to query project information based on the specified criteria.The API used to obtain a project ID is GET https://{End", "doc_type":"api2", "kw":"Obtaining a Project ID,Appendix,API Reference", @@ -462,27 +502,17 @@ { "uri":"cce_02_0342.html", "product_code":"cce", - "code":"47", + "code":"51", "des":"An account ID is required for some URLs when an API is called. To obtain an account ID, perform the following operations:On the My Credentials page, view account IDs in t", "doc_type":"api2", "kw":"Obtaining the Account ID,Appendix,API Reference", "title":"Obtaining the Account ID", "githuburl":"" }, - { - "uri":"cce_02_0087.html", - "product_code":"cce", - "code":"48", - "des":"This section describes how to use the Elastic Load Balancer (ELB) in a cluster created by CCE.Create a Service. Before enabling sticky session, ensure that the following ", - "doc_type":"api2", - "kw":"How to Use ELB in a Cluster,Appendix,API Reference", - "title":"How to Use ELB in a Cluster", - "githuburl":"" - }, { "uri":"cce_02_0271.html", "product_code":"cce", - "code":"49", + "code":"52", "des":"If you are using Google Chrome, press F12. On the pane displayed on the right, click the Network tab. Enter jobs in the Filter text box to filter the job list. Select a j", "doc_type":"api2", "kw":"How to Obtain Parameters in the API URI,Appendix,API Reference", @@ -492,7 +522,7 @@ { "uri":"cce_02_0272.html", "product_code":"cce", - "code":"50", + "code":"53", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api2", "kw":"API Permissions,Appendix,API Reference", @@ -502,7 +532,7 @@ { "uri":"cce_02_0100.html", "product_code":"cce", - "code":"51", + "code":"54", "des":"To provide a secure and isolated network environment for CCE, create a VPC before creating a cluster.If you have already created a VPC, you do not need to create it again", "doc_type":"api2", "kw":"Creating a VPC and Subnet,Appendix,API Reference", @@ -512,17 +542,27 @@ { "uri":"cce_02_0101.html", "product_code":"cce", - "code":"52", + "code":"55", "des":"Create a key pair before you create a container cluster. Key pairs are used for user identity authentication upon login to a node.If you have already created a key pair, ", "doc_type":"api2", "kw":"Creating a Key Pair,Appendix,API Reference", "title":"Creating a Key Pair", "githuburl":"" }, + { + "uri":"node_storage_example.html", + "product_code":"cce", + "code":"56", + "des":"In disk planning and striped logical disk creation, it is difficult for users to flexibly attach and partition disks when creating a node.During node creation, the storag", + "doc_type":"api2", + "kw":"Attaching Disks to a Node,Appendix,API Reference", + "title":"Attaching Disks to a Node", + "githuburl":"" + }, { "uri":"cce_02_0273.html", "product_code":"cce", - "code":"53", + "code":"57", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api2", "kw":"Change History,API Reference", diff --git a/docs/cce/api-ref/AddNode.html b/docs/cce/api-ref/AddNode.html new file mode 100644 index 000000000..cba07bf03 --- /dev/null +++ b/docs/cce/api-ref/AddNode.html @@ -0,0 +1,1028 @@ + + +
This API is used to accept a node into a specified cluster.
+
The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the path for API access.
+POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/add
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
cluster_id + |
+Yes + |
+String + |
+Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
Content-Type + |
+Yes + |
+String + |
+Message body type (format). + |
+
X-Auth-Token + |
+Yes + |
+String + |
+Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see API Usage Guidelines. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
apiVersion + |
+Yes + |
+String + |
+API version. The value is fixed at v3. + |
+
kind + |
+Yes + |
+String + |
+API type. The value is fixed at List. + |
+
nodeList + |
+Yes + |
+Array of AddNode objects + |
+List of the nodes to be accepted. + NOTE:
+Nodes must have 2-core or higher CPU, 4 GB or larger memory. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
serverID + |
+Yes + |
+String + |
+Server ID. For details about how to obtain the server ID, see the ECS or BMS documentation. + |
+
spec + |
+Yes + |
+ReinstallNodeSpec object + |
+Node reinstallation configuration parameters. Currently, accepted nodes cannot be added into node pools. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
os + |
+Yes + |
+String + |
+Operating system. If you specify a custom image, the actual OS version in the IMS image is used. Select an OS version supported by the current cluster, for example, EulerOS 2.5, CentOS 7.7, or EulerOS 2.9. + |
+
login + |
+Yes + |
+Login object + |
+Node login mode. + |
+
name + |
+No + |
+String + |
+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. Enter 1 to 56 characters starting with a letter and not ending with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed. + |
+
serverConfig + |
+No + |
+ReinstallServerConfig object + |
+Server configuration. + |
+
volumeConfig + |
+No + |
+ReinstallVolumeConfig object + |
+Volume management configuration. + |
+
runtimeConfig + |
+No + |
+ReinstallRuntimeConfig object + |
+Container runtime configuration. + |
+
k8sOptions + |
+No + |
+ReinstallK8sOptionsConfig object + |
+Kubernetes node configuration. + |
+
lifecycle + |
+No + |
+NodeLifecycleConfig object + |
+Customized lifecycle configuration of a node. + |
+
initializedConditions + |
+No + |
+Array of strings + |
+Custom initialization flag. +Before CCE nodes are initialized, they are tainted with node.cloudprovider.kubernetes.io/uninitialized to prevent pods from being scheduled to them. +CCE supports custom initialization flags. After receiving the initializedConditions parameter, CCE converts the parameter value into a node label and provisions the label with the node, for example, cloudprovider.openvessel.io/inject-initialized-conditions=CCEInitial_CustomedInitial. +After the node is labeled, its status.Conditions is polled to check whether the type of conditions has a flag name, such as CCEInitial and CustomedInitial. If all input flags exist and their status is True, the node initialization is complete and the initialization taint is removed. +
|
+
extendParam + |
+No + |
+ReinstallExtendParam object + |
+Extended reinstallation parameter, which is discarded. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sshKey + |
+No + |
+String + |
+Name of the key pair used for login. + |
+
userPassword + |
+No + |
+String + |
+Password used for node login. + NOTE:
+This field is not supported for the current version. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
userTags + |
+No + |
+Array of UserTag objects + |
+Cloud server labels. The key of a label must be unique. The maximum number of user-defined labels supported by CCE depends on the region. In the region that supports the least number of labels, you can still create up to 5 labels for a cloud server. + |
+
rootVolume + |
+No + |
+ReinstallVolumeSpec object + |
+System disk configurations used in reinstallation. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+No + |
+String + |
+Key of the cloud server label. The value cannot start with CCE- or __type_baremetal. + |
+
value + |
+No + |
+String + |
+Value of the cloud server label. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
imageID + |
+No + |
+String + |
+Custom image ID. + |
+
cmkID + |
+No + |
+String + |
+User master key ID. If this parameter is left blank by default, the EVS disk is not encrypted. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvmConfig + |
+No + |
+String + |
+Docker data disk configurations. +The following is an example default configuration: +"lvmConfig":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"+ The following fields are included: +
|
+
storage + |
+No + |
+Storage object + |
+Disk initialization management parameter. +This parameter is complex to configure. For details, see Attaching Disks to a Node. +If this parameter retains its default, disks are managed based on the DockerLVMConfigOverride (discarded) parameter in extendParam. This parameter is supported by clusters of version 1.15.11 and later. + NOTE:
+If a node specification involves local disks and EVS disks at the same time, do not retain the default value of this parameter to prevent unexpected disk partitions. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
storageSelectors + |
+Yes + |
+Array of StorageSelectors objects + |
+Disk selection. Matched disks are managed according to matchLabels and storageType. + |
+
storageGroups + |
+Yes + |
+Array of StorageGroups objects + |
+A storage group consists of multiple storage devices. It is used to divide storage space. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Selector name, used as the index of selectorNames in storageGroup. Therefore, the name of each selector must be unique. + |
+
storageType + |
+Yes + |
+String + |
+Specifies the storage type. Currently, only evs (EVS volumes) and local (local volumes) are supported. The local storage does not support disk selection. All local disks will form a VG. Therefore, only one storageSelector of the local type is allowed. + |
+
matchLabels + |
+No + |
+matchLabels object + |
+Matching field of an EVS volume. The size, volumeType, metadataEncrypted, metadataCmkid and count fields are supported. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
size + |
+No + |
+String + |
+Matched disk size. If this parameter is left unspecified, the disk size is not limited. Example: 100 + |
+
volumeType + |
+No + |
+String + |
+EVS disk type. + |
+
metadataEncrypted + |
+No + |
+String + |
+Disk encryption identifier. 0 indicates that the disk is not encrypted, and 1 indicates that the disk is encrypted. + |
+
metadataCmkid + |
+No + |
+String + |
+Customer master key ID of an encrypted disk. The value is a 36-byte string. + |
+
count + |
+No + |
+String + |
+Number of disks to be selected. If this parameter is left blank, all disks of this type are selected. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Name of a virtual storage group, which must be unique. + |
+
cceManaged + |
+No + |
+Boolean + |
+Storage space for Kubernetes and runtime components. Only one group can be set to true. If this parameter is left blank, the default value false is used. + |
+
selectorNames + |
+Yes + |
+Array of strings + |
+This parameter corresponds to name in storageSelectors. A group can match multiple selectors, but a selector can match only one group. + |
+
virtualSpaces + |
+Yes + |
+Array of VirtualSpace objects + |
+Detailed management of space configuration in a group. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Name of a virtualSpace. +
|
+
size + |
+Yes + |
+String + |
+Size of a virtualSpace. The value must be an integer in percentage. Example: 90%. + NOTE:
+The sum of the percentages of all virtualSpaces in a group cannot exceed 100%. + |
+
lvmConfig + |
+No + |
+LVMConfig object + |
+LVM configurations, applicable to kubernetes and user spaces. Note that one virtual space supports only one config. + |
+
runtimeConfig + |
+No + |
+RuntimeConfig object + |
+runtime configurations, applicable to the runtime space. Note that one virtual space supports only one config. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvType + |
+Yes + |
+String + |
+LVM write mode. linear indicates the linear mode. striped indicates the striped mode, in which multiple disks are used to form a strip to improve disk performance. + |
+
path + |
+No + |
+String + |
+Path to which the disk is attached. This parameter takes effect only in user configuration. The value is an absolute path. Digits, letters, periods (.), hyphens (-), and underscores (_) are allowed. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvType + |
+Yes + |
+String + |
+LVM write mode. linear indicates the linear mode. striped indicates the striped mode, in which multiple disks are used to form a strip to improve disk performance. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
dockerBaseSize + |
+No + |
+Integer + |
+Available disk space of a single container on a node, in GB. +If this parameter is left blank or is set to 0, the default value is used. In Device Mapper mode, the default value is 10. In OverlayFS mode, the available space of a single container is not limited by default, and the dockerBaseSize setting takes effect only on EulerOS nodes in the cluster of the new version. +When Device Mapper is used, you are advised to set dockerBaseSize to a value less than or equal to 80 GB. If the value is too large, the container runtime may fail to be started due to long initialization. If there are special requirements for the container disk space, you can mount an external or local storage device. + |
+
runtime + |
+No + |
+Runtime object + |
+Container runtime. Defaults to docker. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+No + |
+String + |
+Container runtime. Defaults to docker. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
labels + |
+No + |
+Map<String,String> + |
+Defined in key-value pairs. A maximum of 20 key-value pairs are allowed. +
Example: +"k8sTags": {
+ "key": "value"
+}
+ |
+
taints + |
+No + |
+Array of Taint objects + |
+Taints can be added for anti-affinity when creating nodes. A maximum of 20 taints can be added. Each taint contains the following parameters: +
Example: +"taints": [{
+ "key": "status",
+ "value": "unavailable",
+ "effect": "NoSchedule"
+}, {
+ "key": "looks",
+ "value": "bad",
+ "effect": "NoSchedule"
+}]
+ |
+
maxPods + |
+No + |
+Integer + |
+Maximum number of pods that can be created on a node, including the default system pods. Value range: 16 to 256. This limit prevents the node from being overloaded of pods. + |
+
nicMultiqueue + |
+No + |
+String + |
+
"[{\"queue\":4}]"
+The following fields are included: +
|
+
nicThreshold + |
+No + |
+String + |
+
"0.3:0.6"+
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Key. + |
+
value + |
+No + |
+String + |
+Value. + |
+
effect + |
+Yes + |
+String + |
+Effect. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
preInstall + |
+No + |
+String + |
+Pre-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
postInstall + |
+No + |
+String + |
+Post-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
alpha.cce/NodeImageID + |
+No + |
+String + |
+(Discarded) ID of the user image to run the target OS. Specifying this parameter is equivalent to specifying imageID in ReinstallVolumeSpec. The original value will be overwritten. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
jobid + |
+String + |
+Job ID returned after the job is delivered. The job ID can be used to query the job execution status. + |
+
Accepting a Node
+POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/add
+
+{
+ "kind" : "List",
+ "apiVersion" : "v3",
+ "nodeList" : [ {
+ "serverID" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "spec" : {
+ "name" : "my-ecs-0001",
+ "os" : "EulerOS 2.5",
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ }
+ }
+ } ]
+}
+Status code: 200
+The job for accepting a node into a specified cluster is successfully delivered.
+{
+ "jobid" : "2ec9b78d-9368-46f3-8f29-d1a95622a568"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The job for accepting a node into a specified cluster is successfully delivered. + |
+
See Error Codes.
+This API is used to migrate a node from a specified cluster to another cluster (both clusters must in the same VPC). Physical nodes of the ECS service in a CCE Turbo cluster cannot be migrated.
+
The URL for cluster management is in the format of **https://Endpoint/uri, in which uri indicates the resource path, that is, the path for API access.
+PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
cluster_id + |
+Yes + |
+String + |
+Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
target_cluster_id + |
+Yes + |
+String + |
+Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
Content-Type + |
+Yes + |
+String + |
+Message body type (format). + |
+
X-Auth-Token + |
+Yes + |
+String + |
+Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see API Usage Guidelines. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
apiVersion + |
+No + |
+String + |
+API version. The value is fixed at v3. + |
+
kind + |
+No + |
+String + |
+API type. The value is fixed at MigrateNodesTask. + |
+
spec + |
+Yes + |
+MigrateNodesSpec object + |
+Configuration data. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
os + |
+Yes + |
+String + |
+Operating system type, which must be accurate to the version number. When alpha.cce/NodeImageID is specified, the value of os must be the same as the OS of the custom image. + |
+
extendParam + |
+No + |
+MigrateNodeExtendParam object + |
+Extended parameters for node migration. + |
+
login + |
+Yes + |
+Login object + |
+Node login mode. + |
+
nodes + |
+Yes + |
+Array of NodeItem objects + |
+List of nodes to be operated. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
maxPods + |
+No + |
+Integer + |
+Maximum number of pods that can be created on a node, including the default system pods. Value range: 16 to 256. This limit prevents the node from being overloaded of pods. + |
+
DockerLVMConfigOverride + |
+No + |
+String + |
+Docker data disk configuration item. (This parameter has been discarded. Use the storage field instead.) +The disk type of the nodes to be migrated must be the same as that specified during node creation (that is, the value of diskType in DockerLVMConfigOverride must be the same as that specified during node creation). Ensure that the disk types of the nodes selected for a single API call are the same. +Example default configuration: +"DockerLVMConfigOverride":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"+ The following fields are included: +
|
+
alpha.cce/preInstall + |
+No + |
+String + |
+Pre-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
alpha.cce/postInstall + |
+No + |
+String + |
+Post-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
alpha.cce/NodeImageID + |
+No + |
+String + |
+ID of the user image to run the target OS. When alpha.cce/NodeImageID is specified, the value of os must be the same as the OS of the custom image. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
apiVersion + |
+String + |
+API version. The value is fixed at v3. + |
+
kind + |
+String + |
+API type. The value is fixed at MigrateNodesTask. + |
+
spec + |
+MigrateNodesSpec object + |
+Configuration data. + |
+
status + |
+TaskStatus object + |
+Job status. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
os + |
+String + |
+Operating system type, which must be accurate to the version number. When alpha.cce/NodeImageID is specified, the value of os must be the same as the OS of the custom image. + |
+
extendParam + |
+MigrateNodeExtendParam object + |
+Extended parameters for node migration. + |
+
login + |
+Login object + |
+Node login mode. + |
+
nodes + |
+Array of NodeItem objects + |
+List of nodes to be operated. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
maxPods + |
+Integer + |
+Maximum number of pods that can be created on a node, including the default system pods. Value range: 16 to 256. This limit prevents the node from being overloaded of pods. + |
+
DockerLVMConfigOverride + |
+String + |
+Docker data disk configuration item. (This parameter has been discarded. Use the storage field instead.) +The disk type of the nodes to be migrated must be the same as that specified during node creation (that is, the value of diskType in DockerLVMConfigOverride must be the same as that specified during node creation). Ensure that the disk types of the nodes selected for a single API call are the same. +Example default configuration: +"DockerLVMConfigOverride":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"+ The following fields are included: +
|
+
alpha.cce/preInstall + |
+String + |
+Pre-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
alpha.cce/postInstall + |
+String + |
+Post-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
alpha.cce/NodeImageID + |
+String + |
+ID of the user image to run the target OS. When alpha.cce/NodeImageID is specified, the value of os must be the same as the OS of the custom image. + |
+
PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}
+
+{
+ "spec" : {
+ "os" : "EulerOS 2.5",
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ },
+ "nodes" : [ {
+ "uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }, {
+ "uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
+ } ]
+ }
+}
+PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}
+
+{
+ "spec" : {
+ "os" : "EulerOS 2.5",
+ "extendParam" : {
+ "alpha.cce/NodeImageID" : "cc697ad7-9563-11e8-8ea7-0255ac106311"
+ },
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ },
+ "nodes" : [ {
+ "uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }, {
+ "uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
+ } ]
+ }
+}
+Status code: 200
+The job for migrating a node from a specified cluster to another cluster is successfully delivered.
+{
+ "spec" : {
+ "os" : "EulerOS 2.5",
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ },
+ "nodes" : [ {
+ "uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }, {
+ "uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
+ } ]
+ },
+ "status" : {
+ "jobID" : "2ec9b78d-9368-46f3-8f29-d1a95622a568"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The job for migrating a node from a specified cluster to another cluster is successfully delivered. + |
+
See Error Codes.
+This API is used to remove a node from a specified cluster.
+
The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the path for API access.
+PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/remove
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
cluster_id + |
+Yes + |
+String + |
+Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
Content-Type + |
+Yes + |
+String + |
+Message body type (format). + |
+
X-Auth-Token + |
+Yes + |
+String + |
+Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see API Usage Guidelines. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
apiVersion + |
+No + |
+String + |
+API version. The value is fixed at v3. + |
+
kind + |
+No + |
+String + |
+API type. The value is fixed at RemoveNodesTask. + |
+
spec + |
+Yes + |
+RemoveNodesSpec object + |
+Configuration information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
login + |
+Yes + |
+Login object + |
+Node login mode. + |
+
nodes + |
+Yes + |
+Array of NodeItem objects + |
+List of nodes to be operated. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
apiVersion + |
+String + |
+API version. The value is fixed at v3. + |
+
kind + |
+String + |
+API type. The value is fixed at RemoveNodesTask. + |
+
spec + |
+RemoveNodesSpec object + |
+Configuration information. + |
+
status + |
+TaskStatus object + |
+Job status. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
login + |
+Login object + |
+Node login mode. + |
+
nodes + |
+Array of NodeItem objects + |
+List of nodes to be operated. + |
+
Removing a Node
+PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/remove
+
+{
+ "spec" : {
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ },
+ "nodes" : [ {
+ "uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }, {
+ "uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
+ } ]
+ }
+}
+Status code: 200
+The job for removing a node in a specified cluster is successfully delivered.
+{
+ "spec" : {
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ },
+ "nodes" : [ {
+ "uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }, {
+ "uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
+ } ]
+ },
+ "status" : {
+ "jobID" : "2ec9b78d-9368-46f3-8f29-d1a95622a568"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The job for removing a node in a specified cluster is successfully delivered. + |
+
See Error Codes.
+This API is used to reset a node in a specified cluster.
+
The URL for cluster management is in the format of https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the path for API access.
+POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/reset
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
cluster_id + |
+Yes + |
+String + |
+Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
Content-Type + |
+Yes + |
+String + |
+Message body type (format). + |
+
X-Auth-Token + |
+Yes + |
+String + |
+Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see API Usage Guidelines. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
apiVersion + |
+Yes + |
+String + |
+API version. The value is fixed at v3. + |
+
kind + |
+Yes + |
+String + |
+API type. The value is fixed at List. + |
+
nodeList + |
+Yes + |
+Array of ResetNode objects + |
+List of the nodes to be reset. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
nodeID + |
+Yes + |
+String + |
+Node ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. + |
+
spec + |
+Yes + |
+ReinstallNodeSpec object + |
+Node reinstallation configuration parameters. Nodes in a node pool cannot be specified externally. These nodes will be reinstalled based on the node pool settings. By default, this parameter is mandatory for nodes in a node pool. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
os + |
+Yes + |
+String + |
+Operating system. If you specify a custom image, the actual OS version in the IMS image is used. Select an OS version supported by the current cluster, for example, EulerOS 2.5, CentOS 7.7, or EulerOS 2.9. + |
+
login + |
+Yes + |
+Login object + |
+Node login mode. + |
+
name + |
+No + |
+String + |
+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. Enter 1 to 56 characters starting with a letter and not ending with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed. + |
+
serverConfig + |
+No + |
+ReinstallServerConfig object + |
+Server configuration. + |
+
volumeConfig + |
+No + |
+ReinstallVolumeConfig object + |
+Volume management configuration. + |
+
runtimeConfig + |
+No + |
+ReinstallRuntimeConfig object + |
+Container runtime configuration. + |
+
k8sOptions + |
+No + |
+ReinstallK8sOptionsConfig object + |
+Kubernetes node configuration. + |
+
lifecycle + |
+No + |
+NodeLifecycleConfig object + |
+Customized lifecycle configuration of a node. + |
+
initializedConditions + |
+No + |
+Array of strings + |
+Custom initialization flag. +Before CCE nodes are initialized, they are tainted with node.cloudprovider.kubernetes.io/uninitialized to prevent pods from being scheduled to them. +CCE supports custom initialization flags. After receiving the initializedConditions parameter, CCE converts the parameter value into a node label and provisions the label with the node, for example, cloudprovider.openvessel.io/inject-initialized-conditions=CCEInitial_CustomedInitial. +After the node is labeled, its status.Conditions is polled to check whether the type of conditions has a flag name, such as CCEInitial and CustomedInitial. If all input flags exist and their status is True, the node initialization is complete and the initialization taint is removed. +
|
+
extendParam + |
+No + |
+ReinstallExtendParam object + |
+Extended reinstallation parameter, which is discarded. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sshKey + |
+No + |
+String + |
+Name of the key pair used for login. + |
+
userPassword + |
+No + |
+String + |
+Password used for node login. + NOTE:
+This field is not supported for the current version. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
userTags + |
+No + |
+Array of UserTag objects + |
+Cloud server labels. The key of a label must be unique. The maximum number of user-defined labels supported by CCE depends on the region. In the region that supports the least number of labels, you can still create up to 5 labels for a cloud server. + |
+
rootVolume + |
+No + |
+ReinstallVolumeSpec object + |
+System disk configurations used in reinstallation. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+No + |
+String + |
+Key of the cloud server label. The value cannot start with CCE- or __type_baremetal. + |
+
value + |
+No + |
+String + |
+Value of the cloud server label. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
imageID + |
+No + |
+String + |
+Custom image ID. + |
+
cmkID + |
+No + |
+String + |
+User master key ID. If this parameter is left blank by default, the EVS disk is not encrypted. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvmConfig + |
+No + |
+String + |
+Docker data disk configurations. +The following is an example default configuration: +"lvmConfig":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"+ The following fields are included: +
|
+
storage + |
+No + |
+Storage object + |
+Disk initialization management parameter. +This parameter is complex to configure. For details, see Attaching Disks to a Node. +If this parameter retains its default, disks are managed based on the DockerLVMConfigOverride (discarded) parameter in extendParam. This parameter is supported by clusters of version 1.15.11 and later. + NOTE:
+If a node specification involves local disks and EVS disks at the same time, do not retain the default value of this parameter to prevent unexpected disk partitions. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
storageSelectors + |
+Yes + |
+Array of StorageSelectors objects + |
+Disk selection. Matched disks are managed according to matchLabels and storageType. + |
+
storageGroups + |
+Yes + |
+Array of StorageGroups objects + |
+A storage group consists of multiple storage devices. It is used to divide storage space. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Selector name, used as the index of selectorNames in storageGroup. Therefore, the name of each selector must be unique. + |
+
storageType + |
+Yes + |
+String + |
+Specifies the storage type. Currently, only evs (EVS volumes) and local (local volumes) are supported. The local storage does not support disk selection. All local disks will form a VG. Therefore, only one storageSelector of the local type is allowed. + |
+
matchLabels + |
+No + |
+matchLabels object + |
+Matching field of an EVS volume. The size, volumeType, metadataEncrypted, metadataCmkid and count fields are supported. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
size + |
+No + |
+String + |
+Matched disk size. If this parameter is left unspecified, the disk size is not limited. Example: 100 + |
+
volumeType + |
+No + |
+String + |
+EVS disk type. Currently, SSD, GPSSD and SAS are supported. + |
+
metadataEncrypted + |
+No + |
+String + |
+Disk encryption identifier. 0 indicates that the disk is not encrypted, and 1 indicates that the disk is encrypted. + |
+
metadataCmkid + |
+No + |
+String + |
+Customer master key ID of an encrypted disk. The value is a 36-byte string. + |
+
count + |
+No + |
+String + |
+Number of disks to be selected. If this parameter is left blank, all disks of this type are selected. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Name of a virtual storage group, which must be unique. + |
+
cceManaged + |
+No + |
+Boolean + |
+Storage space for Kubernetes and runtime components. Only one group can be set to true. If this parameter is left blank, the default value false is used. + |
+
selectorNames + |
+Yes + |
+Array of strings + |
+This parameter corresponds to name in storageSelectors. A group can match multiple selectors, but a selector can match only one group. + |
+
virtualSpaces + |
+Yes + |
+Array of VirtualSpace objects + |
+Detailed management of space configuration in a group. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Name of a virtualSpace. +
|
+
size + |
+Yes + |
+String + |
+Size of a virtualSpace. The value must be an integer in percentage. Example: 90%. + NOTE:
+The sum of the percentages of all virtualSpaces in a group cannot exceed 100%. + |
+
lvmConfig + |
+No + |
+LVMConfig object + |
+LVM configurations, applicable to kubernetes and user spaces. Note that one virtual space supports only one config. + |
+
runtimeConfig + |
+No + |
+RuntimeConfig object + |
+runtime configurations, applicable to the runtime space. Note that one virtual space supports only one config. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvType + |
+Yes + |
+String + |
+LVM write mode. linear indicates the linear mode. striped indicates the striped mode, in which multiple disks are used to form a strip to improve disk performance. + |
+
path + |
+No + |
+String + |
+Path to which the disk is attached. This parameter takes effect only in user configuration. The value is an absolute path. Digits, letters, periods (.), hyphens (-), and underscores (_) are allowed. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvType + |
+Yes + |
+String + |
+LVM write mode. linear indicates the linear mode. striped indicates the striped mode, in which multiple disks are used to form a strip to improve disk performance. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
dockerBaseSize + |
+No + |
+Integer + |
+Available disk space of a single container on a node, in GB. +If this parameter is left blank or is set to 0, the default value is used. In Device Mapper mode, the default value is 10. In OverlayFS mode, the available space of a single container is not limited by default, and the dockerBaseSize setting takes effect only on EulerOS nodes in the cluster of the new version. +When Device Mapper is used, you are advised to set dockerBaseSize to a value less than or equal to 80 GB. If the value is too large, the container runtime may fail to be started due to long initialization. If there are special requirements for the container disk space, you can mount an external or local storage device. + |
+
runtime + |
+No + |
+Runtime object + |
+Container runtime. Defaults to docker. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+No + |
+String + |
+Container runtime. Defaults to docker. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
labels + |
+No + |
+Map<String,String> + |
+Defined in key-value pairs. A maximum of 20 key-value pairs are allowed. +
Example: +"k8sTags": {
+ "key": "value"
+}
+ |
+
taints + |
+No + |
+Array of Taint objects + |
+Taints can be added for anti-affinity when creating nodes. A maximum of 20 taints can be added. Each taint contains the following parameters: +
Example: +"taints": [{
+ "key": "status",
+ "value": "unavailable",
+ "effect": "NoSchedule"
+}, {
+ "key": "looks",
+ "value": "bad",
+ "effect": "NoSchedule"
+}]
+ |
+
maxPods + |
+No + |
+Integer + |
+Maximum number of pods that can be created on a node, including the default system pods. Value range: 16 to 256. This limit prevents the node from being overloaded of pods. + |
+
nicMultiqueue + |
+No + |
+String + |
+
"[{\"queue\":4}]"
+The following fields are included: +
|
+
nicThreshold + |
+No + |
+String + |
+
"0.3:0.6"+
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Key. + |
+
value + |
+No + |
+String + |
+Value. + |
+
effect + |
+Yes + |
+String + |
+Effect. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
preInstall + |
+No + |
+String + |
+Pre-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
postInstall + |
+No + |
+String + |
+Post-installation script. + NOTE:
+The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64) + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
alpha.cce/NodeImageID + |
+No + |
+String + |
+(Discarded) ID of the user image to run the target OS. Specifying this parameter is equivalent to specifying imageID in ReinstallVolumeSpec. The original value will be overwritten. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
jobid + |
+String + |
+Job ID returned after the job is delivered. The job ID can be used to query the job execution status. + |
+
POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/reset
+
+{
+ "kind" : "List",
+ "apiVersion" : "v3",
+ "nodeList" : [ {
+ "nodeID" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
+ "spec" : {
+ "name" : "my-ecs-0001",
+ "os" : "EulerOS 2.5",
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ }
+ }
+ } ]
+}
+POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/reset
+
+{
+ "kind" : "List",
+ "apiVersion" : "v3",
+ "nodeList" : [ {
+ "nodeID" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "spec" : {
+ "name" : "my-ecs-0001",
+ "os" : "EulerOS 2.5",
+ "login" : {
+ "sshKey" : "KeyPair-001"
+ }
+ }
+ } ]
+}
+Status code: 200
+The job for resetting a node in a specified cluster is successfully delivered.
+{
+ "jobid" : "2ec9b78d-9368-46f3-8f29-d1a95622a568"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The job for resetting a node in a specified cluster is successfully delivered. + |
+
See Error Codes.
+This section describes how to use the Elastic Load Balancer (ELB) in a cluster created by CCE.
-
Before enabling sticky session, ensure that the following conditions are met:
-apiVersion: v1
-kind: Service
-metadata:
- annotations:
- kubernetes.io/elb.class: union
- kubernetes.io/session-affinity-mode: SOURCE_IP
- kubernetes.io/elb.subnet-id: 5083f225-9bf8-48fa-9c8b-67bd9693c4c0
- kubernetes.io/elb.autocreate: "{\"type\":\"public\",\"bandwidth_name\":\"cce-bandwidth-1551163379627\",\"bandwidth_chargemode\":\"traffic\",\"bandwidth_size\":5,\"bandwidth_sharetype\":\"PER\",\"eip_type\":\"5_bgp\",\"name\":\"james\"}"
- labels:
- app: nginx
- name: nginx
-spec:
- externalTrafficPolicy: Local
- ports:
- - name: service0
- port: 80
- protocol: TCP
- targetPort: 80
- selector:
- app: nginx
- type: LoadBalancer
-apiVersion: v1 -kind: Service -metadata: - annotations: - kubernetes.io/elb.class: union - kubernetes.io/session-affinity-mode: SOURCE_IP - kubernetes.io/elb.id: 3c7caa5a-a641-4bff-801a-feace27424b6 - kubernetes.io/elb.subnet-id: 5083f225-9bf8-48fa-9c8b-67bd9693c4c0 - labels: - app: nginx - name: nginx -spec: - loadBalancerIP: 10.78.42.242 - externalTrafficPolicy: Local - ports: - - name: service0 - port: 80 - protocol: TCP - targetPort: 80 - selector: - app: nginx - type: LoadBalancer-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kubernetes.io/elb.class - |
-String - |
-Mandatory and must be set to union if an enhanced load balancer is in use. - |
-
kubernetes.io/session-affinity-mode - |
-String - |
-Optional. If sticky session is enabled, add this parameter. -The value SOURCE_IP indicates that listeners ensure sticky session based on source IP addresses. - |
-
kubernetes.io/elb.id - |
-String - |
-Optional. This parameter is mandatory if an existing ELB is used. -It indicates the ID of an enhanced load balancer. - |
-
kubernetes.io/elb.subnet-id - |
-String - |
-Optional. This parameter is mandatory only if a load balancer will be automatically created. For clusters of v1.11.7-r0 or later, this parameter can be left unspecified. - |
-
kubernetes.io/elb.autocreate - |
-elb.autocreate object - |
-Optional. This parameter is mandatory if a public network load balancer will be automatically created. The system will create an enhanced load balancer and an EIP. This parameter is also mandatory if a private network load balancer will be automatically created. The system will create an enhanced load balancer. -Example: -
|
-
loadBalancerIP - |
-String - |
-Private IP address of a private network load balancer or public IP address of a public network load balancer. - |
-
externalTrafficPolicy - |
-String - |
-Optional. If sticky session is enabled, add this parameter so requests are transferred to a fixed node. If a LoadBalancer Service with this parameter set to Local is created for a workload, the workload can be accessed only when the client is installed on the same node as the server. - |
-
port - |
-Integer - |
-Access port that is registered on the load balancer and mapped to the cluster-internal IP address. - |
-
targetPort - |
-String - |
-Container port on the CCE console. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Name of the load balancer that is automatically created. -The value is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-). - |
-
type - |
-String - |
-Network type of the load balancer. -
|
-
bandwidth_name - |
-String - |
-Bandwidth name. The default value is cce-bandwidth-******. -The value is a string of 1 to 64 characters that consist of letters, digits, underscores (_), hyphens (-), and periods (.). - |
-
bandwidth_chargemode - |
-String - |
-Bandwidth billing mode. -The value is traffic, indicating that the billing is based on traffic. - |
-
bandwidth_size - |
-Integer - |
-Bandwidth size. - |
-
bandwidth_sharetype - |
-String - |
-Bandwidth sharing mode. -
|
-
eip_type - |
-String - |
-EIP type. - |
-
This API is used to create an empty cluster, which has only master nodes but do not have worker nodes. After creating a cluster by calling this API, you can add nodes to the cluster. For details, see Creating a Node.
-
POST /api/v3/projects/{project_id}/clusters
diff --git a/docs/cce/api-ref/cce_02_0242.html b/docs/cce/api-ref/cce_02_0242.html index 1594e1853..3c2cd0ef3 100644 --- a/docs/cce/api-ref/cce_02_0242.html +++ b/docs/cce/api-ref/cce_02_0242.html @@ -187,7 +187,7 @@String
Node specifications. For details, see the description of the flavorRef parameter in Creating an ECS.
-When adding a BMS node, check whether the flavor of the node to be added supports local disks. If local disks are not supported, add at least one 100 GB EVS disk.
+Data disk parameters of the node. Currently, you can add the second data disk for your node on the CCE console.
storage
+No
+Storage object
+Disk initialization management parameter.
+This parameter is complex to configure. For details, see Attaching Disks to a Node.
+If this parameter retains its default, disks are managed based on the DockerLVMConfigOverride (discarded) parameter in extendParam. This parameter is supported by clusters of version 1.15.11 and later.
+If a node specification involves local disks and EVS disks at the same time, do not retain the default value of this parameter to prevent unexpected disk partitions.
+publicIP
No
@@ -558,7 +571,7 @@String
"DockerLVMConfigOverride":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"+
"DockerLVMConfigOverride":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"
In this example:
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
storageSelectors + |
+Yes + |
+Array of StorageSelectors objects + |
+Disk selection. Matched disks are managed according to matchLabels and storageType. + |
+
storageGroups + |
+Yes + |
+Array of StorageGroups objects + |
+A storage group consists of multiple storage devices. It is used to divide storage space. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Selector name, used as the index of selectorNames in storageGroup. Therefore, the name of each selector must be unique. + |
+
storageType + |
+Yes + |
+String + |
+Specifies the storage type. Currently, only evs (EVS volumes) and local (local volumes) are supported. The local storage does not support disk selection. All local disks will form a VG. Therefore, only one storageSelector of the local type is allowed. + |
+
matchLabels + |
+No + |
+matchLabels object + |
+Matching field of an EVS volume. The size, volumeType, metadataEncrypted, metadataCmkid and count fields are supported. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
size + |
+No + |
+String + |
+Matched disk size. If this parameter is left unspecified, the disk size is not limited. Example: 100 + |
+
volumeType + |
+No + |
+String + |
+EVS disk type. + |
+
metadataEncrypted + |
+No + |
+String + |
+Disk encryption identifier. 0 indicates that the disk is not encrypted, and 1 indicates that the disk is encrypted. + |
+
metadataCmkid + |
+No + |
+String + |
+Customer master key ID of an encrypted disk. The value is a 36-byte string. + |
+
count + |
+No + |
+String + |
+Number of disks to be selected. If this parameter is left blank, all disks of this type are selected. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Name of a virtual storage group, which must be unique. + |
+
cceManaged + |
+No + |
+Boolean + |
+Storage space for Kubernetes and runtime components. Only one group can be set to true. If this parameter is left blank, the default value false is used. + |
+
selectorNames + |
+Yes + |
+Array of strings + |
+This parameter corresponds to name in storageSelectors. A group can match multiple selectors, but a selector can match only one group. + |
+
virtualSpaces + |
+Yes + |
+Array of VirtualSpace objects + |
+Detailed management of space configuration in a group. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Name of a virtualSpace. +
|
+
size + |
+Yes + |
+String + |
+Size of a virtualSpace. The value must be an integer in percentage. Example: 90%. + NOTE:
+The sum of the percentages of all virtualSpaces in a group cannot exceed 100%. + |
+
lvmConfig + |
+No + |
+LVMConfig object + |
+LVM configurations, applicable to kubernetes and user spaces. Note that one virtual space supports only one config. + |
+
runtimeConfig + |
+No + |
+RuntimeConfig object + |
+runtime configurations, applicable to the runtime space. Note that one virtual space supports only one config. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvType + |
+Yes + |
+String + |
+LVM write mode. linear indicates the linear mode. striped indicates the striped mode, in which multiple disks are used to form a strip to improve disk performance. + |
+
path + |
+No + |
+String + |
+Path to which the disk is attached. This parameter takes effect only in user configuration. The value is an absolute path. Digits, letters, periods (.), hyphens (-), and underscores (_) are allowed. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
lvType + |
+Yes + |
+String + |
+LVM write mode. linear indicates the linear mode. striped indicates the striped mode, in which multiple disks are used to form a strip to improve disk performance. + |
+
Example request:
CCE cluster:
{
@@ -860,7 +1163,7 @@
}
},
"spec": {
- "flavor": "s1.medium",
+ "flavor": "c4.large.2",
"az": "eu-de-01",
"login": {
"sshKey": "Keypair-demo"
@@ -869,12 +1172,42 @@
"size": 40,
"volumetype": "SAS"
},
- "dataVolumes": [
- {
- "size": 100,
- "volumetype": "SAS"
- }
- ],
+ "dataVolumes" : [ {
+ "size" : 100,
+ "volumetype" : "SAS"
+ } ],
+ "storage": {
+ "storageSelectors": [
+ {
+ "name": "cceUse",
+ "storageType": "evs",
+ "matchLabels": {
+ "size": "100",
+ "volumeType": "SAS",
+ "count": "1"
+ }
+ }
+ ],
+ "storageGroups": [
+ {
+ "name": "vgpaas",
+ "selectorNames": [
+ "cceUse"
+ ],
+ "cceManaged": true,
+ "virtualSpaces": [
+ {
+ "name": "runtime",
+ "size": "90%"
+ },
+ {
+ "name": "kubernetes",
+ "size": "10%"
+ }
+ ]
+ }
+ ]
+ },
"userTags": [
{
"key": "tag1",
@@ -939,6 +1272,38 @@
"runtime": {
"name": "containerd"
},
+ "storage": {
+ "storageSelectors": [
+ {
+ "name": "cceUse",
+ "storageType": "evs",
+ "matchLabels": {
+ "size": "100",
+ "volumeType": "SAS",
+ "count": "1"
+ }
+ }
+ ],
+ "storageGroups": [
+ {
+ "name": "vgpaas",
+ "selectorNames": [
+ "cceUse"
+ ],
+ "cceManaged": true,
+ "virtualSpaces": [
+ {
+ "name": "runtime",
+ "size": "90%"
+ },
+ {
+ "name": "kubernetes",
+ "size": "10%"
+ }
+ ]
+ }
+ ]
+ },
"extendParam": {
"alpha.cce/NodeImageID":"0fea78c3-1b31-4653-8859-ac151ccadcd4"
}
@@ -946,9 +1311,9 @@
}
Response parameters:
-Table 16 describes the response parameters.
+Table 23 describes the response parameters.
-Parameter + -
|
|---|