@alicloud/cs20151215 7.2.3 → 7.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +34 -34
- package/dist/client.js +43 -34
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterNodePoolRequest.d.ts +200 -161
- package/dist/models/CreateClusterNodePoolRequest.js +2 -0
- package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +5 -0
- package/dist/models/CreateClusterRequest.js +2 -0
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/DeleteClusterNodepoolRequest.d.ts +3 -1
- package/dist/models/DeleteClusterNodepoolRequest.js.map +1 -1
- package/dist/models/DescribeAutoRepairPolicyResponseBody.d.ts +21 -11
- package/dist/models/DescribeAutoRepairPolicyResponseBody.js +2 -0
- package/dist/models/DescribeAutoRepairPolicyResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +5 -0
- package/dist/models/DescribeClusterDetailResponseBody.js +2 -0
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +172 -176
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterUserKubeconfigRequest.d.ts +4 -4
- package/dist/models/DescribeClusterUserKubeconfigResponseBody.d.ts +1 -1
- package/dist/models/DescribeClustersForRegionResponseBody.d.ts +5 -0
- package/dist/models/DescribeClustersForRegionResponseBody.js +2 -0
- package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +5 -0
- package/dist/models/DescribeKubernetesVersionMetadataRequest.js +2 -0
- package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +60 -50
- package/dist/models/DescribeKubernetesVersionMetadataResponse.js +20 -16
- package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
- package/dist/models/DescribePolicyGovernanceInClusterResponseBody.d.ts +18 -18
- package/dist/models/ListAutoRepairPoliciesResponseBody.d.ts +19 -9
- package/dist/models/ListAutoRepairPoliciesResponseBody.js +2 -0
- package/dist/models/ListAutoRepairPoliciesResponseBody.js.map +1 -1
- package/dist/models/ListNodePoolComponentInstanceNodesRequest.d.ts +1 -1
- package/dist/models/ListNodePoolComponentInstanceNodesResponseBody.d.ts +2 -2
- package/dist/models/ListNodePoolComponentInstanceNodesShrinkRequest.d.ts +1 -1
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +210 -235
- package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +5 -0
- package/dist/models/ModifyClusterRequest.js +2 -0
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/Nodepool.d.ts +152 -202
- package/dist/models/Nodepool.js.map +1 -1
- package/dist/models/RemoveNodePoolNodesRequest.d.ts +6 -5
- package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
- package/dist/models/RemoveNodePoolNodesResponseBody.d.ts +2 -2
- package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +6 -5
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +46 -34
- package/src/models/CreateClusterNodePoolRequest.ts +202 -161
- package/src/models/CreateClusterRequest.ts +7 -0
- package/src/models/DeleteClusterNodepoolRequest.ts +3 -1
- package/src/models/DescribeAutoRepairPolicyResponseBody.ts +23 -11
- package/src/models/DescribeClusterDetailResponseBody.ts +7 -0
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +172 -176
- package/src/models/DescribeClusterUserKubeconfigRequest.ts +4 -4
- package/src/models/DescribeClusterUserKubeconfigResponseBody.ts +1 -1
- package/src/models/DescribeClustersForRegionResponseBody.ts +7 -0
- package/src/models/DescribeKubernetesVersionMetadataRequest.ts +7 -0
- package/src/models/DescribeKubernetesVersionMetadataResponse.ts +80 -66
- package/src/models/DescribePolicyGovernanceInClusterResponseBody.ts +18 -18
- package/src/models/ListAutoRepairPoliciesResponseBody.ts +21 -9
- package/src/models/ListNodePoolComponentInstanceNodesRequest.ts +1 -1
- package/src/models/ListNodePoolComponentInstanceNodesResponseBody.ts +2 -2
- package/src/models/ListNodePoolComponentInstanceNodesShrinkRequest.ts +1 -1
- package/src/models/ModifyClusterNodePoolRequest.ts +210 -235
- package/src/models/ModifyClusterRequest.ts +7 -0
- package/src/models/Nodepool.ts +152 -202
- package/src/models/RemoveNodePoolNodesRequest.ts +6 -5
- package/src/models/RemoveNodePoolNodesResponseBody.ts +2 -2
- package/src/models/RemoveNodePoolNodesShrinkRequest.ts +6 -5
package/dist/client.d.ts
CHANGED
|
@@ -322,7 +322,7 @@ export default class Client extends OpenApi {
|
|
|
322
322
|
*/
|
|
323
323
|
createClusterInspectConfig(clusterId: string, request: $_model.CreateClusterInspectConfigRequest): Promise<$_model.CreateClusterInspectConfigResponse>;
|
|
324
324
|
/**
|
|
325
|
-
*
|
|
325
|
+
* A node pool is a logical collection of nodes with the same properties, which allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M features of node pools, such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
|
|
326
326
|
*
|
|
327
327
|
* @param request - CreateClusterNodePoolRequest
|
|
328
328
|
* @param headers - map
|
|
@@ -333,7 +333,7 @@ export default class Client extends OpenApi {
|
|
|
333
333
|
[key: string]: string;
|
|
334
334
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateClusterNodePoolResponse>;
|
|
335
335
|
/**
|
|
336
|
-
*
|
|
336
|
+
* A node pool is a logical collection of nodes with the same properties, which allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M features of node pools, such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
|
|
337
337
|
*
|
|
338
338
|
* @param request - CreateClusterNodePoolRequest
|
|
339
339
|
* @returns CreateClusterNodePoolResponse
|
|
@@ -528,7 +528,7 @@ export default class Client extends OpenApi {
|
|
|
528
528
|
*/
|
|
529
529
|
deleteClusterInspectConfig(clusterId: string): Promise<$_model.DeleteClusterInspectConfigResponse>;
|
|
530
530
|
/**
|
|
531
|
-
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger
|
|
531
|
+
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger descheduling. If the pods cannot be rescheduled, your services may be affected. Ensure that the cluster has sufficient resources for descheduling.
|
|
532
532
|
*
|
|
533
533
|
* @param request - DeleteClusterNodepoolRequest
|
|
534
534
|
* @param headers - map
|
|
@@ -539,7 +539,7 @@ export default class Client extends OpenApi {
|
|
|
539
539
|
[key: string]: string;
|
|
540
540
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteClusterNodepoolResponse>;
|
|
541
541
|
/**
|
|
542
|
-
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger
|
|
542
|
+
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger descheduling. If the pods cannot be rescheduled, your services may be affected. Ensure that the cluster has sufficient resources for descheduling.
|
|
543
543
|
*
|
|
544
544
|
* @param request - DeleteClusterNodepoolRequest
|
|
545
545
|
* @returns DeleteClusterNodepoolResponse
|
|
@@ -930,10 +930,10 @@ export default class Client extends OpenApi {
|
|
|
930
930
|
*
|
|
931
931
|
* @remarks
|
|
932
932
|
* - When you remove a node, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
933
|
-
* - Do not release nodes or remove instances in the ECS or Auto Scaling console
|
|
934
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
935
|
-
* - Removing a node involves pod migration
|
|
936
|
-
* - When a node is removed, ACK
|
|
933
|
+
* - Do not proactively release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
|
|
934
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configurations to maintain the expected number of nodes.
|
|
935
|
+
* - Removing a node involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
936
|
+
* - When a node is removed, ACK performs a drain operation. Make sure that other nodes in the cluster have sufficient resources to prevent application pods from failing to be scheduled.
|
|
937
937
|
* - Check the node affinity rules and scheduling policies of the pods on the node to be removed. Make sure that the pods can be scheduled to other nodes after the node is removed.
|
|
938
938
|
*
|
|
939
939
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -949,10 +949,10 @@ export default class Client extends OpenApi {
|
|
|
949
949
|
*
|
|
950
950
|
* @remarks
|
|
951
951
|
* - When you remove a node, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
952
|
-
* - Do not release nodes or remove instances in the ECS or Auto Scaling console
|
|
953
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
954
|
-
* - Removing a node involves pod migration
|
|
955
|
-
* - When a node is removed, ACK
|
|
952
|
+
* - Do not proactively release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
|
|
953
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configurations to maintain the expected number of nodes.
|
|
954
|
+
* - Removing a node involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
955
|
+
* - When a node is removed, ACK performs a drain operation. Make sure that other nodes in the cluster have sufficient resources to prevent application pods from failing to be scheduled.
|
|
956
956
|
* - Check the node affinity rules and scheduling policies of the pods on the node to be removed. Make sure that the pods can be scheduled to other nodes after the node is removed.
|
|
957
957
|
*
|
|
958
958
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -1014,11 +1014,11 @@ export default class Client extends OpenApi {
|
|
|
1014
1014
|
*/
|
|
1015
1015
|
describeClusterTasks(clusterId: string, request: $_model.DescribeClusterTasksRequest): Promise<$_model.DescribeClusterTasksResponse>;
|
|
1016
1016
|
/**
|
|
1017
|
-
* Retrieves the kubeconfig
|
|
1017
|
+
* Retrieves the kubeconfig of a cluster.
|
|
1018
1018
|
*
|
|
1019
1019
|
* @remarks
|
|
1020
|
-
* - The default validity period of
|
|
1021
|
-
* - Properly manage the kubeconfig credentials
|
|
1020
|
+
* - The default validity period of a certificate issued for a kubeconfig file is three years. Within 180 days before expiration, you can obtain a refreshed kubeconfig file with rotated certificates through the Container Service for Kubernetes console or by calling the API operation to retrieve the cluster kubeconfig. The new kubeconfig certificate remains valid for three years. The old kubeconfig credentials remain valid until the certificate expires. Obtain the rotated credentials promptly based on the kubeconfig expiration time displayed in the console or returned by the API operation.
|
|
1021
|
+
* - Properly manage the kubeconfig credentials for cluster management and revoke them promptly when they are no longer needed to prevent security risks such as data leaks caused by kubeconfig exposure.
|
|
1022
1022
|
*
|
|
1023
1023
|
* @param request - DescribeClusterUserKubeconfigRequest
|
|
1024
1024
|
* @param headers - map
|
|
@@ -1029,11 +1029,11 @@ export default class Client extends OpenApi {
|
|
|
1029
1029
|
[key: string]: string;
|
|
1030
1030
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeClusterUserKubeconfigResponse>;
|
|
1031
1031
|
/**
|
|
1032
|
-
* Retrieves the kubeconfig
|
|
1032
|
+
* Retrieves the kubeconfig of a cluster.
|
|
1033
1033
|
*
|
|
1034
1034
|
* @remarks
|
|
1035
|
-
* - The default validity period of
|
|
1036
|
-
* - Properly manage the kubeconfig credentials
|
|
1035
|
+
* - The default validity period of a certificate issued for a kubeconfig file is three years. Within 180 days before expiration, you can obtain a refreshed kubeconfig file with rotated certificates through the Container Service for Kubernetes console or by calling the API operation to retrieve the cluster kubeconfig. The new kubeconfig certificate remains valid for three years. The old kubeconfig credentials remain valid until the certificate expires. Obtain the rotated credentials promptly based on the kubeconfig expiration time displayed in the console or returned by the API operation.
|
|
1036
|
+
* - Properly manage the kubeconfig credentials for cluster management and revoke them promptly when they are no longer needed to prevent security risks such as data leaks caused by kubeconfig exposure.
|
|
1037
1037
|
*
|
|
1038
1038
|
* @param request - DescribeClusterUserKubeconfigRequest
|
|
1039
1039
|
* @returns DescribeClusterUserKubeconfigResponse
|
|
@@ -1265,7 +1265,7 @@ export default class Client extends OpenApi {
|
|
|
1265
1265
|
*/
|
|
1266
1266
|
describePolicyDetails(policyName: string): Promise<$_model.DescribePolicyDetailsResponse>;
|
|
1267
1267
|
/**
|
|
1268
|
-
* Queries the details of policy governance
|
|
1268
|
+
* Queries the details of policy governance for a specified ACK cluster. Container security policies for ACK clusters provide a comprehensive set of built-in rule libraries, including Compliance, Infra, K8s-general, and PSP, to ensure the secure operation of containers in production environments. You can use this operation to retrieve information such as the counts of enabled policies at different severity levels, policy governance audit logs, and interception and alerting statistics.
|
|
1269
1269
|
*
|
|
1270
1270
|
* @param headers - map
|
|
1271
1271
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1275,7 +1275,7 @@ export default class Client extends OpenApi {
|
|
|
1275
1275
|
[key: string]: string;
|
|
1276
1276
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePolicyGovernanceInClusterResponse>;
|
|
1277
1277
|
/**
|
|
1278
|
-
* Queries the details of policy governance
|
|
1278
|
+
* Queries the details of policy governance for a specified ACK cluster. Container security policies for ACK clusters provide a comprehensive set of built-in rule libraries, including Compliance, Infra, K8s-general, and PSP, to ensure the secure operation of containers in production environments. You can use this operation to retrieve information such as the counts of enabled policies at different severity levels, policy governance audit logs, and interception and alerting statistics.
|
|
1279
1279
|
* @returns DescribePolicyGovernanceInClusterResponse
|
|
1280
1280
|
*/
|
|
1281
1281
|
describePolicyGovernanceInCluster(clusterId: string): Promise<$_model.DescribePolicyGovernanceInClusterResponse>;
|
|
@@ -1758,10 +1758,10 @@ export default class Client extends OpenApi {
|
|
|
1758
1758
|
*/
|
|
1759
1759
|
listAddons(request: $_model.ListAddonsRequest): Promise<$_model.ListAddonsResponse>;
|
|
1760
1760
|
/**
|
|
1761
|
-
* Retrieves
|
|
1761
|
+
* Retrieves a list of self-healing rules.
|
|
1762
1762
|
*
|
|
1763
1763
|
* @remarks
|
|
1764
|
-
* >Notice: This API is not yet available. Stay tuned
|
|
1764
|
+
* >Notice: This API is not yet available. Stay tuned.
|
|
1765
1765
|
*
|
|
1766
1766
|
* @param headers - map
|
|
1767
1767
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1771,10 +1771,10 @@ export default class Client extends OpenApi {
|
|
|
1771
1771
|
[key: string]: string;
|
|
1772
1772
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAutoRepairPoliciesResponse>;
|
|
1773
1773
|
/**
|
|
1774
|
-
* Retrieves
|
|
1774
|
+
* Retrieves a list of self-healing rules.
|
|
1775
1775
|
*
|
|
1776
1776
|
* @remarks
|
|
1777
|
-
* >Notice: This API is not yet available. Stay tuned
|
|
1777
|
+
* >Notice: This API is not yet available. Stay tuned.
|
|
1778
1778
|
* @returns ListAutoRepairPoliciesResponse
|
|
1779
1779
|
*/
|
|
1780
1780
|
listAutoRepairPolicies(clusterId: string): Promise<$_model.ListAutoRepairPoliciesResponse>;
|
|
@@ -2105,10 +2105,10 @@ export default class Client extends OpenApi {
|
|
|
2105
2105
|
*/
|
|
2106
2106
|
modifyClusterAddon(clusterId: string, componentId: string, request: $_model.ModifyClusterAddonRequest): Promise<$_model.ModifyClusterAddonResponse>;
|
|
2107
2107
|
/**
|
|
2108
|
-
* Updates the
|
|
2108
|
+
* Updates the configurations of a specified node pool.
|
|
2109
2109
|
*
|
|
2110
2110
|
* @remarks
|
|
2111
|
-
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to
|
|
2111
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters and deprecation of OpenAPI operations related to ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
2112
2112
|
*
|
|
2113
2113
|
* @param request - ModifyClusterNodePoolRequest
|
|
2114
2114
|
* @param headers - map
|
|
@@ -2119,10 +2119,10 @@ export default class Client extends OpenApi {
|
|
|
2119
2119
|
[key: string]: string;
|
|
2120
2120
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyClusterNodePoolResponse>;
|
|
2121
2121
|
/**
|
|
2122
|
-
* Updates the
|
|
2122
|
+
* Updates the configurations of a specified node pool.
|
|
2123
2123
|
*
|
|
2124
2124
|
* @remarks
|
|
2125
|
-
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to
|
|
2125
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters and deprecation of OpenAPI operations related to ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
2126
2126
|
*
|
|
2127
2127
|
* @param request - ModifyClusterNodePoolRequest
|
|
2128
2128
|
* @returns ModifyClusterNodePoolResponse
|
|
@@ -2296,14 +2296,14 @@ export default class Client extends OpenApi {
|
|
|
2296
2296
|
*/
|
|
2297
2297
|
removeClusterNodes(ClusterId: string, request: $_model.RemoveClusterNodesRequest): Promise<$_model.RemoveClusterNodesResponse>;
|
|
2298
2298
|
/**
|
|
2299
|
-
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
2299
|
+
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes. Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours and back up your data in advance.
|
|
2300
2300
|
*
|
|
2301
2301
|
* @remarks
|
|
2302
|
-
* -
|
|
2302
|
+
* - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours.
|
|
2303
2303
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
2304
2304
|
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
2305
2305
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
2306
|
-
* - Even if you choose to release nodes (by setting release_node to true), subscription nodes are not released.
|
|
2306
|
+
* - Even if you choose to release nodes (by setting `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must first [change their billing method to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the [ECS console](https://ecs.console.aliyun.com/).
|
|
2307
2307
|
*
|
|
2308
2308
|
* @param tmpReq - RemoveNodePoolNodesRequest
|
|
2309
2309
|
* @param headers - map
|
|
@@ -2314,14 +2314,14 @@ export default class Client extends OpenApi {
|
|
|
2314
2314
|
[key: string]: string;
|
|
2315
2315
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.RemoveNodePoolNodesResponse>;
|
|
2316
2316
|
/**
|
|
2317
|
-
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
2317
|
+
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes. Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours and back up your data in advance.
|
|
2318
2318
|
*
|
|
2319
2319
|
* @remarks
|
|
2320
|
-
* -
|
|
2320
|
+
* - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours.
|
|
2321
2321
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
2322
2322
|
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
2323
2323
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
2324
|
-
* - Even if you choose to release nodes (by setting release_node to true), subscription nodes are not released.
|
|
2324
|
+
* - Even if you choose to release nodes (by setting `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must first [change their billing method to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the [ECS console](https://ecs.console.aliyun.com/).
|
|
2325
2325
|
*
|
|
2326
2326
|
* @param request - RemoveNodePoolNodesRequest
|
|
2327
2327
|
* @returns RemoveNodePoolNodesResponse
|
package/dist/client.js
CHANGED
|
@@ -967,6 +967,9 @@ class Client extends openapi_core_1.default {
|
|
|
967
967
|
if (!$dara.isNull(request.sshFlags)) {
|
|
968
968
|
body["ssh_flags"] = request.sshFlags;
|
|
969
969
|
}
|
|
970
|
+
if (!$dara.isNull(request.supportPolicy)) {
|
|
971
|
+
body["support_policy"] = request.supportPolicy;
|
|
972
|
+
}
|
|
970
973
|
if (!$dara.isNull(request.tags)) {
|
|
971
974
|
body["tags"] = request.tags;
|
|
972
975
|
}
|
|
@@ -1164,7 +1167,7 @@ class Client extends openapi_core_1.default {
|
|
|
1164
1167
|
return await this.createClusterInspectConfigWithOptions(clusterId, request, headers, runtime);
|
|
1165
1168
|
}
|
|
1166
1169
|
/**
|
|
1167
|
-
*
|
|
1170
|
+
* A node pool is a logical collection of nodes with the same properties, which allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M features of node pools, such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
|
|
1168
1171
|
*
|
|
1169
1172
|
* @param request - CreateClusterNodePoolRequest
|
|
1170
1173
|
* @param headers - map
|
|
@@ -1240,7 +1243,7 @@ class Client extends openapi_core_1.default {
|
|
|
1240
1243
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateClusterNodePoolResponse({}));
|
|
1241
1244
|
}
|
|
1242
1245
|
/**
|
|
1243
|
-
*
|
|
1246
|
+
* A node pool is a logical collection of nodes with the same properties, which allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M features of node pools, such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
|
|
1244
1247
|
*
|
|
1245
1248
|
* @param request - CreateClusterNodePoolRequest
|
|
1246
1249
|
* @returns CreateClusterNodePoolResponse
|
|
@@ -1707,7 +1710,7 @@ class Client extends openapi_core_1.default {
|
|
|
1707
1710
|
return await this.deleteClusterInspectConfigWithOptions(clusterId, headers, runtime);
|
|
1708
1711
|
}
|
|
1709
1712
|
/**
|
|
1710
|
-
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger
|
|
1713
|
+
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger descheduling. If the pods cannot be rescheduled, your services may be affected. Ensure that the cluster has sufficient resources for descheduling.
|
|
1711
1714
|
*
|
|
1712
1715
|
* @param request - DeleteClusterNodepoolRequest
|
|
1713
1716
|
* @param headers - map
|
|
@@ -1738,7 +1741,7 @@ class Client extends openapi_core_1.default {
|
|
|
1738
1741
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteClusterNodepoolResponse({}));
|
|
1739
1742
|
}
|
|
1740
1743
|
/**
|
|
1741
|
-
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger
|
|
1744
|
+
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger descheduling. If the pods cannot be rescheduled, your services may be affected. Ensure that the cluster has sufficient resources for descheduling.
|
|
1742
1745
|
*
|
|
1743
1746
|
* @param request - DeleteClusterNodepoolRequest
|
|
1744
1747
|
* @returns DeleteClusterNodepoolResponse
|
|
@@ -2657,10 +2660,10 @@ class Client extends openapi_core_1.default {
|
|
|
2657
2660
|
*
|
|
2658
2661
|
* @remarks
|
|
2659
2662
|
* - When you remove a node, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
2660
|
-
* - Do not release nodes or remove instances in the ECS or Auto Scaling console
|
|
2661
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
2662
|
-
* - Removing a node involves pod migration
|
|
2663
|
-
* - When a node is removed, ACK
|
|
2663
|
+
* - Do not proactively release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
|
|
2664
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configurations to maintain the expected number of nodes.
|
|
2665
|
+
* - Removing a node involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
2666
|
+
* - When a node is removed, ACK performs a drain operation. Make sure that other nodes in the cluster have sufficient resources to prevent application pods from failing to be scheduled.
|
|
2664
2667
|
* - Check the node affinity rules and scheduling policies of the pods on the node to be removed. Make sure that the pods can be scheduled to other nodes after the node is removed.
|
|
2665
2668
|
*
|
|
2666
2669
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -2696,10 +2699,10 @@ class Client extends openapi_core_1.default {
|
|
|
2696
2699
|
*
|
|
2697
2700
|
* @remarks
|
|
2698
2701
|
* - When you remove a node, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
2699
|
-
* - Do not release nodes or remove instances in the ECS or Auto Scaling console
|
|
2700
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
2701
|
-
* - Removing a node involves pod migration
|
|
2702
|
-
* - When a node is removed, ACK
|
|
2702
|
+
* - Do not proactively release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
|
|
2703
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configurations to maintain the expected number of nodes.
|
|
2704
|
+
* - Removing a node involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
2705
|
+
* - When a node is removed, ACK performs a drain operation. Make sure that other nodes in the cluster have sufficient resources to prevent application pods from failing to be scheduled.
|
|
2703
2706
|
* - Check the node affinity rules and scheduling policies of the pods on the node to be removed. Make sure that the pods can be scheduled to other nodes after the node is removed.
|
|
2704
2707
|
*
|
|
2705
2708
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -2867,11 +2870,11 @@ class Client extends openapi_core_1.default {
|
|
|
2867
2870
|
return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
|
|
2868
2871
|
}
|
|
2869
2872
|
/**
|
|
2870
|
-
* Retrieves the kubeconfig
|
|
2873
|
+
* Retrieves the kubeconfig of a cluster.
|
|
2871
2874
|
*
|
|
2872
2875
|
* @remarks
|
|
2873
|
-
* - The default validity period of
|
|
2874
|
-
* - Properly manage the kubeconfig credentials
|
|
2876
|
+
* - The default validity period of a certificate issued for a kubeconfig file is three years. Within 180 days before expiration, you can obtain a refreshed kubeconfig file with rotated certificates through the Container Service for Kubernetes console or by calling the API operation to retrieve the cluster kubeconfig. The new kubeconfig certificate remains valid for three years. The old kubeconfig credentials remain valid until the certificate expires. Obtain the rotated credentials promptly based on the kubeconfig expiration time displayed in the console or returned by the API operation.
|
|
2877
|
+
* - Properly manage the kubeconfig credentials for cluster management and revoke them promptly when they are no longer needed to prevent security risks such as data leaks caused by kubeconfig exposure.
|
|
2875
2878
|
*
|
|
2876
2879
|
* @param request - DescribeClusterUserKubeconfigRequest
|
|
2877
2880
|
* @param headers - map
|
|
@@ -2905,11 +2908,11 @@ class Client extends openapi_core_1.default {
|
|
|
2905
2908
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClusterUserKubeconfigResponse({}));
|
|
2906
2909
|
}
|
|
2907
2910
|
/**
|
|
2908
|
-
* Retrieves the kubeconfig
|
|
2911
|
+
* Retrieves the kubeconfig of a cluster.
|
|
2909
2912
|
*
|
|
2910
2913
|
* @remarks
|
|
2911
|
-
* - The default validity period of
|
|
2912
|
-
* - Properly manage the kubeconfig credentials
|
|
2914
|
+
* - The default validity period of a certificate issued for a kubeconfig file is three years. Within 180 days before expiration, you can obtain a refreshed kubeconfig file with rotated certificates through the Container Service for Kubernetes console or by calling the API operation to retrieve the cluster kubeconfig. The new kubeconfig certificate remains valid for three years. The old kubeconfig credentials remain valid until the certificate expires. Obtain the rotated credentials promptly based on the kubeconfig expiration time displayed in the console or returned by the API operation.
|
|
2915
|
+
* - Properly manage the kubeconfig credentials for cluster management and revoke them promptly when they are no longer needed to prevent security risks such as data leaks caused by kubeconfig exposure.
|
|
2913
2916
|
*
|
|
2914
2917
|
* @param request - DescribeClusterUserKubeconfigRequest
|
|
2915
2918
|
* @returns DescribeClusterUserKubeconfigResponse
|
|
@@ -3374,6 +3377,9 @@ class Client extends openapi_core_1.default {
|
|
|
3374
3377
|
if (!$dara.isNull(request.region)) {
|
|
3375
3378
|
query["Region"] = request.region;
|
|
3376
3379
|
}
|
|
3380
|
+
if (!$dara.isNull(request.supportPolicy)) {
|
|
3381
|
+
query["SupportPolicy"] = request.supportPolicy;
|
|
3382
|
+
}
|
|
3377
3383
|
if (!$dara.isNull(request.runtime)) {
|
|
3378
3384
|
query["runtime"] = request.runtime;
|
|
3379
3385
|
}
|
|
@@ -3514,7 +3520,7 @@ class Client extends openapi_core_1.default {
|
|
|
3514
3520
|
return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
|
|
3515
3521
|
}
|
|
3516
3522
|
/**
|
|
3517
|
-
* Queries the details of policy governance
|
|
3523
|
+
* Queries the details of policy governance for a specified ACK cluster. Container security policies for ACK clusters provide a comprehensive set of built-in rule libraries, including Compliance, Infra, K8s-general, and PSP, to ensure the secure operation of containers in production environments. You can use this operation to retrieve information such as the counts of enabled policies at different severity levels, policy governance audit logs, and interception and alerting statistics.
|
|
3518
3524
|
*
|
|
3519
3525
|
* @param headers - map
|
|
3520
3526
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3538,7 +3544,7 @@ class Client extends openapi_core_1.default {
|
|
|
3538
3544
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePolicyGovernanceInClusterResponse({}));
|
|
3539
3545
|
}
|
|
3540
3546
|
/**
|
|
3541
|
-
* Queries the details of policy governance
|
|
3547
|
+
* Queries the details of policy governance for a specified ACK cluster. Container security policies for ACK clusters provide a comprehensive set of built-in rule libraries, including Compliance, Infra, K8s-general, and PSP, to ensure the secure operation of containers in production environments. You can use this operation to retrieve information such as the counts of enabled policies at different severity levels, policy governance audit logs, and interception and alerting statistics.
|
|
3542
3548
|
* @returns DescribePolicyGovernanceInClusterResponse
|
|
3543
3549
|
*/
|
|
3544
3550
|
async describePolicyGovernanceInCluster(clusterId) {
|
|
@@ -4670,10 +4676,10 @@ class Client extends openapi_core_1.default {
|
|
|
4670
4676
|
return await this.listAddonsWithOptions(request, headers, runtime);
|
|
4671
4677
|
}
|
|
4672
4678
|
/**
|
|
4673
|
-
* Retrieves
|
|
4679
|
+
* Retrieves a list of self-healing rules.
|
|
4674
4680
|
*
|
|
4675
4681
|
* @remarks
|
|
4676
|
-
* >Notice: This API is not yet available. Stay tuned
|
|
4682
|
+
* >Notice: This API is not yet available. Stay tuned.
|
|
4677
4683
|
*
|
|
4678
4684
|
* @param headers - map
|
|
4679
4685
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4697,10 +4703,10 @@ class Client extends openapi_core_1.default {
|
|
|
4697
4703
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAutoRepairPoliciesResponse({}));
|
|
4698
4704
|
}
|
|
4699
4705
|
/**
|
|
4700
|
-
* Retrieves
|
|
4706
|
+
* Retrieves a list of self-healing rules.
|
|
4701
4707
|
*
|
|
4702
4708
|
* @remarks
|
|
4703
|
-
* >Notice: This API is not yet available. Stay tuned
|
|
4709
|
+
* >Notice: This API is not yet available. Stay tuned.
|
|
4704
4710
|
* @returns ListAutoRepairPoliciesResponse
|
|
4705
4711
|
*/
|
|
4706
4712
|
async listAutoRepairPolicies(clusterId) {
|
|
@@ -5465,6 +5471,9 @@ class Client extends openapi_core_1.default {
|
|
|
5465
5471
|
if (!$dara.isNull(request.securityGroupId)) {
|
|
5466
5472
|
body["security_group_id"] = request.securityGroupId;
|
|
5467
5473
|
}
|
|
5474
|
+
if (!$dara.isNull(request.supportPolicy)) {
|
|
5475
|
+
body["support_policy"] = request.supportPolicy;
|
|
5476
|
+
}
|
|
5468
5477
|
if (!$dara.isNull(request.systemEventsLogging)) {
|
|
5469
5478
|
body["system_events_logging"] = request.systemEventsLogging;
|
|
5470
5479
|
}
|
|
@@ -5560,10 +5569,10 @@ class Client extends openapi_core_1.default {
|
|
|
5560
5569
|
return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
|
|
5561
5570
|
}
|
|
5562
5571
|
/**
|
|
5563
|
-
* Updates the
|
|
5572
|
+
* Updates the configurations of a specified node pool.
|
|
5564
5573
|
*
|
|
5565
5574
|
* @remarks
|
|
5566
|
-
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to
|
|
5575
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters and deprecation of OpenAPI operations related to ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
5567
5576
|
*
|
|
5568
5577
|
* @param request - ModifyClusterNodePoolRequest
|
|
5569
5578
|
* @param headers - map
|
|
@@ -5618,10 +5627,10 @@ class Client extends openapi_core_1.default {
|
|
|
5618
5627
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyClusterNodePoolResponse({}));
|
|
5619
5628
|
}
|
|
5620
5629
|
/**
|
|
5621
|
-
* Updates the
|
|
5630
|
+
* Updates the configurations of a specified node pool.
|
|
5622
5631
|
*
|
|
5623
5632
|
* @remarks
|
|
5624
|
-
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to
|
|
5633
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters and deprecation of OpenAPI operations related to ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
5625
5634
|
*
|
|
5626
5635
|
* @param request - ModifyClusterNodePoolRequest
|
|
5627
5636
|
* @returns ModifyClusterNodePoolResponse
|
|
@@ -5999,14 +6008,14 @@ class Client extends openapi_core_1.default {
|
|
|
5999
6008
|
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
6000
6009
|
}
|
|
6001
6010
|
/**
|
|
6002
|
-
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
6011
|
+
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes. Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours and back up your data in advance.
|
|
6003
6012
|
*
|
|
6004
6013
|
* @remarks
|
|
6005
|
-
* -
|
|
6014
|
+
* - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours.
|
|
6006
6015
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
6007
6016
|
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
6008
6017
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
6009
|
-
* - Even if you choose to release nodes (by setting release_node to true), subscription nodes are not released.
|
|
6018
|
+
* - Even if you choose to release nodes (by setting `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must first [change their billing method to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the [ECS console](https://ecs.console.aliyun.com/).
|
|
6010
6019
|
*
|
|
6011
6020
|
* @param tmpReq - RemoveNodePoolNodesRequest
|
|
6012
6021
|
* @param headers - map
|
|
@@ -6057,14 +6066,14 @@ class Client extends openapi_core_1.default {
|
|
|
6057
6066
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveNodePoolNodesResponse({}));
|
|
6058
6067
|
}
|
|
6059
6068
|
/**
|
|
6060
|
-
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
6069
|
+
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes. Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours and back up your data in advance.
|
|
6061
6070
|
*
|
|
6062
6071
|
* @remarks
|
|
6063
|
-
* -
|
|
6072
|
+
* - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours.
|
|
6064
6073
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
6065
6074
|
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
6066
6075
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
6067
|
-
* - Even if you choose to release nodes (by setting release_node to true), subscription nodes are not released.
|
|
6076
|
+
* - Even if you choose to release nodes (by setting `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must first [change their billing method to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the [ECS console](https://ecs.console.aliyun.com/).
|
|
6068
6077
|
*
|
|
6069
6078
|
* @param request - RemoveNodePoolNodesRequest
|
|
6070
6079
|
* @returns RemoveNodePoolNodesResponse
|