@alicloud/cs20151215 3.0.23 → 3.0.25
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 +126 -78
- package/dist/client.js +164 -84
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +205 -101
package/dist/client.js
CHANGED
|
@@ -67,6 +67,58 @@ class DataDisk extends $tea.Model {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
exports.DataDisk = DataDisk;
|
|
70
|
+
class KubeletConfig extends $tea.Model {
|
|
71
|
+
constructor(map) {
|
|
72
|
+
super(map);
|
|
73
|
+
}
|
|
74
|
+
static names() {
|
|
75
|
+
return {
|
|
76
|
+
allowedUnsafeSysctls: 'allowedUnsafeSysctls',
|
|
77
|
+
containerLogMaxFiles: 'containerLogMaxFiles',
|
|
78
|
+
containerLogMaxSize: 'containerLogMaxSize',
|
|
79
|
+
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
80
|
+
eventBurst: 'eventBurst',
|
|
81
|
+
eventRecordQPS: 'eventRecordQPS',
|
|
82
|
+
evictionHard: 'evictionHard',
|
|
83
|
+
evictionSoft: 'evictionSoft',
|
|
84
|
+
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
85
|
+
featureGates: 'featureGates',
|
|
86
|
+
kubeAPIBurst: 'kubeAPIBurst',
|
|
87
|
+
kubeAPIQPS: 'kubeAPIQPS',
|
|
88
|
+
kubeReserved: 'kubeReserved',
|
|
89
|
+
maxPods: 'maxPods',
|
|
90
|
+
readOnlyPort: 'readOnlyPort',
|
|
91
|
+
registryBurst: 'registryBurst',
|
|
92
|
+
registryPullQPS: 'registryPullQPS',
|
|
93
|
+
serializeImagePulls: 'serializeImagePulls',
|
|
94
|
+
systemReserved: 'systemReserved',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static types() {
|
|
98
|
+
return {
|
|
99
|
+
allowedUnsafeSysctls: { 'type': 'array', 'itemType': 'string' },
|
|
100
|
+
containerLogMaxFiles: 'number',
|
|
101
|
+
containerLogMaxSize: 'string',
|
|
102
|
+
cpuManagerPolicy: 'string',
|
|
103
|
+
eventBurst: 'number',
|
|
104
|
+
eventRecordQPS: 'number',
|
|
105
|
+
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
106
|
+
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
107
|
+
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
108
|
+
featureGates: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
109
|
+
kubeAPIBurst: 'number',
|
|
110
|
+
kubeAPIQPS: 'number',
|
|
111
|
+
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
112
|
+
maxPods: 'number',
|
|
113
|
+
readOnlyPort: 'number',
|
|
114
|
+
registryBurst: 'number',
|
|
115
|
+
registryPullQPS: 'number',
|
|
116
|
+
serializeImagePulls: 'boolean',
|
|
117
|
+
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.KubeletConfig = KubeletConfig;
|
|
70
122
|
class MaintenanceWindow extends $tea.Model {
|
|
71
123
|
constructor(map) {
|
|
72
124
|
super(map);
|
|
@@ -559,6 +611,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
559
611
|
}
|
|
560
612
|
static names() {
|
|
561
613
|
return {
|
|
614
|
+
accessControlList: 'access_control_list',
|
|
562
615
|
addons: 'addons',
|
|
563
616
|
apiAudiences: 'api_audiences',
|
|
564
617
|
chargeType: 'charge_type',
|
|
@@ -652,6 +705,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
652
705
|
}
|
|
653
706
|
static types() {
|
|
654
707
|
return {
|
|
708
|
+
accessControlList: { 'type': 'array', 'itemType': 'string' },
|
|
655
709
|
addons: { 'type': 'array', 'itemType': Addon },
|
|
656
710
|
apiAudiences: 'string',
|
|
657
711
|
chargeType: 'string',
|
|
@@ -826,11 +880,13 @@ class CreateClusterNodePoolResponseBody extends $tea.Model {
|
|
|
826
880
|
static names() {
|
|
827
881
|
return {
|
|
828
882
|
nodepoolId: 'nodepool_id',
|
|
883
|
+
taskId: 'task_id',
|
|
829
884
|
};
|
|
830
885
|
}
|
|
831
886
|
static types() {
|
|
832
887
|
return {
|
|
833
888
|
nodepoolId: 'string',
|
|
889
|
+
taskId: 'string',
|
|
834
890
|
};
|
|
835
891
|
}
|
|
836
892
|
}
|
|
@@ -2047,6 +2103,7 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2047
2103
|
kubernetesConfig: 'kubernetes_config',
|
|
2048
2104
|
management: 'management',
|
|
2049
2105
|
maxNodes: 'max_nodes',
|
|
2106
|
+
nodeConfig: 'node_config',
|
|
2050
2107
|
nodepoolInfo: 'nodepool_info',
|
|
2051
2108
|
scalingGroup: 'scaling_group',
|
|
2052
2109
|
status: 'status',
|
|
@@ -2061,6 +2118,7 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2061
2118
|
kubernetesConfig: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig,
|
|
2062
2119
|
management: DescribeClusterNodePoolDetailResponseBodyManagement,
|
|
2063
2120
|
maxNodes: 'number',
|
|
2121
|
+
nodeConfig: DescribeClusterNodePoolDetailResponseBodyNodeConfig,
|
|
2064
2122
|
nodepoolInfo: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo,
|
|
2065
2123
|
scalingGroup: DescribeClusterNodePoolDetailResponseBodyScalingGroup,
|
|
2066
2124
|
status: DescribeClusterNodePoolDetailResponseBodyStatus,
|
|
@@ -2753,11 +2811,13 @@ class DescribeExternalAgentRequest extends $tea.Model {
|
|
|
2753
2811
|
}
|
|
2754
2812
|
static names() {
|
|
2755
2813
|
return {
|
|
2814
|
+
agentMode: 'AgentMode',
|
|
2756
2815
|
privateIpAddress: 'PrivateIpAddress',
|
|
2757
2816
|
};
|
|
2758
2817
|
}
|
|
2759
2818
|
static types() {
|
|
2760
2819
|
return {
|
|
2820
|
+
agentMode: 'string',
|
|
2761
2821
|
privateIpAddress: 'string',
|
|
2762
2822
|
};
|
|
2763
2823
|
}
|
|
@@ -3883,8 +3943,10 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
3883
3943
|
}
|
|
3884
3944
|
static names() {
|
|
3885
3945
|
return {
|
|
3946
|
+
accessControlList: 'access_control_list',
|
|
3886
3947
|
apiServerEip: 'api_server_eip',
|
|
3887
3948
|
apiServerEipId: 'api_server_eip_id',
|
|
3949
|
+
clusterName: 'cluster_name',
|
|
3888
3950
|
deletionProtection: 'deletion_protection',
|
|
3889
3951
|
enableRrsa: 'enable_rrsa',
|
|
3890
3952
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
@@ -3896,11 +3958,13 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
3896
3958
|
}
|
|
3897
3959
|
static types() {
|
|
3898
3960
|
return {
|
|
3961
|
+
accessControlList: { 'type': 'array', 'itemType': 'string' },
|
|
3899
3962
|
apiServerEip: 'boolean',
|
|
3900
3963
|
apiServerEipId: 'string',
|
|
3964
|
+
clusterName: 'string',
|
|
3901
3965
|
deletionProtection: 'boolean',
|
|
3902
3966
|
enableRrsa: 'boolean',
|
|
3903
|
-
ingressDomainRebinding: '
|
|
3967
|
+
ingressDomainRebinding: 'boolean',
|
|
3904
3968
|
ingressLoadbalancerId: 'string',
|
|
3905
3969
|
instanceDeletionProtection: 'boolean',
|
|
3906
3970
|
maintenanceWindow: MaintenanceWindow,
|
|
@@ -4129,7 +4193,7 @@ class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
|
4129
4193
|
}
|
|
4130
4194
|
static types() {
|
|
4131
4195
|
return {
|
|
4132
|
-
kubeletConfig:
|
|
4196
|
+
kubeletConfig: KubeletConfig,
|
|
4133
4197
|
rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
|
|
4134
4198
|
};
|
|
4135
4199
|
}
|
|
@@ -6403,6 +6467,22 @@ class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Model {
|
|
|
6403
6467
|
}
|
|
6404
6468
|
}
|
|
6405
6469
|
exports.DescribeClusterNodePoolDetailResponseBodyManagement = DescribeClusterNodePoolDetailResponseBodyManagement;
|
|
6470
|
+
class DescribeClusterNodePoolDetailResponseBodyNodeConfig extends $tea.Model {
|
|
6471
|
+
constructor(map) {
|
|
6472
|
+
super(map);
|
|
6473
|
+
}
|
|
6474
|
+
static names() {
|
|
6475
|
+
return {
|
|
6476
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
6477
|
+
};
|
|
6478
|
+
}
|
|
6479
|
+
static types() {
|
|
6480
|
+
return {
|
|
6481
|
+
kubeletConfiguration: KubeletConfig,
|
|
6482
|
+
};
|
|
6483
|
+
}
|
|
6484
|
+
}
|
|
6485
|
+
exports.DescribeClusterNodePoolDetailResponseBodyNodeConfig = DescribeClusterNodePoolDetailResponseBodyNodeConfig;
|
|
6406
6486
|
class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.Model {
|
|
6407
6487
|
constructor(map) {
|
|
6408
6488
|
super(map);
|
|
@@ -6723,6 +6803,22 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $tea.Model
|
|
|
6723
6803
|
}
|
|
6724
6804
|
}
|
|
6725
6805
|
exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagement = DescribeClusterNodePoolsResponseBodyNodepoolsManagement;
|
|
6806
|
+
class DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig extends $tea.Model {
|
|
6807
|
+
constructor(map) {
|
|
6808
|
+
super(map);
|
|
6809
|
+
}
|
|
6810
|
+
static names() {
|
|
6811
|
+
return {
|
|
6812
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
6813
|
+
};
|
|
6814
|
+
}
|
|
6815
|
+
static types() {
|
|
6816
|
+
return {
|
|
6817
|
+
kubeletConfiguration: KubeletConfig,
|
|
6818
|
+
};
|
|
6819
|
+
}
|
|
6820
|
+
}
|
|
6821
|
+
exports.DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig = DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig;
|
|
6726
6822
|
class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $tea.Model {
|
|
6727
6823
|
constructor(map) {
|
|
6728
6824
|
super(map);
|
|
@@ -6931,6 +7027,7 @@ class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
6931
7027
|
kubernetesConfig: 'kubernetes_config',
|
|
6932
7028
|
management: 'management',
|
|
6933
7029
|
maxNodes: 'max_nodes',
|
|
7030
|
+
nodeConfig: 'node_config',
|
|
6934
7031
|
nodepoolInfo: 'nodepool_info',
|
|
6935
7032
|
scalingGroup: 'scaling_group',
|
|
6936
7033
|
status: 'status',
|
|
@@ -6945,6 +7042,7 @@ class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
6945
7042
|
kubernetesConfig: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig,
|
|
6946
7043
|
management: DescribeClusterNodePoolsResponseBodyNodepoolsManagement,
|
|
6947
7044
|
maxNodes: 'number',
|
|
7045
|
+
nodeConfig: DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig,
|
|
6948
7046
|
nodepoolInfo: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo,
|
|
6949
7047
|
scalingGroup: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup,
|
|
6950
7048
|
status: DescribeClusterNodePoolsResponseBodyNodepoolsStatus,
|
|
@@ -8535,46 +8633,6 @@ class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
8535
8633
|
}
|
|
8536
8634
|
}
|
|
8537
8635
|
exports.ModifyClusterNodePoolRequestTeeConfig = ModifyClusterNodePoolRequestTeeConfig;
|
|
8538
|
-
class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
|
|
8539
|
-
constructor(map) {
|
|
8540
|
-
super(map);
|
|
8541
|
-
}
|
|
8542
|
-
static names() {
|
|
8543
|
-
return {
|
|
8544
|
-
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
8545
|
-
eventBurst: 'eventBurst',
|
|
8546
|
-
eventRecordQPS: 'eventRecordQPS',
|
|
8547
|
-
evictionHard: 'evictionHard',
|
|
8548
|
-
evictionSoft: 'evictionSoft',
|
|
8549
|
-
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
8550
|
-
kubeAPIBurst: 'kubeAPIBurst',
|
|
8551
|
-
kubeAPIQPS: 'kubeAPIQPS',
|
|
8552
|
-
kubeReserved: 'kubeReserved',
|
|
8553
|
-
registryBurst: 'registryBurst',
|
|
8554
|
-
registryPullQPS: 'registryPullQPS',
|
|
8555
|
-
serializeImagePulls: 'serializeImagePulls',
|
|
8556
|
-
systemReserved: 'systemReserved',
|
|
8557
|
-
};
|
|
8558
|
-
}
|
|
8559
|
-
static types() {
|
|
8560
|
-
return {
|
|
8561
|
-
cpuManagerPolicy: 'string',
|
|
8562
|
-
eventBurst: 'number',
|
|
8563
|
-
eventRecordQPS: 'number',
|
|
8564
|
-
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8565
|
-
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8566
|
-
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8567
|
-
kubeAPIBurst: 'number',
|
|
8568
|
-
kubeAPIQPS: 'number',
|
|
8569
|
-
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8570
|
-
registryBurst: 'number',
|
|
8571
|
-
registryPullQPS: 'number',
|
|
8572
|
-
serializeImagePulls: 'boolean',
|
|
8573
|
-
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8574
|
-
};
|
|
8575
|
-
}
|
|
8576
|
-
}
|
|
8577
|
-
exports.ModifyNodePoolNodeConfigRequestKubeletConfig = ModifyNodePoolNodeConfigRequestKubeletConfig;
|
|
8578
8636
|
class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
|
|
8579
8637
|
constructor(map) {
|
|
8580
8638
|
super(map);
|
|
@@ -8675,11 +8733,13 @@ class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
8675
8733
|
}
|
|
8676
8734
|
static names() {
|
|
8677
8735
|
return {
|
|
8736
|
+
cleanupCloudResources: 'cleanup_cloud_resources',
|
|
8678
8737
|
name: 'name',
|
|
8679
8738
|
};
|
|
8680
8739
|
}
|
|
8681
8740
|
static types() {
|
|
8682
8741
|
return {
|
|
8742
|
+
cleanupCloudResources: 'boolean',
|
|
8683
8743
|
name: 'string',
|
|
8684
8744
|
};
|
|
8685
8745
|
}
|
|
@@ -9045,6 +9105,9 @@ class Client extends openapi_client_1.default {
|
|
|
9045
9105
|
async createClusterWithOptions(request, headers, runtime) {
|
|
9046
9106
|
tea_util_1.default.validateModel(request);
|
|
9047
9107
|
let body = {};
|
|
9108
|
+
if (!tea_util_1.default.isUnset(request.accessControlList)) {
|
|
9109
|
+
body["access_control_list"] = request.accessControlList;
|
|
9110
|
+
}
|
|
9048
9111
|
if (!tea_util_1.default.isUnset(request.addons)) {
|
|
9049
9112
|
body["addons"] = request.addons;
|
|
9050
9113
|
}
|
|
@@ -9650,10 +9713,7 @@ class Client extends openapi_client_1.default {
|
|
|
9650
9713
|
}
|
|
9651
9714
|
/**
|
|
9652
9715
|
* >
|
|
9653
|
-
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
9654
|
-
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
9655
|
-
* * Nodes remain in the unschedulable state when they are being removed.
|
|
9656
|
-
* * You can remove only worker nodes by calling this operation.
|
|
9716
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
9657
9717
|
*
|
|
9658
9718
|
* @param request DeleteClusterNodesRequest
|
|
9659
9719
|
* @param headers map
|
|
@@ -9691,10 +9751,7 @@ class Client extends openapi_client_1.default {
|
|
|
9691
9751
|
}
|
|
9692
9752
|
/**
|
|
9693
9753
|
* >
|
|
9694
|
-
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
9695
|
-
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
9696
|
-
* * Nodes remain in the unschedulable state when they are being removed.
|
|
9697
|
-
* * You can remove only worker nodes by calling this operation.
|
|
9754
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
9698
9755
|
*
|
|
9699
9756
|
* @param request DeleteClusterNodesRequest
|
|
9700
9757
|
* @return DeleteClusterNodesResponse
|
|
@@ -10653,6 +10710,9 @@ class Client extends openapi_client_1.default {
|
|
|
10653
10710
|
async describeExternalAgentWithOptions(ClusterId, request, headers, runtime) {
|
|
10654
10711
|
tea_util_1.default.validateModel(request);
|
|
10655
10712
|
let query = {};
|
|
10713
|
+
if (!tea_util_1.default.isUnset(request.agentMode)) {
|
|
10714
|
+
query["AgentMode"] = request.agentMode;
|
|
10715
|
+
}
|
|
10656
10716
|
if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
|
|
10657
10717
|
query["PrivateIpAddress"] = request.privateIpAddress;
|
|
10658
10718
|
}
|
|
@@ -10875,7 +10935,8 @@ class Client extends openapi_client_1.default {
|
|
|
10875
10935
|
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
10876
10936
|
}
|
|
10877
10937
|
/**
|
|
10878
|
-
*
|
|
10938
|
+
* **
|
|
10939
|
+
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
10879
10940
|
*
|
|
10880
10941
|
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
10881
10942
|
* @param headers map
|
|
@@ -10909,7 +10970,8 @@ class Client extends openapi_client_1.default {
|
|
|
10909
10970
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSubaccountK8sClusterUserConfigResponse({}));
|
|
10910
10971
|
}
|
|
10911
10972
|
/**
|
|
10912
|
-
*
|
|
10973
|
+
* **
|
|
10974
|
+
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
10913
10975
|
*
|
|
10914
10976
|
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
10915
10977
|
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
@@ -11256,10 +11318,9 @@ class Client extends openapi_client_1.default {
|
|
|
11256
11318
|
return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
|
|
11257
11319
|
}
|
|
11258
11320
|
/**
|
|
11259
|
-
*
|
|
11260
|
-
* * Make sure that you have granted the
|
|
11261
|
-
*
|
|
11262
|
-
* * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11321
|
+
* ****
|
|
11322
|
+
* * Make sure that you have granted the RAM user at least read-only permissions on the desired ACK clusters in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
11323
|
+
* * If you use a RAM user to call this API operation, make sure that the RAM user is authorized to modify the permissions of other RAM users on the desired ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11263
11324
|
* * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
|
|
11264
11325
|
*
|
|
11265
11326
|
* @param request GrantPermissionsRequest
|
|
@@ -11287,10 +11348,9 @@ class Client extends openapi_client_1.default {
|
|
|
11287
11348
|
return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
11288
11349
|
}
|
|
11289
11350
|
/**
|
|
11290
|
-
*
|
|
11291
|
-
* * Make sure that you have granted the
|
|
11292
|
-
*
|
|
11293
|
-
* * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11351
|
+
* ****
|
|
11352
|
+
* * Make sure that you have granted the RAM user at least read-only permissions on the desired ACK clusters in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
11353
|
+
* * If you use a RAM user to call this API operation, make sure that the RAM user is authorized to modify the permissions of other RAM users on the desired ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11294
11354
|
* * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
|
|
11295
11355
|
*
|
|
11296
11356
|
* @param request GrantPermissionsRequest
|
|
@@ -11407,12 +11467,18 @@ class Client extends openapi_client_1.default {
|
|
|
11407
11467
|
async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
|
|
11408
11468
|
tea_util_1.default.validateModel(request);
|
|
11409
11469
|
let body = {};
|
|
11470
|
+
if (!tea_util_1.default.isUnset(request.accessControlList)) {
|
|
11471
|
+
body["access_control_list"] = request.accessControlList;
|
|
11472
|
+
}
|
|
11410
11473
|
if (!tea_util_1.default.isUnset(request.apiServerEip)) {
|
|
11411
11474
|
body["api_server_eip"] = request.apiServerEip;
|
|
11412
11475
|
}
|
|
11413
11476
|
if (!tea_util_1.default.isUnset(request.apiServerEipId)) {
|
|
11414
11477
|
body["api_server_eip_id"] = request.apiServerEipId;
|
|
11415
11478
|
}
|
|
11479
|
+
if (!tea_util_1.default.isUnset(request.clusterName)) {
|
|
11480
|
+
body["cluster_name"] = request.clusterName;
|
|
11481
|
+
}
|
|
11416
11482
|
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
11417
11483
|
body["deletion_protection"] = request.deletionProtection;
|
|
11418
11484
|
}
|
|
@@ -11460,7 +11526,7 @@ class Client extends openapi_client_1.default {
|
|
|
11460
11526
|
* You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
|
|
11461
11527
|
* * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
|
|
11462
11528
|
* * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
|
|
11463
|
-
* After you call this operation, the component may be redeployed and restarted. We recommend that you
|
|
11529
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
|
|
11464
11530
|
*
|
|
11465
11531
|
* @param request ModifyClusterAddonRequest
|
|
11466
11532
|
* @param headers map
|
|
@@ -11494,7 +11560,7 @@ class Client extends openapi_client_1.default {
|
|
|
11494
11560
|
* You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
|
|
11495
11561
|
* * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
|
|
11496
11562
|
* * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
|
|
11497
|
-
* After you call this operation, the component may be redeployed and restarted. We recommend that you
|
|
11563
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
|
|
11498
11564
|
*
|
|
11499
11565
|
* @param request ModifyClusterAddonRequest
|
|
11500
11566
|
* @return ModifyClusterAddonResponse
|
|
@@ -11602,6 +11668,14 @@ class Client extends openapi_client_1.default {
|
|
|
11602
11668
|
let headers = {};
|
|
11603
11669
|
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
11604
11670
|
}
|
|
11671
|
+
/**
|
|
11672
|
+
* This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
|
|
11673
|
+
*
|
|
11674
|
+
* @param request ModifyNodePoolNodeConfigRequest
|
|
11675
|
+
* @param headers map
|
|
11676
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11677
|
+
* @return ModifyNodePoolNodeConfigResponse
|
|
11678
|
+
*/
|
|
11605
11679
|
async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
11606
11680
|
tea_util_1.default.validateModel(request);
|
|
11607
11681
|
let body = {};
|
|
@@ -11628,6 +11702,12 @@ class Client extends openapi_client_1.default {
|
|
|
11628
11702
|
});
|
|
11629
11703
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
11630
11704
|
}
|
|
11705
|
+
/**
|
|
11706
|
+
* This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
|
|
11707
|
+
*
|
|
11708
|
+
* @param request ModifyNodePoolNodeConfigRequest
|
|
11709
|
+
* @return ModifyNodePoolNodeConfigResponse
|
|
11710
|
+
*/
|
|
11631
11711
|
async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
|
|
11632
11712
|
let runtime = new $Util.RuntimeOptions({});
|
|
11633
11713
|
let headers = {};
|
|
@@ -11671,7 +11751,8 @@ class Client extends openapi_client_1.default {
|
|
|
11671
11751
|
return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
11672
11752
|
}
|
|
11673
11753
|
/**
|
|
11674
|
-
* You can activate ACK
|
|
11754
|
+
* * You can activate ACK by using Alibaba Cloud accounts.
|
|
11755
|
+
* * To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
|
|
11675
11756
|
*
|
|
11676
11757
|
* @param request OpenAckServiceRequest
|
|
11677
11758
|
* @param headers map
|
|
@@ -11702,7 +11783,8 @@ class Client extends openapi_client_1.default {
|
|
|
11702
11783
|
return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
11703
11784
|
}
|
|
11704
11785
|
/**
|
|
11705
|
-
* You can activate ACK
|
|
11786
|
+
* * You can activate ACK by using Alibaba Cloud accounts.
|
|
11787
|
+
* * To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
|
|
11706
11788
|
*
|
|
11707
11789
|
* @param request OpenAckServiceRequest
|
|
11708
11790
|
* @return OpenAckServiceResponse
|
|
@@ -11829,11 +11911,9 @@ class Client extends openapi_client_1.default {
|
|
|
11829
11911
|
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
11830
11912
|
}
|
|
11831
11913
|
/**
|
|
11832
|
-
*
|
|
11833
|
-
*
|
|
11834
|
-
* *
|
|
11835
|
-
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
11836
|
-
* * You can remove only worker nodes. You cannot remove control planes.
|
|
11914
|
+
* **
|
|
11915
|
+
* ****
|
|
11916
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
11837
11917
|
*
|
|
11838
11918
|
* @param tmpReq RemoveNodePoolNodesRequest
|
|
11839
11919
|
* @param headers map
|
|
@@ -11881,11 +11961,9 @@ class Client extends openapi_client_1.default {
|
|
|
11881
11961
|
return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
|
|
11882
11962
|
}
|
|
11883
11963
|
/**
|
|
11884
|
-
*
|
|
11885
|
-
*
|
|
11886
|
-
* *
|
|
11887
|
-
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
11888
|
-
* * You can remove only worker nodes. You cannot remove control planes.
|
|
11964
|
+
* **
|
|
11965
|
+
* ****
|
|
11966
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
11889
11967
|
*
|
|
11890
11968
|
* @param request RemoveNodePoolNodesRequest
|
|
11891
11969
|
* @return RemoveNodePoolNodesResponse
|
|
@@ -12138,7 +12216,8 @@ class Client extends openapi_client_1.default {
|
|
|
12138
12216
|
return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12139
12217
|
}
|
|
12140
12218
|
/**
|
|
12141
|
-
*
|
|
12219
|
+
* **
|
|
12220
|
+
* ****The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to a Container Service for Kubernetes (ACK) cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
|
|
12142
12221
|
*
|
|
12143
12222
|
* @param request ScaleOutClusterRequest
|
|
12144
12223
|
* @param headers map
|
|
@@ -12229,7 +12308,8 @@ class Client extends openapi_client_1.default {
|
|
|
12229
12308
|
return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
12230
12309
|
}
|
|
12231
12310
|
/**
|
|
12232
|
-
*
|
|
12311
|
+
* **
|
|
12312
|
+
* ****The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to a Container Service for Kubernetes (ACK) cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
|
|
12233
12313
|
*
|
|
12234
12314
|
* @param request ScaleOutClusterRequest
|
|
12235
12315
|
* @return ScaleOutClusterResponse
|
|
@@ -12578,9 +12658,9 @@ class Client extends openapi_client_1.default {
|
|
|
12578
12658
|
return await this.updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime);
|
|
12579
12659
|
}
|
|
12580
12660
|
/**
|
|
12581
|
-
*
|
|
12582
|
-
*
|
|
12583
|
-
* *
|
|
12661
|
+
* **
|
|
12662
|
+
* ****
|
|
12663
|
+
* * You can call this operation only with an Alibaba Cloud account. - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
|
|
12584
12664
|
*
|
|
12585
12665
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
12586
12666
|
* @param headers map
|
|
@@ -12614,9 +12694,9 @@ class Client extends openapi_client_1.default {
|
|
|
12614
12694
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
12615
12695
|
}
|
|
12616
12696
|
/**
|
|
12617
|
-
*
|
|
12618
|
-
*
|
|
12619
|
-
* *
|
|
12697
|
+
* **
|
|
12698
|
+
* ****
|
|
12699
|
+
* * You can call this operation only with an Alibaba Cloud account. - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
|
|
12620
12700
|
*
|
|
12621
12701
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
12622
12702
|
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
@@ -12728,7 +12808,7 @@ class Client extends openapi_client_1.default {
|
|
|
12728
12808
|
return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
12729
12809
|
}
|
|
12730
12810
|
/**
|
|
12731
|
-
*
|
|
12811
|
+
* This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
12732
12812
|
*
|
|
12733
12813
|
* @param request UpgradeClusterNodepoolRequest
|
|
12734
12814
|
* @param headers map
|
|
@@ -12768,7 +12848,7 @@ class Client extends openapi_client_1.default {
|
|
|
12768
12848
|
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
12769
12849
|
}
|
|
12770
12850
|
/**
|
|
12771
|
-
*
|
|
12851
|
+
* This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
12772
12852
|
*
|
|
12773
12853
|
* @param request UpgradeClusterNodepoolRequest
|
|
12774
12854
|
* @return UpgradeClusterNodepoolResponse
|