@alicloud/cs20151215 7.0.3 → 7.0.4
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 +30 -30
- package/dist/client.js +33 -30
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterNodePoolRequest.d.ts +139 -83
- package/dist/models/CreateClusterNodePoolRequest.js +29 -1
- package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +372 -345
- package/dist/models/CreateClusterRequest.js +27 -1
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/CreateClusterResponseBody.d.ts +3 -3
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +147 -106
- package/dist/models/DescribeClusterDetailResponseBody.js +29 -1
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +163 -131
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +29 -1
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +120 -92
- package/dist/models/DescribeClusterNodePoolsResponseBody.js +29 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +64 -49
- package/dist/models/ModifyClusterNodePoolRequest.js +4 -0
- package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +151 -112
- package/dist/models/ModifyClusterRequest.js +29 -1
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/ModifyClusterResponseBody.d.ts +3 -3
- package/dist/models/Nodepool.d.ts +132 -88
- package/dist/models/Nodepool.js +29 -1
- package/dist/models/Nodepool.js.map +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +80 -66
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +34 -30
- package/src/models/CreateClusterNodePoolRequest.ts +158 -83
- package/src/models/CreateClusterRequest.ts +389 -345
- package/src/models/CreateClusterResponseBody.ts +3 -3
- package/src/models/DescribeClusterDetailResponseBody.ts +166 -106
- package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +182 -131
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +139 -92
- package/src/models/ModifyClusterNodePoolRequest.ts +68 -49
- package/src/models/ModifyClusterRequest.ts +170 -112
- package/src/models/ModifyClusterResponseBody.ts +3 -3
- package/src/models/Nodepool.ts +151 -88
- package/src/models/model.ts +7 -0
|
@@ -12,11 +12,11 @@ import { InstanceMetadataOptions } from "./InstanceMetadataOptions";
|
|
|
12
12
|
export class CreateClusterRequestAuditLogConfig extends $dara.Model {
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Specifies whether to enable the cluster audit log feature.
|
|
16
16
|
*
|
|
17
17
|
* - true: Enable.
|
|
18
18
|
*
|
|
19
|
-
* - false:
|
|
19
|
+
* - false: Do not enable.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* true
|
|
@@ -24,11 +24,11 @@ export class CreateClusterRequestAuditLogConfig extends $dara.Model {
|
|
|
24
24
|
enabled?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* @remarks
|
|
27
|
-
* The [SLS Project](https://help.aliyun.com/document_detail/48873.html)
|
|
27
|
+
* The [SLS Project](https://help.aliyun.com/document_detail/48873.html) that contains the cluster audit log [Logstore](https://help.aliyun.com/document_detail/48873.html).
|
|
28
28
|
*
|
|
29
29
|
* - Default value: `k8s-log-{clusterid}`.
|
|
30
30
|
*
|
|
31
|
-
* - After
|
|
31
|
+
* - After the cluster audit log feature is enabled, a Logstore for cluster audit logs is created in the specified SLS Project.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* k8s-log-c2345xxxxxxxxxxxx
|
|
@@ -60,11 +60,11 @@ export class CreateClusterRequestAuditLogConfig extends $dara.Model {
|
|
|
60
60
|
export class CreateClusterRequestAutoMode extends $dara.Model {
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
*
|
|
63
|
+
* Specifies whether to enable intelligent managed mode.
|
|
64
64
|
*
|
|
65
65
|
* - true: Enable.
|
|
66
66
|
*
|
|
67
|
-
* - false:
|
|
67
|
+
* - false: Do not enable.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* true
|
|
@@ -94,9 +94,9 @@ export class CreateClusterRequestAutoMode extends $dara.Model {
|
|
|
94
94
|
export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
95
95
|
/**
|
|
96
96
|
* @remarks
|
|
97
|
-
*
|
|
97
|
+
* Specifies whether to enable auto-renewal for control plane nodes. Takes effect when the billing method is `PrePaid`.
|
|
98
98
|
* - true: Enable auto-renewal.
|
|
99
|
-
* - false:
|
|
99
|
+
* - false: Do not enable auto-renewal.
|
|
100
100
|
*
|
|
101
101
|
* Default value: true.
|
|
102
102
|
*
|
|
@@ -106,7 +106,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
106
106
|
autoRenew?: boolean;
|
|
107
107
|
/**
|
|
108
108
|
* @remarks
|
|
109
|
-
*
|
|
109
|
+
* The auto-renewal period of control plane nodes.
|
|
110
110
|
*
|
|
111
111
|
* Valid values: {1, 2, 3, 6, 12}. Unit: months.
|
|
112
112
|
*
|
|
@@ -118,7 +118,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
118
118
|
autoRenewPeriod?: number;
|
|
119
119
|
/**
|
|
120
120
|
* @remarks
|
|
121
|
-
*
|
|
121
|
+
* The billing method of control plane nodes.
|
|
122
122
|
*
|
|
123
123
|
* - `PrePaid`: Subscription.
|
|
124
124
|
* - `PostPaid`: Pay-as-you-go.
|
|
@@ -131,11 +131,11 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
131
131
|
chargeType?: string;
|
|
132
132
|
/**
|
|
133
133
|
* @remarks
|
|
134
|
-
*
|
|
134
|
+
* Specifies whether to install CloudMonitor on nodes.
|
|
135
135
|
*
|
|
136
|
-
* - true:
|
|
136
|
+
* - true: Installs the CloudMonitor agent.
|
|
137
137
|
*
|
|
138
|
-
* - false:
|
|
138
|
+
* - false: Does not install the CloudMonitor agent.
|
|
139
139
|
*
|
|
140
140
|
* Default value: false.
|
|
141
141
|
*
|
|
@@ -145,11 +145,11 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
145
145
|
cloudMonitorFlags?: boolean;
|
|
146
146
|
/**
|
|
147
147
|
* @remarks
|
|
148
|
-
*
|
|
148
|
+
* The node CPU management policy.
|
|
149
149
|
*
|
|
150
|
-
* - static: Allows
|
|
150
|
+
* - static: Allows pods with certain resource characteristics on the node to be granted enhanced CPU affinity and exclusivity.
|
|
151
151
|
*
|
|
152
|
-
* - none:
|
|
152
|
+
* - none: Uses the existing default CPU affinity scheme.
|
|
153
153
|
*
|
|
154
154
|
* Default value: none.
|
|
155
155
|
*
|
|
@@ -159,7 +159,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
159
159
|
cpuPolicy?: string;
|
|
160
160
|
/**
|
|
161
161
|
* @remarks
|
|
162
|
-
*
|
|
162
|
+
* The deployment set ID.
|
|
163
163
|
*
|
|
164
164
|
* @example
|
|
165
165
|
* ds-bp10b35imuam5amw****
|
|
@@ -167,7 +167,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
167
167
|
deploymentsetId?: string;
|
|
168
168
|
/**
|
|
169
169
|
* @remarks
|
|
170
|
-
*
|
|
170
|
+
* The image ID.
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
173
|
* aliyun_3_x64_20G_alibase_20240819.vhd
|
|
@@ -175,7 +175,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
175
175
|
imageId?: string;
|
|
176
176
|
/**
|
|
177
177
|
* @remarks
|
|
178
|
-
*
|
|
178
|
+
* The operating system image type.
|
|
179
179
|
*
|
|
180
180
|
* @example
|
|
181
181
|
* AliyunLinux3
|
|
@@ -183,17 +183,17 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
183
183
|
imageType?: string;
|
|
184
184
|
/**
|
|
185
185
|
* @remarks
|
|
186
|
-
*
|
|
186
|
+
* The instance metadata access configuration for ECS instances.
|
|
187
187
|
*/
|
|
188
188
|
instanceMetadataOptions?: InstanceMetadataOptions;
|
|
189
189
|
/**
|
|
190
190
|
* @remarks
|
|
191
|
-
*
|
|
191
|
+
* The node instance types.
|
|
192
192
|
*/
|
|
193
193
|
instanceTypes?: string[];
|
|
194
194
|
/**
|
|
195
195
|
* @remarks
|
|
196
|
-
*
|
|
196
|
+
* The key pair name. Mutually exclusive with login_password.
|
|
197
197
|
*
|
|
198
198
|
* @example
|
|
199
199
|
* ack
|
|
@@ -201,7 +201,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
201
201
|
keyPair?: string;
|
|
202
202
|
/**
|
|
203
203
|
* @remarks
|
|
204
|
-
* SSH
|
|
204
|
+
* The SSH logon password. Must be 8 to 30 characters in length and contain at least three of the following: uppercase letters, lowercase letters, digits, and special characters. Mutually exclusive with key_pair.
|
|
205
205
|
*
|
|
206
206
|
* @example
|
|
207
207
|
* ********
|
|
@@ -209,7 +209,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
209
209
|
loginPassword?: string;
|
|
210
210
|
/**
|
|
211
211
|
* @remarks
|
|
212
|
-
*
|
|
212
|
+
* **This field is deprecated.** The node service port range.
|
|
213
213
|
*
|
|
214
214
|
* @example
|
|
215
215
|
* 30000-32767
|
|
@@ -217,7 +217,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
217
217
|
nodePortRange?: string;
|
|
218
218
|
/**
|
|
219
219
|
* @remarks
|
|
220
|
-
*
|
|
220
|
+
* The subscription duration of control plane nodes. Valid and required when the billing method is `PrePaid`.
|
|
221
221
|
*
|
|
222
222
|
* Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Unit: months.
|
|
223
223
|
*
|
|
@@ -229,9 +229,9 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
229
229
|
period?: number;
|
|
230
230
|
/**
|
|
231
231
|
* @remarks
|
|
232
|
-
*
|
|
232
|
+
* The subscription period unit of control plane nodes. Valid and required when the billing method is `PrePaid`.
|
|
233
233
|
*
|
|
234
|
-
* Valid value: `Month`. Currently, only
|
|
234
|
+
* Valid value: `Month`. Currently, only monthly periods are supported.
|
|
235
235
|
*
|
|
236
236
|
* @example
|
|
237
237
|
* Month
|
|
@@ -239,9 +239,9 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
239
239
|
periodUnit?: string;
|
|
240
240
|
/**
|
|
241
241
|
* @remarks
|
|
242
|
-
*
|
|
242
|
+
* **This field is deprecated.** The container runtime for control plane nodes. Valid values:
|
|
243
243
|
*
|
|
244
|
-
* containerd: Containerd runtime,
|
|
244
|
+
* containerd: The Containerd runtime, which supports all cluster versions.
|
|
245
245
|
*
|
|
246
246
|
* @example
|
|
247
247
|
* containerd
|
|
@@ -249,11 +249,11 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
249
249
|
runtime?: string;
|
|
250
250
|
/**
|
|
251
251
|
* @remarks
|
|
252
|
-
*
|
|
252
|
+
* Specifies whether to enable Alibaba Cloud OS security hardening.
|
|
253
253
|
*
|
|
254
|
-
* - true:
|
|
254
|
+
* - true: Enables Alibaba Cloud OS security hardening.
|
|
255
255
|
*
|
|
256
|
-
* - false:
|
|
256
|
+
* - false: Does not enable Alibaba Cloud OS security hardening.
|
|
257
257
|
*
|
|
258
258
|
* Default value: false.
|
|
259
259
|
*
|
|
@@ -263,7 +263,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
263
263
|
securityHardeningOs?: boolean;
|
|
264
264
|
/**
|
|
265
265
|
* @remarks
|
|
266
|
-
*
|
|
266
|
+
* The number of control plane nodes.
|
|
267
267
|
*
|
|
268
268
|
* Valid values: `3` or `5`.
|
|
269
269
|
*
|
|
@@ -273,11 +273,11 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
273
273
|
size?: number;
|
|
274
274
|
/**
|
|
275
275
|
* @remarks
|
|
276
|
-
*
|
|
276
|
+
* Specifies whether to enable MLPS 2.0 security hardening.
|
|
277
277
|
*
|
|
278
|
-
* - true:
|
|
278
|
+
* - true: Enables MLPS 2.0 security hardening.
|
|
279
279
|
*
|
|
280
|
-
* - false:
|
|
280
|
+
* - false: Does not enable MLPS 2.0 security hardening.
|
|
281
281
|
*
|
|
282
282
|
* Default value: false.
|
|
283
283
|
*
|
|
@@ -287,13 +287,13 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
287
287
|
socEnabled?: boolean;
|
|
288
288
|
/**
|
|
289
289
|
* @remarks
|
|
290
|
-
*
|
|
290
|
+
* Specifies whether to enable burst (performance burst) for the node system cloud disk.
|
|
291
291
|
*
|
|
292
|
-
* - true:
|
|
292
|
+
* - true: Enabled.
|
|
293
293
|
*
|
|
294
|
-
* - false:
|
|
294
|
+
* - false: Not enabled.
|
|
295
295
|
*
|
|
296
|
-
* This parameter is only
|
|
296
|
+
* This parameter is supported only when `system_disk_category` is set to `cloud_auto`.
|
|
297
297
|
*
|
|
298
298
|
* @example
|
|
299
299
|
* true
|
|
@@ -301,15 +301,13 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
301
301
|
systemDiskBurstingEnabled?: boolean;
|
|
302
302
|
/**
|
|
303
303
|
* @remarks
|
|
304
|
-
*
|
|
304
|
+
* The node system disk type.
|
|
305
305
|
*
|
|
306
306
|
* - `cloud_efficiency`: Ultra disk.
|
|
307
|
-
* - `cloud_ssd`: SSD
|
|
308
|
-
* - `cloud_essd`: ESSD
|
|
309
|
-
* - `cloud_auto`: ESSD AutoPL
|
|
310
|
-
* - `
|
|
311
|
-
*
|
|
312
|
-
* Default value: `cloud_ssd`. The default value may vary across availability zones.
|
|
307
|
+
* - `cloud_ssd`: Standard SSD.
|
|
308
|
+
* - `cloud_essd`: ESSD.
|
|
309
|
+
* - `cloud_auto`: ESSD AutoPL.
|
|
310
|
+
* - `cloud_essd
|
|
313
311
|
*
|
|
314
312
|
* @example
|
|
315
313
|
* cloud_ssd
|
|
@@ -317,9 +315,9 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
317
315
|
systemDiskCategory?: string;
|
|
318
316
|
/**
|
|
319
317
|
* @remarks
|
|
320
|
-
*
|
|
318
|
+
* The performance level of the node system cloud disk. This parameter takes effect only for ESSD cloud disks.
|
|
321
319
|
*
|
|
322
|
-
* The performance level
|
|
320
|
+
* The performance level varies based on the cloud disk size. For more information, see [ESSD cloud disks](https://help.aliyun.com/document_detail/122389.html).
|
|
323
321
|
*
|
|
324
322
|
* @example
|
|
325
323
|
* PL1
|
|
@@ -327,11 +325,11 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
327
325
|
systemDiskPerformanceLevel?: string;
|
|
328
326
|
/**
|
|
329
327
|
* @remarks
|
|
330
|
-
*
|
|
328
|
+
* The provisioned read/write IOPS for the node system cloud disk.
|
|
331
329
|
*
|
|
332
|
-
* Valid values: 0 to min{50,000, 1000
|
|
330
|
+
* Valid values: 0 to min{50,000, 1000 × capacity - baseline performance}. Baseline performance = min{1,800 + 50 × capacity, 50000}.
|
|
333
331
|
*
|
|
334
|
-
* This parameter is only
|
|
332
|
+
* This parameter is supported only when `system_disk_category` is set to `cloud_auto`.
|
|
335
333
|
*
|
|
336
334
|
* @example
|
|
337
335
|
* 1000
|
|
@@ -339,9 +337,9 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
339
337
|
systemDiskProvisionedIops?: number;
|
|
340
338
|
/**
|
|
341
339
|
* @remarks
|
|
342
|
-
*
|
|
340
|
+
* The size of the node system cloud disk.
|
|
343
341
|
*
|
|
344
|
-
* Valid values: [40,
|
|
342
|
+
* Valid values: [40,500\\]. Unit: GiB.
|
|
345
343
|
*
|
|
346
344
|
* Default value: `120`.
|
|
347
345
|
*
|
|
@@ -351,7 +349,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
351
349
|
systemDiskSize?: number;
|
|
352
350
|
/**
|
|
353
351
|
* @remarks
|
|
354
|
-
*
|
|
352
|
+
* The automatic snapshot backup policy for nodes.
|
|
355
353
|
*
|
|
356
354
|
* @example
|
|
357
355
|
* sp-2zej1nogjvovnz4z****
|
|
@@ -435,7 +433,7 @@ export class CreateClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
435
433
|
export class CreateClusterRequestControlPlaneEndpointsConfigInternalDnsConfig extends $dara.Model {
|
|
436
434
|
/**
|
|
437
435
|
* @remarks
|
|
438
|
-
* VPCs where the internal
|
|
436
|
+
* The VPCs where the internal domain name record resolution takes effect.
|
|
439
437
|
*/
|
|
440
438
|
bindVpcs?: string[];
|
|
441
439
|
static names(): { [key: string]: string } {
|
|
@@ -462,21 +460,68 @@ export class CreateClusterRequestControlPlaneEndpointsConfigInternalDnsConfig ex
|
|
|
462
460
|
}
|
|
463
461
|
}
|
|
464
462
|
|
|
463
|
+
export class CreateClusterRequestControlPlaneEndpointsConfigLoadBalancersConfig extends $dara.Model {
|
|
464
|
+
/**
|
|
465
|
+
* @remarks
|
|
466
|
+
* The endpoint type.
|
|
467
|
+
*
|
|
468
|
+
* @example
|
|
469
|
+
* private
|
|
470
|
+
*/
|
|
471
|
+
endpointType?: string;
|
|
472
|
+
/**
|
|
473
|
+
* @remarks
|
|
474
|
+
* The NLB instance ID.
|
|
475
|
+
*
|
|
476
|
+
* @example
|
|
477
|
+
* nlb-0ogk9aaxxxxxxx
|
|
478
|
+
*/
|
|
479
|
+
loadBalancerId?: string;
|
|
480
|
+
static names(): { [key: string]: string } {
|
|
481
|
+
return {
|
|
482
|
+
endpointType: 'endpoint_type',
|
|
483
|
+
loadBalancerId: 'load_balancer_id',
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
static types(): { [key: string]: any } {
|
|
488
|
+
return {
|
|
489
|
+
endpointType: 'string',
|
|
490
|
+
loadBalancerId: 'string',
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
validate() {
|
|
495
|
+
super.validate();
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
constructor(map?: { [key: string]: any }) {
|
|
499
|
+
super(map);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
465
503
|
export class CreateClusterRequestControlPlaneEndpointsConfig extends $dara.Model {
|
|
466
504
|
/**
|
|
467
505
|
* @remarks
|
|
468
|
-
*
|
|
506
|
+
* The internal DNS configuration for the cluster. Applicable to ACK managed clusters. The internal domain name is used by node-side system components such as kubelet and kube-proxy to access the API Server. When internal domain name access is not enabled, node-side system components access the API Server through the CLB IP address.
|
|
469
507
|
*/
|
|
470
508
|
internalDnsConfig?: CreateClusterRequestControlPlaneEndpointsConfigInternalDnsConfig;
|
|
509
|
+
/**
|
|
510
|
+
* @remarks
|
|
511
|
+
* The cluster endpoint configuration. When this field is specified, the endpoint_public_access and load_balancer_id parameters do not take effect. ACK only supports automatic creation of NLB instances. To specify a CLB/NLB, use load_balancers_config to specify the instance ID.
|
|
512
|
+
*/
|
|
513
|
+
loadBalancersConfig?: CreateClusterRequestControlPlaneEndpointsConfigLoadBalancersConfig[];
|
|
471
514
|
static names(): { [key: string]: string } {
|
|
472
515
|
return {
|
|
473
516
|
internalDnsConfig: 'internal_dns_config',
|
|
517
|
+
loadBalancersConfig: 'load_balancers_config',
|
|
474
518
|
};
|
|
475
519
|
}
|
|
476
520
|
|
|
477
521
|
static types(): { [key: string]: any } {
|
|
478
522
|
return {
|
|
479
523
|
internalDnsConfig: CreateClusterRequestControlPlaneEndpointsConfigInternalDnsConfig,
|
|
524
|
+
loadBalancersConfig: { 'type': 'array', 'itemType': CreateClusterRequestControlPlaneEndpointsConfigLoadBalancersConfig },
|
|
480
525
|
};
|
|
481
526
|
}
|
|
482
527
|
|
|
@@ -484,6 +529,9 @@ export class CreateClusterRequestControlPlaneEndpointsConfig extends $dara.Model
|
|
|
484
529
|
if(this.internalDnsConfig && typeof (this.internalDnsConfig as any).validate === 'function') {
|
|
485
530
|
(this.internalDnsConfig as any).validate();
|
|
486
531
|
}
|
|
532
|
+
if(Array.isArray(this.loadBalancersConfig)) {
|
|
533
|
+
$dara.Model.validateArray(this.loadBalancersConfig);
|
|
534
|
+
}
|
|
487
535
|
super.validate();
|
|
488
536
|
}
|
|
489
537
|
|
|
@@ -495,10 +543,10 @@ export class CreateClusterRequestControlPlaneEndpointsConfig extends $dara.Model
|
|
|
495
543
|
export class CreateClusterRequestOperationPolicyClusterAutoUpgrade extends $dara.Model {
|
|
496
544
|
/**
|
|
497
545
|
* @remarks
|
|
498
|
-
*
|
|
499
|
-
* - patch: Automatically
|
|
500
|
-
* - stable: Automatically
|
|
501
|
-
* - rapid: Automatically
|
|
546
|
+
* The cluster auto-upgrade frequency. Valid values:
|
|
547
|
+
* - patch: Automatically upgrades to the available patch version of the current minor version. The new Kubernetes version does not contain breaking changes.
|
|
548
|
+
* - stable: Automatically upgrades to the latest patch version of the second-latest minor version. The new Kubernetes version may involve API and feature changes, but its stability has been widely validated.
|
|
549
|
+
* - rapid: Automatically upgrades to the latest patch version of the latest minor version to gain access to new Kubernetes community features faster.
|
|
502
550
|
*
|
|
503
551
|
* @example
|
|
504
552
|
* stable
|
|
@@ -506,11 +554,11 @@ export class CreateClusterRequestOperationPolicyClusterAutoUpgrade extends $dara
|
|
|
506
554
|
channel?: string;
|
|
507
555
|
/**
|
|
508
556
|
* @remarks
|
|
509
|
-
*
|
|
557
|
+
* Specifies whether to enable cluster auto-upgrade.
|
|
510
558
|
*
|
|
511
559
|
* - true: Enable.
|
|
512
560
|
*
|
|
513
|
-
* - false:
|
|
561
|
+
* - false: Do not enable.
|
|
514
562
|
*
|
|
515
563
|
* @example
|
|
516
564
|
* true
|
|
@@ -542,7 +590,7 @@ export class CreateClusterRequestOperationPolicyClusterAutoUpgrade extends $dara
|
|
|
542
590
|
export class CreateClusterRequestOperationPolicy extends $dara.Model {
|
|
543
591
|
/**
|
|
544
592
|
* @remarks
|
|
545
|
-
*
|
|
593
|
+
* The cluster auto-upgrade configuration.
|
|
546
594
|
*/
|
|
547
595
|
clusterAutoUpgrade?: CreateClusterRequestOperationPolicyClusterAutoUpgrade;
|
|
548
596
|
static names(): { [key: string]: string } {
|
|
@@ -572,11 +620,11 @@ export class CreateClusterRequestOperationPolicy extends $dara.Model {
|
|
|
572
620
|
export class CreateClusterRequestRrsaConfig extends $dara.Model {
|
|
573
621
|
/**
|
|
574
622
|
* @remarks
|
|
575
|
-
*
|
|
623
|
+
* Specifies whether to enable RRSA.
|
|
576
624
|
*
|
|
577
625
|
* - true: Enable.
|
|
578
626
|
*
|
|
579
|
-
* - false:
|
|
627
|
+
* - false: Do not enable.
|
|
580
628
|
*
|
|
581
629
|
* @example
|
|
582
630
|
* true
|
|
@@ -606,7 +654,7 @@ export class CreateClusterRequestRrsaConfig extends $dara.Model {
|
|
|
606
654
|
export class CreateClusterRequestWorkerDataDisks extends $dara.Model {
|
|
607
655
|
/**
|
|
608
656
|
* @remarks
|
|
609
|
-
*
|
|
657
|
+
* The data cloud disk type.
|
|
610
658
|
*
|
|
611
659
|
* This parameter is required.
|
|
612
660
|
*
|
|
@@ -616,10 +664,10 @@ export class CreateClusterRequestWorkerDataDisks extends $dara.Model {
|
|
|
616
664
|
category?: string;
|
|
617
665
|
/**
|
|
618
666
|
* @remarks
|
|
619
|
-
*
|
|
667
|
+
* Specifies whether to encrypt the data cloud disk. Valid values:
|
|
620
668
|
*
|
|
621
|
-
* - `true`:
|
|
622
|
-
* - `false`:
|
|
669
|
+
* - `true`: Encrypts the data cloud disk.
|
|
670
|
+
* - `false`: Does not encrypt the data cloud disk.
|
|
623
671
|
*
|
|
624
672
|
* Default value: `false`.
|
|
625
673
|
*
|
|
@@ -629,7 +677,7 @@ export class CreateClusterRequestWorkerDataDisks extends $dara.Model {
|
|
|
629
677
|
encrypted?: string;
|
|
630
678
|
/**
|
|
631
679
|
* @remarks
|
|
632
|
-
*
|
|
680
|
+
* The performance level of the node data cloud disk. This parameter takes effect only for [ESSD cloud disks](https://help.aliyun.com/document_detail/122389.html).
|
|
633
681
|
*
|
|
634
682
|
* @example
|
|
635
683
|
* PL1
|
|
@@ -637,7 +685,7 @@ export class CreateClusterRequestWorkerDataDisks extends $dara.Model {
|
|
|
637
685
|
performanceLevel?: string;
|
|
638
686
|
/**
|
|
639
687
|
* @remarks
|
|
640
|
-
*
|
|
688
|
+
* The data cloud disk size. Valid values: 40 to 32767. Unit: GiB.
|
|
641
689
|
*
|
|
642
690
|
* This parameter is required.
|
|
643
691
|
*
|
|
@@ -675,46 +723,46 @@ export class CreateClusterRequestWorkerDataDisks extends $dara.Model {
|
|
|
675
723
|
export class CreateClusterRequest extends $dara.Model {
|
|
676
724
|
/**
|
|
677
725
|
* @remarks
|
|
678
|
-
*
|
|
726
|
+
* 【**该字段已废弃**】注册集群 API Server SLB 访问控制列表。
|
|
679
727
|
*
|
|
680
728
|
* @deprecated
|
|
681
729
|
*/
|
|
682
730
|
accessControlList?: string[];
|
|
683
731
|
/**
|
|
684
732
|
* @remarks
|
|
685
|
-
*
|
|
733
|
+
* The list of cluster components. Specify the components to install when creating a cluster using `addons`.
|
|
686
734
|
*
|
|
687
|
-
* **Network component**: Required. Choose between Flannel and Terway network types
|
|
735
|
+
* **Network component**: Required. Choose between Flannel and Terway network types:
|
|
688
736
|
*
|
|
689
|
-
* - Flannel network: [{"name":"flannel","config":""}].
|
|
690
|
-
* - Terway network: [{"name": "terway-eniip","config": ""}]
|
|
737
|
+
* - Flannel network: [{"name":"flannel","config":""}\\].
|
|
738
|
+
* - Terway network: [{"name": "terway-eniip","config": ""}\\].
|
|
691
739
|
*
|
|
692
740
|
* **Storage component**: Optional. Only the `csi` type is supported:
|
|
693
741
|
*
|
|
694
|
-
* `csi`: [{"name":"csi-plugin","config": ""},{"name": "csi-provisioner","config": ""}].
|
|
742
|
+
* `csi`: [{"name":"csi-plugin","config": ""},{"name": "csi-provisioner","config": ""}\\].
|
|
695
743
|
*
|
|
696
|
-
* **Log component**: Optional.
|
|
744
|
+
* **Log component**: Optional. We recommend that you enable this component. If the log service is not enabled, the cluster audit feature is unavailable.
|
|
697
745
|
*
|
|
698
|
-
* - Use an existing `SLS Project`: [{"name": "loongcollector","config": "{\\"IngressDashboardEnabled\\":\\"true\\",\\"sls_project_name\\":\\"your_sls_project_name\\"}"}]
|
|
699
|
-
* - Create a new `SLS Project`: [{"name": "loongcollector","config": "{\\"IngressDashboardEnabled\\":\\"true\\"}"}]
|
|
746
|
+
* - Use an existing `SLS Project`: [{"name": "loongcollector","config": "{\\"IngressDashboardEnabled\\":\\"true\\",\\"sls_project_name\\":\\"your_sls_project_name\\"}"}\\].
|
|
747
|
+
* - Create a new `SLS Project`: [{"name": "loongcollector","config": "{\\"IngressDashboardEnabled\\":\\"true\\"}"}\\].
|
|
700
748
|
*
|
|
701
749
|
* **Ingress component**: Optional. ACK dedicated clusters install the Ingress component `nginx-ingress-controller` by default.
|
|
702
750
|
*
|
|
703
|
-
* - Install Ingress with public network access: [{"name":"nginx-ingress-controller","config":"{\\"IngressSlbNetworkType\\":\\"internet\\"}"}]
|
|
704
|
-
* - Disable default Ingress installation: [{"name": "nginx-ingress-controller","config": "","disabled": true}]
|
|
751
|
+
* - Install Ingress with public network access: [{"name":"nginx-ingress-controller","config":"{\\"IngressSlbNetworkType\\":\\"internet\\"}"}\\].
|
|
752
|
+
* - Disable default Ingress installation: [{"name": "nginx-ingress-controller","config": "","disabled": true}\\].
|
|
705
753
|
*
|
|
706
|
-
* **Event
|
|
754
|
+
* **Event Center**: Optional. Enabled by default.
|
|
707
755
|
*
|
|
708
|
-
* The
|
|
756
|
+
* The Event Center provides storage, query, and alerting capabilities for Kubernetes events. The Logstore associated with the Kubernetes Event Center is free for 90 days. For more information about the free policy, see [Create and use the Kubernetes event center](https://help.aliyun.com/document_detail/150476.html).
|
|
709
757
|
*
|
|
710
|
-
* Example of enabling the
|
|
758
|
+
* Example of enabling the Event Center: [{"name":"ack-node-problem-detector","config":"{\\"sls_project_name\\":\\"your_sls_project_name\\"}"}\\].
|
|
711
759
|
*/
|
|
712
760
|
addons?: Addon[];
|
|
713
761
|
/**
|
|
714
762
|
* @remarks
|
|
715
|
-
* ServiceAccount is the access credential for communication between
|
|
763
|
+
* A ServiceAccount is the access credential for communication between a Pod and the cluster API Server. The `api-audiences` is the valid request `token` identity, used by the `apiserver` to authenticate whether a request `token` is valid. Multiple `audiences` are supported, separated by commas (,).
|
|
716
764
|
*
|
|
717
|
-
* For more
|
|
765
|
+
* For more information about `ServiceAccount`, see [Deploy service account token volume projection](https://help.aliyun.com/document_detail/160384.html).
|
|
718
766
|
*
|
|
719
767
|
* @example
|
|
720
768
|
* kubernetes.default.svc
|
|
@@ -722,26 +770,26 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
722
770
|
apiAudiences?: string;
|
|
723
771
|
/**
|
|
724
772
|
* @remarks
|
|
725
|
-
*
|
|
773
|
+
* The cluster audit log configuration.
|
|
726
774
|
*/
|
|
727
775
|
auditLogConfig?: CreateClusterRequestAuditLogConfig;
|
|
728
776
|
/**
|
|
729
777
|
* @remarks
|
|
730
|
-
* [
|
|
778
|
+
* The [intelligent managed mode](https://help.aliyun.com/document_detail/2938898.html) configuration.
|
|
731
779
|
*/
|
|
732
780
|
autoMode?: CreateClusterRequestAutoMode;
|
|
733
781
|
/**
|
|
734
782
|
* @remarks
|
|
735
|
-
*
|
|
783
|
+
* 【**该字段已废弃**】
|
|
736
784
|
*
|
|
737
|
-
*
|
|
785
|
+
* 是否开启自动续费,当`charge_type`取值为`PrePaid`时才生效。取值:
|
|
738
786
|
*
|
|
739
|
-
* - `true
|
|
740
|
-
* - `false
|
|
787
|
+
* - `true`:自动续费。
|
|
788
|
+
* - `false`:不自动续费。
|
|
741
789
|
*
|
|
742
|
-
*
|
|
790
|
+
* 默认值:`false`。
|
|
743
791
|
*
|
|
744
|
-
*
|
|
792
|
+
* 该字段于2024年10月15日存在变更,更多信息,请参见[关于集群创建接口CreateCluster参数行为变更的公告](https://help.aliyun.com/document_detail/2849194.html)。
|
|
745
793
|
*
|
|
746
794
|
* @example
|
|
747
795
|
* true
|
|
@@ -751,13 +799,13 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
751
799
|
autoRenew?: boolean;
|
|
752
800
|
/**
|
|
753
801
|
* @remarks
|
|
754
|
-
*
|
|
802
|
+
* 【**该字段已废弃**】
|
|
755
803
|
*
|
|
756
|
-
*
|
|
804
|
+
* 自动续费周期,当选择预付费和自动续费时才生效。当`PeriodUnit=Month`时,取值范围:{1, 2, 3, 6, 12}。
|
|
757
805
|
*
|
|
758
|
-
*
|
|
806
|
+
* 默认值:1。
|
|
759
807
|
*
|
|
760
|
-
*
|
|
808
|
+
* 该字段于2024年10月15日存在变更,更多信息,请参见[关于集群创建接口CreateCluster参数行为变更的公告](https://help.aliyun.com/document_detail/2849194.html)。
|
|
761
809
|
*
|
|
762
810
|
* @example
|
|
763
811
|
* 1
|
|
@@ -767,19 +815,19 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
767
815
|
autoRenewPeriod?: number;
|
|
768
816
|
/**
|
|
769
817
|
* @remarks
|
|
770
|
-
*
|
|
818
|
+
* 【**该字段已废弃**】
|
|
771
819
|
*
|
|
772
|
-
*
|
|
773
|
-
* - PostPaid
|
|
774
|
-
* - PrePaid
|
|
820
|
+
* API Server所使用的CLB实例的付费类型,默认值为PostPaid。取值:
|
|
821
|
+
* - PostPaid:按量付费。
|
|
822
|
+
* - PrePaid:包年包月,新建CLB付费类型已不支持,存量不影响。
|
|
775
823
|
*
|
|
776
824
|
* >Notice:
|
|
777
825
|
*
|
|
778
|
-
* -
|
|
779
|
-
* -
|
|
826
|
+
* - 该字段于2024年10月15日存在变更,更多信息,请参见[关于集群创建接口CreateCluster参数行为变更的公告](https://help.aliyun.com/document_detail/2849194.html)。
|
|
827
|
+
* - 自2024年12月01日起,新创建的CLB实例不再支持包年包月付费类型,同时将新增收取实例费。
|
|
780
828
|
* </notice>
|
|
781
|
-
* <props="china"
|
|
782
|
-
* <props="intl"
|
|
829
|
+
* <props="china">详细信息请参见[【产品公告】关于取消新增集群API Server负载均衡CLB包年包月付费的公告](https://help.aliyun.com/document_detail/2851191.html)、[传统型负载均衡CLB计费项调整公告](https://help.aliyun.com/document_detail/2839797.html)。
|
|
830
|
+
* <props="intl">详细信息请参见[传统型负载均衡CLB计费项调整公告](https://help.aliyun.com/document_detail/2839797.html)。
|
|
783
831
|
*
|
|
784
832
|
* @example
|
|
785
833
|
* PostPaid
|
|
@@ -789,7 +837,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
789
837
|
chargeType?: string;
|
|
790
838
|
/**
|
|
791
839
|
* @remarks
|
|
792
|
-
*
|
|
840
|
+
* **This field is deprecated.** For control plane configurations, use the `security_hardening_os` parameter under `control_plane_config` instead. For node pool configurations, use the `security_hardening_os` parameter under `scaling_group` in `nodepool` instead.
|
|
793
841
|
*
|
|
794
842
|
* @example
|
|
795
843
|
* false
|
|
@@ -799,12 +847,12 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
799
847
|
cisEnabled?: boolean;
|
|
800
848
|
/**
|
|
801
849
|
* @remarks
|
|
802
|
-
*
|
|
850
|
+
* **This field is deprecated.** For control plane node configurations, use the `cloud_monitor_flags` parameter under `control_plane_config` instead. For node pool configurations, use the `cms_enabled` parameter under `kubernetes_config` in `nodepool` instead.
|
|
803
851
|
*
|
|
804
|
-
*
|
|
852
|
+
* Specifies whether to install the CloudMonitor agent on the cluster. Valid values:
|
|
805
853
|
*
|
|
806
|
-
* - `true`:
|
|
807
|
-
* - `false`:
|
|
854
|
+
* - `true`: Installs the CloudMonitor agent.
|
|
855
|
+
* - `false`: Does not install the CloudMonitor agent.
|
|
808
856
|
*
|
|
809
857
|
* Default value: `false`.
|
|
810
858
|
*
|
|
@@ -816,9 +864,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
816
864
|
cloudMonitorFlags?: boolean;
|
|
817
865
|
/**
|
|
818
866
|
* @remarks
|
|
819
|
-
*
|
|
867
|
+
* The cluster local domain.
|
|
820
868
|
*
|
|
821
|
-
* Naming rules: The domain
|
|
869
|
+
* Naming rules: The domain consists of one or more parts separated by periods (.). Each part can be up to 63 characters in length and can contain lowercase letters, digits, and hyphens (-). Each part must start and end with a lowercase letter or digit.
|
|
822
870
|
*
|
|
823
871
|
* @example
|
|
824
872
|
* cluster.local
|
|
@@ -826,17 +874,17 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
826
874
|
clusterDomain?: string;
|
|
827
875
|
/**
|
|
828
876
|
* @remarks
|
|
829
|
-
* After
|
|
877
|
+
* After you set `cluster_type` to `ManagedKubernetes` and configure `profile`, you can further specify the cluster specification. Valid values:
|
|
830
878
|
*
|
|
831
|
-
* - `ack.standard`: Basic
|
|
832
|
-
* - `ack.pro.small`: Pro
|
|
879
|
+
* - `ack.standard`: Basic (selected by default when the value is empty)
|
|
880
|
+
* - `ack.pro.small`: Pro
|
|
833
881
|
* - `ack.pro.xlarge`: Pro XL
|
|
834
882
|
* - `ack.pro.2xlarge`: Pro 2XL
|
|
835
|
-
* - `ack.pro.4xlarge`: Pro 4XL (requires contacting customer service to enable
|
|
883
|
+
* - `ack.pro.4xlarge`: Pro 4XL (requires contacting customer service to enable the whitelist)
|
|
836
884
|
*
|
|
837
|
-
* Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by <props="china">[ACK Pro Provisioned Control Plane](https://help.aliyun.com/ack/ack-managed-and-ack-dedicated/user-guide/ack-pro-provisioned-control-plane)<props="intl">[ACK Pro Provisioned Control Plane](https://www.alibabacloud.com/help/ack/ack-managed-and-ack-dedicated/user-guide/ack-pro-provisioned-control-plane).
|
|
885
|
+
* Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by <props="china">[ACK Pro Provisioned Control Plane](https://help.aliyun.com/ack/ack-managed-and-ack-dedicated/user-guide/ack-pro-provisioned-control-plane)<props="intl">[ACK Pro Provisioned Control Plane](https://www.alibabacloud.com/help/ack/ack-managed-and-ack-dedicated/user-guide/ack-pro-provisioned-control-plane). By pre-allocating and fixing control plane resources, they ensure that API concurrency and Pod scheduling capabilities remain at a deterministic high level, suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads.
|
|
838
886
|
*
|
|
839
|
-
* For the
|
|
887
|
+
* For information about the management fees for Pro and Provisioned Control Plane clusters, see <props="china">[Cluster management fee](https://help.aliyun.com/ack/ack-managed-and-ack-dedicated/product-overview/cluster-management-fee)<props="intl">[Cluster management fee](https://www.alibabacloud.com/help/ack/ack-managed-and-ack-dedicated/product-overview/cluster-management-fee).
|
|
840
888
|
*
|
|
841
889
|
* @example
|
|
842
890
|
* ack.pro.small
|
|
@@ -845,8 +893,8 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
845
893
|
/**
|
|
846
894
|
* @remarks
|
|
847
895
|
* - `Kubernetes`: ACK dedicated cluster.
|
|
848
|
-
* - `ManagedKubernetes`: ACK managed cluster types, including ACK managed
|
|
849
|
-
* - `ExternalKubernetes`:
|
|
896
|
+
* - `ManagedKubernetes`: ACK managed cluster types, including ACK managed clusters (Pro and Basic), ACK Serverless clusters (Pro and Basic), ACK Edge clusters (Pro and Basic), and ACK Lingjun clusters (Pro).
|
|
897
|
+
* - `ExternalKubernetes`: registered cluster.
|
|
850
898
|
*
|
|
851
899
|
* @example
|
|
852
900
|
* Kubernetes
|
|
@@ -854,9 +902,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
854
902
|
clusterType?: string;
|
|
855
903
|
/**
|
|
856
904
|
* @remarks
|
|
857
|
-
* Pod network CIDR block.
|
|
905
|
+
* The Pod network CIDR block. It must be a valid private CIDR block, specifically the following CIDR blocks and their subnets: 10.0.0.0/8, 172.16-31.0.0/12-16, 192.168.0.0/16. It cannot overlap with the VPC CIDR block or CIDR blocks used by existing Kubernetes clusters in the VPC. It cannot be modified after creation.
|
|
858
906
|
*
|
|
859
|
-
* For cluster network planning, see [ACK managed cluster network planning](https://help.aliyun.com/document_detail/86500.html).
|
|
907
|
+
* For information about cluster network planning, see [ACK managed cluster network planning](https://help.aliyun.com/document_detail/86500.html).
|
|
860
908
|
*
|
|
861
909
|
* > This field is required for Flannel clusters.
|
|
862
910
|
*
|
|
@@ -866,24 +914,24 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
866
914
|
containerCidr?: string;
|
|
867
915
|
/**
|
|
868
916
|
* @remarks
|
|
869
|
-
* ACK dedicated cluster control plane configuration.
|
|
917
|
+
* The ACK dedicated cluster control plane configuration.
|
|
870
918
|
*/
|
|
871
919
|
controlPlaneConfig?: CreateClusterRequestControlPlaneConfig;
|
|
872
920
|
/**
|
|
873
921
|
* @remarks
|
|
874
|
-
*
|
|
922
|
+
* The cluster endpoint configuration.
|
|
875
923
|
*/
|
|
876
924
|
controlPlaneEndpointsConfig?: CreateClusterRequestControlPlaneEndpointsConfig;
|
|
877
925
|
/**
|
|
878
926
|
* @remarks
|
|
879
|
-
*
|
|
927
|
+
* The list of component names that specifies which control plane components to collect logs from.
|
|
880
928
|
*
|
|
881
929
|
* By default, logs are collected from kube-apiserver, kube-controller-manager, kube-scheduler, and cloud-controller-manager.
|
|
882
930
|
*/
|
|
883
931
|
controlplaneLogComponents?: string[];
|
|
884
932
|
/**
|
|
885
933
|
* @remarks
|
|
886
|
-
* Log Service project for control plane component logs. You can use an existing project for log storage or
|
|
934
|
+
* The Simple Log Service project for control plane component logs. You can use an existing project for log storage or have the system automatically create a project. If you choose automatic creation, a Simple Log Service project named `k8s-log-{ClusterID}` is created.
|
|
887
935
|
*
|
|
888
936
|
* @example
|
|
889
937
|
* k8s-log-xxx
|
|
@@ -891,7 +939,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
891
939
|
controlplaneLogProject?: string;
|
|
892
940
|
/**
|
|
893
941
|
* @remarks
|
|
894
|
-
*
|
|
942
|
+
* The number of days for log retention of control plane component logs.
|
|
895
943
|
*
|
|
896
944
|
* @example
|
|
897
945
|
* 30
|
|
@@ -899,12 +947,12 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
899
947
|
controlplaneLogTtl?: string;
|
|
900
948
|
/**
|
|
901
949
|
* @remarks
|
|
902
|
-
*
|
|
950
|
+
* **This field is deprecated.** For control plane configurations, use the `cpu_policy` parameter under `control_plane_config` instead. For node pool configurations, use the `cpu_policy` parameter under `kubernetes_config` in `nodepool` instead.
|
|
903
951
|
*
|
|
904
|
-
*
|
|
952
|
+
* The node CPU management policy. The following policies are supported for cluster versions 1.12.6 and later:
|
|
905
953
|
*
|
|
906
|
-
* - `static`: Allows
|
|
907
|
-
* - `none`:
|
|
954
|
+
* - `static`: Allows pods with certain resource characteristics on the node to be granted enhanced CPU affinity and exclusivity.
|
|
955
|
+
* - `none`: Uses the existing default CPU affinity scheme.
|
|
908
956
|
*
|
|
909
957
|
* Default value: `none`.
|
|
910
958
|
*
|
|
@@ -916,9 +964,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
916
964
|
cpuPolicy?: string;
|
|
917
965
|
/**
|
|
918
966
|
* @remarks
|
|
919
|
-
*
|
|
967
|
+
* **This field is deprecated.** Use the `extra_sans` parameter instead.
|
|
920
968
|
*
|
|
921
|
-
*
|
|
969
|
+
* The custom certificate Subject Alternative Name (SAN). Separate multiple IP addresses or domain names with commas (,).
|
|
922
970
|
*
|
|
923
971
|
* @example
|
|
924
972
|
* cs.aliyun.com
|
|
@@ -928,10 +976,10 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
928
976
|
customSan?: string;
|
|
929
977
|
/**
|
|
930
978
|
* @remarks
|
|
931
|
-
*
|
|
979
|
+
* Specifies whether to enable cluster deletion protection, which prevents the cluster from being accidentally deleted through the console or API. Valid values:
|
|
932
980
|
*
|
|
933
981
|
* - `true`: Enable cluster deletion protection. The cluster cannot be deleted through the console or API.
|
|
934
|
-
* - `false`:
|
|
982
|
+
* - `false`: Do not enable cluster deletion protection. The cluster can be deleted through the console or API.
|
|
935
983
|
*
|
|
936
984
|
* Default value: `false`.
|
|
937
985
|
*
|
|
@@ -941,15 +989,15 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
941
989
|
deletionProtection?: boolean;
|
|
942
990
|
/**
|
|
943
991
|
* @remarks
|
|
944
|
-
*
|
|
992
|
+
* 【**该字段已废弃**】集群创建失败时默认不会进行回滚,您需要自行清理创建失败的集群。
|
|
945
993
|
*
|
|
946
|
-
*
|
|
994
|
+
* 集群创建失败是否回滚。取值:
|
|
947
995
|
*
|
|
948
|
-
* - `true
|
|
949
|
-
* - `false
|
|
996
|
+
* - `true`:当集群创建失败时,进行回滚操作。
|
|
997
|
+
* - `false`:当集群创建失败时,不进行回滚操作。
|
|
950
998
|
*
|
|
951
999
|
*
|
|
952
|
-
*
|
|
1000
|
+
* 默认值:`true`。
|
|
953
1001
|
*
|
|
954
1002
|
* @example
|
|
955
1003
|
* true
|
|
@@ -959,13 +1007,13 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
959
1007
|
disableRollback?: boolean;
|
|
960
1008
|
/**
|
|
961
1009
|
* @remarks
|
|
962
|
-
*
|
|
1010
|
+
* 【**该字段已废弃**】请使用参数`rrsa_config`代替。
|
|
963
1011
|
*
|
|
964
|
-
*
|
|
1012
|
+
* 是否启用RRSA功能。
|
|
965
1013
|
*
|
|
966
|
-
* - true
|
|
1014
|
+
* - true:开启。
|
|
967
1015
|
*
|
|
968
|
-
* - false
|
|
1016
|
+
* - false:不开启。
|
|
969
1017
|
*
|
|
970
1018
|
* @example
|
|
971
1019
|
* false
|
|
@@ -975,9 +1023,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
975
1023
|
enableRrsa?: boolean;
|
|
976
1024
|
/**
|
|
977
1025
|
* @remarks
|
|
978
|
-
* KMS key ID
|
|
1026
|
+
* The KMS key ID used to encrypt data disks. For more information, see [Key Management Service](https://help.aliyun.com/document_detail/28935.html).
|
|
979
1027
|
*
|
|
980
|
-
* > This feature only takes effect in
|
|
1028
|
+
* > This feature only takes effect in ACK Pro managed clusters.
|
|
981
1029
|
*
|
|
982
1030
|
* @example
|
|
983
1031
|
* 0fe64791-55eb-4fc7-84c5-c6c7cdca****
|
|
@@ -985,10 +1033,10 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
985
1033
|
encryptionProviderKey?: string;
|
|
986
1034
|
/**
|
|
987
1035
|
* @remarks
|
|
988
|
-
*
|
|
1036
|
+
* Specifies whether to public network access. Exposes the API Server through an EIP to public network access to the cluster.
|
|
989
1037
|
*
|
|
990
|
-
* - `true`:
|
|
991
|
-
* - `false`:
|
|
1038
|
+
* - `true`: Public network access.
|
|
1039
|
+
* - `false`: Do not public network access. If not enabled, the cluster API Server cannot be accessed from the Internet.
|
|
992
1040
|
*
|
|
993
1041
|
* Default value: `false`.
|
|
994
1042
|
*
|
|
@@ -998,25 +1046,25 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
998
1046
|
endpointPublicAccess?: boolean;
|
|
999
1047
|
/**
|
|
1000
1048
|
* @remarks
|
|
1001
|
-
*
|
|
1049
|
+
* The custom API Server certificate SAN (Subject Alternative Name).
|
|
1002
1050
|
*/
|
|
1003
1051
|
extraSans?: string[];
|
|
1004
1052
|
/**
|
|
1005
1053
|
* @remarks
|
|
1006
|
-
* [
|
|
1054
|
+
* 【**该字段已废弃**】创建集群时不支持选择已有节点,如需添加已有节点到集群,请先创建节点池,并调用[AttachInstancesToNodePool](https://help.aliyun.com/document_detail/2667920.html)接口操作。
|
|
1007
1055
|
*
|
|
1008
|
-
*
|
|
1056
|
+
* 使用已有实例创建集群时,是否对实例进行数据盘挂载,取值:
|
|
1009
1057
|
*
|
|
1010
|
-
* - `true
|
|
1058
|
+
* - `true`:将容器和镜像存储在数据盘,数据盘内原有数据将丢失,请注意备份数据。
|
|
1011
1059
|
*
|
|
1012
|
-
* - `false
|
|
1060
|
+
* - `false`:不将容器和镜像存储在数据盘。
|
|
1013
1061
|
*
|
|
1014
|
-
*
|
|
1062
|
+
* 默认值:`false`。
|
|
1015
1063
|
*
|
|
1016
|
-
*
|
|
1064
|
+
* 数据盘挂载规则:
|
|
1017
1065
|
*
|
|
1018
|
-
* -
|
|
1019
|
-
* -
|
|
1066
|
+
* - 如果ECS已挂载数据盘,且最后一块数据盘的文件系统未初始化,系统会自动将该数据盘格式化为ext4,用来存放内容/var/lib/docker、/var/lib/kubelet。
|
|
1067
|
+
* - 如果ECS未挂载数据盘,则不会挂载新的数据盘。
|
|
1020
1068
|
*
|
|
1021
1069
|
* @example
|
|
1022
1070
|
* false
|
|
@@ -1026,9 +1074,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1026
1074
|
formatDisk?: boolean;
|
|
1027
1075
|
/**
|
|
1028
1076
|
* @remarks
|
|
1029
|
-
*
|
|
1077
|
+
* **This field is deprecated.** For control plane configurations, use the `image_id` parameter under `control_plane_config` instead. For node pool configurations, use the `image_id` parameter under `scaling_group` in `nodepool` instead.
|
|
1030
1078
|
*
|
|
1031
|
-
*
|
|
1079
|
+
* The custom node image. The system image is used by default. When a custom image is selected, it replaces the default system image. For more information, see [Custom images](https://help.aliyun.com/document_detail/146647.html).
|
|
1032
1080
|
*
|
|
1033
1081
|
* @example
|
|
1034
1082
|
* m-bp16z7xko3vvv8gt****
|
|
@@ -1038,9 +1086,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1038
1086
|
imageId?: string;
|
|
1039
1087
|
/**
|
|
1040
1088
|
* @remarks
|
|
1041
|
-
*
|
|
1089
|
+
* 【**该字段已废弃**】集群控制面配置请使用`control_plane_config`下的`image_type`参数代替;节点池配置请使用`nodepool`中`scaling_group`下的`image_type`参数代替。
|
|
1042
1090
|
*
|
|
1043
|
-
*
|
|
1091
|
+
* 操作系统发行版类型,推荐使用该字段指定节点操作系统。取值:
|
|
1044
1092
|
*
|
|
1045
1093
|
* - CentOS
|
|
1046
1094
|
* - AliyunLinux
|
|
@@ -1052,7 +1100,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1052
1100
|
* - AliyunLinux3Arm64
|
|
1053
1101
|
* - ContainerOS
|
|
1054
1102
|
*
|
|
1055
|
-
*
|
|
1103
|
+
* 默认值:`CentOS`。
|
|
1056
1104
|
*
|
|
1057
1105
|
* @example
|
|
1058
1106
|
* AliyunLinux
|
|
@@ -1062,19 +1110,19 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1062
1110
|
imageType?: string;
|
|
1063
1111
|
/**
|
|
1064
1112
|
* @remarks
|
|
1065
|
-
* [
|
|
1113
|
+
* 【**该字段已废弃**】创建集群时不支持选择已有节点,如需添加已有节点到集群,请先创建节点池,并调用[AttachInstancesToNodePool](https://help.aliyun.com/document_detail/2667920.html)接口操作。
|
|
1066
1114
|
*
|
|
1067
1115
|
*
|
|
1068
|
-
*
|
|
1116
|
+
* 使用已有节点创建集群时,需要指定ECS实例列表,该实例会作为Worker节点加入集群。
|
|
1069
1117
|
*
|
|
1070
|
-
* >
|
|
1118
|
+
* > 使用已有实例创建集群时,该字段必填。
|
|
1071
1119
|
*
|
|
1072
1120
|
* @deprecated
|
|
1073
1121
|
*/
|
|
1074
1122
|
instances?: string[];
|
|
1075
1123
|
/**
|
|
1076
1124
|
* @remarks
|
|
1077
|
-
*
|
|
1125
|
+
* The IP protocol stack of the cluster.
|
|
1078
1126
|
*
|
|
1079
1127
|
* @example
|
|
1080
1128
|
* 可选值:
|
|
@@ -1084,11 +1132,11 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1084
1132
|
ipStack?: string;
|
|
1085
1133
|
/**
|
|
1086
1134
|
* @remarks
|
|
1087
|
-
*
|
|
1135
|
+
* Specifies whether to use automatic creation of an advanced security group. Takes effect when `security_group_id` is empty.
|
|
1088
1136
|
*
|
|
1089
|
-
* > When using a basic security group, the total number of nodes and Terway Pods in the cluster cannot exceed 2000. Therefore, when creating a Terway network type cluster,
|
|
1137
|
+
* > When using a basic security group, the total number of nodes and Terway Pods in the cluster cannot exceed 2000. Therefore, when creating a Terway network type cluster, we recommend using an advanced security group.
|
|
1090
1138
|
*
|
|
1091
|
-
* - `true`: Create and use an
|
|
1139
|
+
* - `true`: Create and use an advanced security group.
|
|
1092
1140
|
* - `false`: Use a basic security group.
|
|
1093
1141
|
*
|
|
1094
1142
|
* Default value: `true`.
|
|
@@ -1099,14 +1147,14 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1099
1147
|
isEnterpriseSecurityGroup?: boolean;
|
|
1100
1148
|
/**
|
|
1101
1149
|
* @remarks
|
|
1102
|
-
* [
|
|
1150
|
+
* 【**该字段已废弃**】创建集群时不支持选择已有节点,如需添加已有节点到集群,请先创建节点池,并调用[AttachInstancesToNodePool](https://help.aliyun.com/document_detail/2667920.html)接口操作。
|
|
1103
1151
|
*
|
|
1104
|
-
*
|
|
1152
|
+
* 使用已有实例创建集群时,是否保留实例名称。
|
|
1105
1153
|
*
|
|
1106
|
-
* - `true
|
|
1107
|
-
* - `false
|
|
1154
|
+
* - `true`:保留。
|
|
1155
|
+
* - `false`:不保留,会用系统规则进行替换。
|
|
1108
1156
|
*
|
|
1109
|
-
*
|
|
1157
|
+
* 默认值:`true`。
|
|
1110
1158
|
*
|
|
1111
1159
|
* @example
|
|
1112
1160
|
* true
|
|
@@ -1116,9 +1164,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1116
1164
|
keepInstanceName?: boolean;
|
|
1117
1165
|
/**
|
|
1118
1166
|
* @remarks
|
|
1119
|
-
*
|
|
1167
|
+
* **This field is deprecated.** For control plane configurations, use the `key_pair` parameter under `control_plane_config` instead. For node pool configurations, use the `key_pair` parameter under `scaling_group` in `nodepool` instead.
|
|
1120
1168
|
*
|
|
1121
|
-
*
|
|
1169
|
+
* The key pair name. Mutually exclusive with `login_password`.
|
|
1122
1170
|
*
|
|
1123
1171
|
* @example
|
|
1124
1172
|
* security-key
|
|
@@ -1128,11 +1176,11 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1128
1176
|
keyPair?: string;
|
|
1129
1177
|
/**
|
|
1130
1178
|
* @remarks
|
|
1131
|
-
*
|
|
1179
|
+
* The cluster version, which is consistent with the Kubernetes community baseline version. We recommend that you select the latest version. If you do not specify this parameter, the latest version is used by default.
|
|
1132
1180
|
*
|
|
1133
|
-
* You can create clusters of the three
|
|
1181
|
+
* You can create clusters of the latest three versions. Call the [DescribeKubernetesVersionMetadata](https://help.aliyun.com/document_detail/2667899.html) operation to query supported cluster versions.
|
|
1134
1182
|
*
|
|
1135
|
-
* For Kubernetes versions supported by ACK, see [Kubernetes version release overview](https://help.aliyun.com/document_detail/185269.html).
|
|
1183
|
+
* For more information about Kubernetes versions supported by ACK, see [Kubernetes version release overview](https://help.aliyun.com/document_detail/185269.html).
|
|
1136
1184
|
*
|
|
1137
1185
|
* @example
|
|
1138
1186
|
* 1.32.1-aliyun.1
|
|
@@ -1140,8 +1188,8 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1140
1188
|
kubernetesVersion?: string;
|
|
1141
1189
|
/**
|
|
1142
1190
|
* @remarks
|
|
1143
|
-
*
|
|
1144
|
-
* > Ensure that the CLB instance has no other dependencies (such as listeners or backend servers). Shared and
|
|
1191
|
+
* The CLB instance ID for API Server access. When this parameter is specified, automatic creation of the API Server CLB is not performed.
|
|
1192
|
+
* > Ensure that the CLB instance has no other dependencies (such as listeners or backend servers). Shared and Internet-facing CLB instances are not supported.
|
|
1145
1193
|
*
|
|
1146
1194
|
* @example
|
|
1147
1195
|
* lb-wz9t256gqa3vbouk****
|
|
@@ -1149,9 +1197,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1149
1197
|
loadBalancerId?: string;
|
|
1150
1198
|
/**
|
|
1151
1199
|
* @remarks
|
|
1152
|
-
*
|
|
1200
|
+
* 【**该参数已废弃**】CLB按使用量计费,该参数不生效。
|
|
1153
1201
|
*
|
|
1154
|
-
*
|
|
1202
|
+
* 负载均衡规格,取值:
|
|
1155
1203
|
* - slb.s1.small
|
|
1156
1204
|
* - slb.s2.small
|
|
1157
1205
|
* - slb.s2.medium
|
|
@@ -1159,7 +1207,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1159
1207
|
* - slb.s3.medium
|
|
1160
1208
|
* - slb.s3.large
|
|
1161
1209
|
*
|
|
1162
|
-
*
|
|
1210
|
+
* 默认值:`slb.s2.small`。
|
|
1163
1211
|
*
|
|
1164
1212
|
* @example
|
|
1165
1213
|
* slb.s2.small
|
|
@@ -1169,7 +1217,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1169
1217
|
loadBalancerSpec?: string;
|
|
1170
1218
|
/**
|
|
1171
1219
|
* @remarks
|
|
1172
|
-
*
|
|
1220
|
+
* 【**该字段已废弃**】集群开启日志服务,只针对ACK Serverless集群生效,且取值必须是`SLS`。
|
|
1173
1221
|
*
|
|
1174
1222
|
* @example
|
|
1175
1223
|
* SLS
|
|
@@ -1179,9 +1227,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1179
1227
|
loggingType?: string;
|
|
1180
1228
|
/**
|
|
1181
1229
|
* @remarks
|
|
1182
|
-
*
|
|
1230
|
+
* **This field is deprecated.** For control plane configurations, use the `login_password` parameter under `control_plane_config` instead. For node pool configurations, use the `login_password` parameter under `scaling_group` in `nodepool` instead.
|
|
1183
1231
|
*
|
|
1184
|
-
* SSH
|
|
1232
|
+
* The SSH logon password. Mutually exclusive with `key_pair`. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
|
|
1185
1233
|
*
|
|
1186
1234
|
* @example
|
|
1187
1235
|
* null
|
|
@@ -1191,17 +1239,17 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1191
1239
|
loginPassword?: string;
|
|
1192
1240
|
/**
|
|
1193
1241
|
* @remarks
|
|
1194
|
-
*
|
|
1242
|
+
* The cluster maintenance window.
|
|
1195
1243
|
*/
|
|
1196
1244
|
maintenanceWindow?: MaintenanceWindow;
|
|
1197
1245
|
/**
|
|
1198
1246
|
* @remarks
|
|
1199
|
-
*
|
|
1247
|
+
* **This field is deprecated.** For control plane configurations, use the `auto_renew` parameter under `control_plane_config` instead.
|
|
1200
1248
|
*
|
|
1201
|
-
*
|
|
1249
|
+
* Specifies whether to enable auto-renewal for master nodes. This parameter takes effect only when `master_instance_charge_type` is set to `PrePaid`. Valid values:
|
|
1202
1250
|
*
|
|
1203
|
-
* - `true`:
|
|
1204
|
-
* - `false`:
|
|
1251
|
+
* - `true`: Enables auto-renewal.
|
|
1252
|
+
* - `false`: Disables auto-renewal.
|
|
1205
1253
|
*
|
|
1206
1254
|
* Default value: `true`.
|
|
1207
1255
|
*
|
|
@@ -1213,9 +1261,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1213
1261
|
masterAutoRenew?: boolean;
|
|
1214
1262
|
/**
|
|
1215
1263
|
* @remarks
|
|
1216
|
-
*
|
|
1264
|
+
* **This field is deprecated.** For control plane configurations, use the `auto_renew_period` parameter under `control_plane_config` instead.
|
|
1217
1265
|
*
|
|
1218
|
-
*
|
|
1266
|
+
* The auto-renewal period for master nodes. This parameter takes effect and is required when the subscription billing method is selected.
|
|
1219
1267
|
*
|
|
1220
1268
|
* Valid values: {1, 2, 3, 6, 12}.
|
|
1221
1269
|
*
|
|
@@ -1229,9 +1277,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1229
1277
|
masterAutoRenewPeriod?: number;
|
|
1230
1278
|
/**
|
|
1231
1279
|
* @remarks
|
|
1232
|
-
*
|
|
1280
|
+
* **This field is deprecated.** For control plane configurations, use the `size` parameter under `control_plane_config` instead.
|
|
1233
1281
|
*
|
|
1234
|
-
*
|
|
1282
|
+
* The number of master nodes. Valid values: `3` or `5`.
|
|
1235
1283
|
*
|
|
1236
1284
|
* Default value: `3`.
|
|
1237
1285
|
*
|
|
@@ -1243,12 +1291,12 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1243
1291
|
masterCount?: number;
|
|
1244
1292
|
/**
|
|
1245
1293
|
* @remarks
|
|
1246
|
-
*
|
|
1294
|
+
* **This field is deprecated.** For control plane configurations, use the `instance_charge_type` parameter under `control_plane_config` instead.
|
|
1247
1295
|
*
|
|
1248
|
-
*
|
|
1296
|
+
* The billing method for master nodes. Valid values:
|
|
1249
1297
|
*
|
|
1250
|
-
* - `PrePaid`:
|
|
1251
|
-
* - `PostPaid`:
|
|
1298
|
+
* - `PrePaid`: subscription.
|
|
1299
|
+
* - `PostPaid`: pay-as-you-go.
|
|
1252
1300
|
*
|
|
1253
1301
|
* Default value: `PostPaid`.
|
|
1254
1302
|
*
|
|
@@ -1260,18 +1308,18 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1260
1308
|
masterInstanceChargeType?: string;
|
|
1261
1309
|
/**
|
|
1262
1310
|
* @remarks
|
|
1263
|
-
*
|
|
1311
|
+
* **This field is deprecated.** For control plane configurations, use the `instance_types` parameter under `control_plane_config` instead.
|
|
1264
1312
|
*
|
|
1265
|
-
*
|
|
1313
|
+
* The instance types for master nodes. For more information, see [Instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
1266
1314
|
*
|
|
1267
1315
|
* @deprecated
|
|
1268
1316
|
*/
|
|
1269
1317
|
masterInstanceTypes?: string[];
|
|
1270
1318
|
/**
|
|
1271
1319
|
* @remarks
|
|
1272
|
-
*
|
|
1320
|
+
* **This field is deprecated.** For control plane configurations, use the `unit` parameter under `control_plane_config` instead.
|
|
1273
1321
|
*
|
|
1274
|
-
*
|
|
1322
|
+
* The subscription duration for master nodes. This parameter takes effect and is required only when `master_instance_charge_type` is set to `PrePaid`.
|
|
1275
1323
|
*
|
|
1276
1324
|
* Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}.
|
|
1277
1325
|
*
|
|
@@ -1285,11 +1333,11 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1285
1333
|
masterPeriod?: number;
|
|
1286
1334
|
/**
|
|
1287
1335
|
* @remarks
|
|
1288
|
-
*
|
|
1336
|
+
* **This field is deprecated.** For control plane configurations, use the `period_unit` parameter under `control_plane_config` instead.
|
|
1289
1337
|
*
|
|
1290
|
-
*
|
|
1338
|
+
* The billing period unit for master nodes. This parameter is required when the billing method is `PrePaid`.
|
|
1291
1339
|
*
|
|
1292
|
-
* Valid
|
|
1340
|
+
* Valid values: `Month`. Only monthly billing is supported.
|
|
1293
1341
|
*
|
|
1294
1342
|
* @example
|
|
1295
1343
|
* Month
|
|
@@ -1299,15 +1347,15 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1299
1347
|
masterPeriodUnit?: string;
|
|
1300
1348
|
/**
|
|
1301
1349
|
* @remarks
|
|
1302
|
-
*
|
|
1350
|
+
* **This field is deprecated.** For control plane configurations, use the `system_disk_category` parameter under `control_plane_config` instead.
|
|
1303
1351
|
*
|
|
1304
|
-
*
|
|
1352
|
+
* The system cloud disk type for master nodes. Valid values:
|
|
1305
1353
|
*
|
|
1306
|
-
* - `cloud_efficiency`:
|
|
1307
|
-
* - `cloud_ssd`: SSD
|
|
1308
|
-
* - `cloud_essd`: ESSD
|
|
1354
|
+
* - `cloud_efficiency`: ultra cloud disk.
|
|
1355
|
+
* - `cloud_ssd`: standard SSD.
|
|
1356
|
+
* - `cloud_essd`: ESSD.
|
|
1309
1357
|
*
|
|
1310
|
-
* Default value: `cloud_ssd`. The default value may vary
|
|
1358
|
+
* Default value: `cloud_ssd`. The default value may vary by zone.
|
|
1311
1359
|
*
|
|
1312
1360
|
* @example
|
|
1313
1361
|
* cloud_ssd
|
|
@@ -1317,9 +1365,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1317
1365
|
masterSystemDiskCategory?: string;
|
|
1318
1366
|
/**
|
|
1319
1367
|
* @remarks
|
|
1320
|
-
*
|
|
1368
|
+
* **This field is deprecated.** For control plane configurations, use the `system_disk_performance_level` parameter under `control_plane_config` instead.
|
|
1321
1369
|
*
|
|
1322
|
-
*
|
|
1370
|
+
* The performance level of the system cloud disk for cluster master nodes. This parameter takes effect only for ESSD cloud disks. The performance level varies based on the cloud disk size. For more information, see [ESSD cloud disks](https://help.aliyun.com/document_detail/122389.html).
|
|
1323
1371
|
*
|
|
1324
1372
|
* @example
|
|
1325
1373
|
* PL1
|
|
@@ -1329,9 +1377,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1329
1377
|
masterSystemDiskPerformanceLevel?: string;
|
|
1330
1378
|
/**
|
|
1331
1379
|
* @remarks
|
|
1332
|
-
*
|
|
1380
|
+
* **This field is deprecated.** For control plane configurations, use the `system_disk_size` parameter under `control_plane_config` instead.
|
|
1333
1381
|
*
|
|
1334
|
-
*
|
|
1382
|
+
* The system cloud disk size for master nodes. Valid values: [40,500\\]. Unit: GiB.
|
|
1335
1383
|
*
|
|
1336
1384
|
* Default value: `120`.
|
|
1337
1385
|
*
|
|
@@ -1343,9 +1391,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1343
1391
|
masterSystemDiskSize?: number;
|
|
1344
1392
|
/**
|
|
1345
1393
|
* @remarks
|
|
1346
|
-
*
|
|
1394
|
+
* **This field is deprecated.** For control plane configurations, use the `system_disk_snapshot_policy_id` parameter under `control_plane_config` instead.
|
|
1347
1395
|
*
|
|
1348
|
-
*
|
|
1396
|
+
* The automatic snapshot policy ID for the master node system cloud disk.
|
|
1349
1397
|
*
|
|
1350
1398
|
* @example
|
|
1351
1399
|
* sp-2zej1nogjvovnz4z****
|
|
@@ -1355,18 +1403,18 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1355
1403
|
masterSystemDiskSnapshotPolicyId?: string;
|
|
1356
1404
|
/**
|
|
1357
1405
|
* @remarks
|
|
1358
|
-
*
|
|
1406
|
+
* **This field is deprecated.** Use the `vswitch_ids` parameter instead.
|
|
1359
1407
|
*
|
|
1360
|
-
*
|
|
1408
|
+
* The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3\\]. To ensure high availability, select three vSwitches distributed across different zones.
|
|
1361
1409
|
*
|
|
1362
|
-
* The number of specified instance types must
|
|
1410
|
+
* The number of specified instance types must match the value of `master_count` and correspond one-to-one with the elements in `master_vswitch_ids`.
|
|
1363
1411
|
*
|
|
1364
1412
|
* @deprecated
|
|
1365
1413
|
*/
|
|
1366
1414
|
masterVswitchIds?: string[];
|
|
1367
1415
|
/**
|
|
1368
1416
|
* @remarks
|
|
1369
|
-
*
|
|
1417
|
+
* The custom cluster name. The name must be 1 to 63 characters in length and can contain digits, Chinese characters, letters, and hyphens (-). It cannot start with a hyphen (-).
|
|
1370
1418
|
*
|
|
1371
1419
|
* This parameter is required.
|
|
1372
1420
|
*
|
|
@@ -1376,7 +1424,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1376
1424
|
name?: string;
|
|
1377
1425
|
/**
|
|
1378
1426
|
* @remarks
|
|
1379
|
-
*
|
|
1427
|
+
* 【**该字段已废弃**】请使用参数`snat_entry`代替。
|
|
1380
1428
|
*
|
|
1381
1429
|
* @example
|
|
1382
1430
|
* true
|
|
@@ -1386,7 +1434,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1386
1434
|
natGateway?: boolean;
|
|
1387
1435
|
/**
|
|
1388
1436
|
* @remarks
|
|
1389
|
-
*
|
|
1437
|
+
* The number of IP addresses per node, determined by specifying the network CIDR mask. Only takes effect for Flannel network type clusters.
|
|
1390
1438
|
*
|
|
1391
1439
|
* Default value: `26`.
|
|
1392
1440
|
*
|
|
@@ -1396,7 +1444,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1396
1444
|
nodeCidrMask?: string;
|
|
1397
1445
|
/**
|
|
1398
1446
|
* @remarks
|
|
1399
|
-
*
|
|
1447
|
+
* **This field is deprecated.** For node pool configurations, use the `node_name_mode` parameter under `kubernetes_config` in `nodepool` instead.
|
|
1400
1448
|
*
|
|
1401
1449
|
* @example
|
|
1402
1450
|
* null
|
|
@@ -1406,7 +1454,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1406
1454
|
nodeNameMode?: string;
|
|
1407
1455
|
/**
|
|
1408
1456
|
* @remarks
|
|
1409
|
-
*
|
|
1457
|
+
* The node service port range. Valid values: [30000,65535\\].
|
|
1410
1458
|
*
|
|
1411
1459
|
* Default value: `30000-32767`.
|
|
1412
1460
|
*
|
|
@@ -1418,14 +1466,14 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1418
1466
|
nodePortRange?: string;
|
|
1419
1467
|
/**
|
|
1420
1468
|
* @remarks
|
|
1421
|
-
*
|
|
1469
|
+
* The list of node pools.
|
|
1422
1470
|
*/
|
|
1423
1471
|
nodepools?: Nodepool[];
|
|
1424
1472
|
/**
|
|
1425
1473
|
* @remarks
|
|
1426
|
-
*
|
|
1474
|
+
* **This field is deprecated.** For node pool configurations, use the `desired_size` parameter under `scaling_group` in `nodepool` instead.
|
|
1427
1475
|
*
|
|
1428
|
-
*
|
|
1476
|
+
* The number of worker nodes. Valid values: [0, 100\\].
|
|
1429
1477
|
*
|
|
1430
1478
|
* @example
|
|
1431
1479
|
* 3
|
|
@@ -1435,14 +1483,14 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1435
1483
|
numOfNodes?: number;
|
|
1436
1484
|
/**
|
|
1437
1485
|
* @remarks
|
|
1438
|
-
*
|
|
1486
|
+
* The cluster automatic O&M policy.
|
|
1439
1487
|
*/
|
|
1440
1488
|
operationPolicy?: CreateClusterRequestOperationPolicy;
|
|
1441
1489
|
/**
|
|
1442
1490
|
* @remarks
|
|
1443
|
-
*
|
|
1491
|
+
* **This field is deprecated.** For control plane node configurations, use the `image_type` parameter under `control_plane_config` instead. For node pool configurations, use the `image_type` parameter under `scaling_group` in `nodepool` instead.
|
|
1444
1492
|
*
|
|
1445
|
-
*
|
|
1493
|
+
* The operating system platform type. Valid values:
|
|
1446
1494
|
* - Windows
|
|
1447
1495
|
* - Linux
|
|
1448
1496
|
*
|
|
@@ -1456,15 +1504,15 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1456
1504
|
osType?: string;
|
|
1457
1505
|
/**
|
|
1458
1506
|
* @remarks
|
|
1459
|
-
*
|
|
1507
|
+
* 【**该字段已废弃**】
|
|
1460
1508
|
*
|
|
1461
|
-
*
|
|
1509
|
+
* 购买时长。包年包月时长,当charge_type取值为PrePaid时才生效,且为必选值。
|
|
1462
1510
|
*
|
|
1463
|
-
*
|
|
1511
|
+
* 取值范围:{1, 2, 3, 6, 12, 24, 36, 48, 60}。
|
|
1464
1512
|
*
|
|
1465
|
-
*
|
|
1513
|
+
* 默认值:1。
|
|
1466
1514
|
*
|
|
1467
|
-
*
|
|
1515
|
+
* 该字段于2024年10月15日存在变更,更多信息,请参见[关于集群创建接口CreateCluster参数行为变更的公告](https://help.aliyun.com/document_detail/2849194.html)。
|
|
1468
1516
|
*
|
|
1469
1517
|
* @example
|
|
1470
1518
|
* 1
|
|
@@ -1474,13 +1522,13 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1474
1522
|
period?: number;
|
|
1475
1523
|
/**
|
|
1476
1524
|
* @remarks
|
|
1477
|
-
*
|
|
1525
|
+
* 【**该字段已废弃**】
|
|
1478
1526
|
*
|
|
1479
|
-
*
|
|
1527
|
+
* 付费周期,当付费类型为PrePaid的时候,需要指定周期。
|
|
1480
1528
|
*
|
|
1481
|
-
*
|
|
1529
|
+
* 取值:Month,当前仅支持以月为周期。
|
|
1482
1530
|
*
|
|
1483
|
-
*
|
|
1531
|
+
* 该字段于2024年10月15日存在变更,更多信息,请参见[关于集群创建接口CreateCluster参数行为变更的公告](https://help.aliyun.com/document_detail/2849194.html)。
|
|
1484
1532
|
*
|
|
1485
1533
|
* @example
|
|
1486
1534
|
* Month
|
|
@@ -1490,9 +1538,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1490
1538
|
periodUnit?: string;
|
|
1491
1539
|
/**
|
|
1492
1540
|
* @remarks
|
|
1493
|
-
*
|
|
1541
|
+
* **This field is deprecated.** For node pool configurations, use the `platform` parameter under `scaling_group` in `nodepool` instead.
|
|
1494
1542
|
*
|
|
1495
|
-
*
|
|
1543
|
+
* The operating system distribution. Valid values:
|
|
1496
1544
|
*
|
|
1497
1545
|
* - CentOS
|
|
1498
1546
|
* - AliyunLinux
|
|
@@ -1511,19 +1559,19 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1511
1559
|
platform?: string;
|
|
1512
1560
|
/**
|
|
1513
1561
|
* @remarks
|
|
1514
|
-
*
|
|
1515
|
-
* > The CIDR mask of Pod
|
|
1562
|
+
* **This field is deprecated.** When you select Terway as the network plugin, you must assign vSwitches for Pod IP allocation. Each Pod vSwitch corresponds to a worker node vSwitch, and the Pod vSwitch and the worker node vSwitch must be in the same zone.
|
|
1563
|
+
* > The CIDR block mask of the Pod vSwitch should not exceed 19 and must not exceed 25. Otherwise, the number of Pod IP addresses available in the cluster network is very limited, which affects normal cluster usage.
|
|
1516
1564
|
*
|
|
1517
1565
|
* @deprecated
|
|
1518
1566
|
*/
|
|
1519
1567
|
podVswitchIds?: string[];
|
|
1520
1568
|
/**
|
|
1521
1569
|
* @remarks
|
|
1522
|
-
* When `cluster_type`
|
|
1523
|
-
* - `Default`: ACK managed cluster, including ACK
|
|
1524
|
-
* - `Edge`: ACK Edge cluster, including ACK Edge
|
|
1525
|
-
* - `Serverless`: ACK Serverless cluster, including ACK Serverless
|
|
1526
|
-
* - `Lingjun`: ACK Lingjun cluster, available in Pro
|
|
1570
|
+
* When you set `cluster_type` to `ManagedKubernetes` (ACK managed cluster types), you can further specify the cluster subtype.
|
|
1571
|
+
* - `Default`: ACK managed cluster, including ACK clusters (Pro and Basic).
|
|
1572
|
+
* - `Edge`: ACK Edge cluster, including ACK Edge clusters (Pro and Basic).
|
|
1573
|
+
* - `Serverless`: ACK Serverless cluster, including ACK Serverless clusters (Pro and Basic).
|
|
1574
|
+
* - `Lingjun`: ACK Lingjun cluster, available in Pro.
|
|
1527
1575
|
*
|
|
1528
1576
|
* @example
|
|
1529
1577
|
* Default
|
|
@@ -1531,12 +1579,12 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1531
1579
|
profile?: string;
|
|
1532
1580
|
/**
|
|
1533
1581
|
* @remarks
|
|
1534
|
-
* kube-proxy mode
|
|
1582
|
+
* The kube-proxy mode.
|
|
1535
1583
|
*
|
|
1536
|
-
* - `iptables`: A mature and stable kube-proxy mode.
|
|
1537
|
-
* - `ipvs`: A high-performance kube-proxy mode.
|
|
1538
|
-
* - `nftables`:
|
|
1539
|
-
* Only supported for clusters
|
|
1584
|
+
* - `iptables`: A mature and stable kube-proxy mode. Service discovery and load balancing for Kubernetes Services are configured using iptables rules. However, performance is average and significantly affected by scale. Suitable for clusters with a small number of Services.
|
|
1585
|
+
* - `ipvs`: A high-performance kube-proxy mode. Service discovery and load balancing for Kubernetes Services are configured using the Linux IPVS module. Suitable for clusters with a large number of Services that require high-performance load balancing.
|
|
1586
|
+
* - `nftables`: A next-generation kube-proxy mode that implements Service discovery and load balancing based on Linux nftables, serving as a modern replacement for iptables. Compared to iptables, nftables offers better network performance, more efficient rule updates, and improved behavior in large-scale Service scenarios.
|
|
1587
|
+
* Only supported for clusters running version 1.35 or later. The Kubernetes community deprecated IPVS starting from version 1.35. For new clusters, use nftables for longer-term community support.
|
|
1540
1588
|
*
|
|
1541
1589
|
* Default value: `ipvs`.
|
|
1542
1590
|
*
|
|
@@ -1546,16 +1594,16 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1546
1594
|
proxyMode?: string;
|
|
1547
1595
|
/**
|
|
1548
1596
|
* @remarks
|
|
1549
|
-
*
|
|
1597
|
+
* **This field is deprecated.** For node pool configurations, use the `rds_instances` parameter under `scaling_group` in `nodepool` instead.
|
|
1550
1598
|
*
|
|
1551
|
-
*
|
|
1599
|
+
* The list of RDS instances. Select the RDS instances that you want to add to the whitelist. Go to the RDS console to add the container pod CIDR block and node CIDR block. Configuring RDS instances may fail if the instances are not in the running state.
|
|
1552
1600
|
*
|
|
1553
1601
|
* @deprecated
|
|
1554
1602
|
*/
|
|
1555
1603
|
rdsInstances?: string[];
|
|
1556
1604
|
/**
|
|
1557
1605
|
* @remarks
|
|
1558
|
-
* The region ID
|
|
1606
|
+
* The region ID of the cluster. For more information, see [Regions supported by Container Service](https://help.aliyun.com/document_detail/216938.html).
|
|
1559
1607
|
*
|
|
1560
1608
|
* This parameter is required.
|
|
1561
1609
|
*
|
|
@@ -1565,7 +1613,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1565
1613
|
regionId?: string;
|
|
1566
1614
|
/**
|
|
1567
1615
|
* @remarks
|
|
1568
|
-
* The resource group ID
|
|
1616
|
+
* The resource group ID of the cluster, used to isolate different resources.
|
|
1569
1617
|
*
|
|
1570
1618
|
* @example
|
|
1571
1619
|
* rg-acfm3mkrure****
|
|
@@ -1573,22 +1621,22 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1573
1621
|
resourceGroupId?: string;
|
|
1574
1622
|
/**
|
|
1575
1623
|
* @remarks
|
|
1576
|
-
* RRSA
|
|
1624
|
+
* The RRSA configuration.
|
|
1577
1625
|
*/
|
|
1578
1626
|
rrsaConfig?: CreateClusterRequestRrsaConfig;
|
|
1579
1627
|
/**
|
|
1580
1628
|
* @remarks
|
|
1581
|
-
*
|
|
1629
|
+
* The container runtime of the cluster. Supported runtimes include containerd, sandboxed containers, and Docker.
|
|
1582
1630
|
* > Kubernetes 1.24 no longer supports Docker as a built-in container runtime.
|
|
1583
1631
|
*
|
|
1584
|
-
* For more information, see [Comparison
|
|
1632
|
+
* For more information, see [Comparison among Docker, containerd, and sandboxed container runtimes](https://help.aliyun.com/document_detail/160313.html).
|
|
1585
1633
|
*
|
|
1586
1634
|
* @deprecated
|
|
1587
1635
|
*/
|
|
1588
1636
|
runtime?: Runtime;
|
|
1589
1637
|
/**
|
|
1590
1638
|
* @remarks
|
|
1591
|
-
*
|
|
1639
|
+
* The security group ID. Specify this parameter when creating a cluster with an existing security group. Mutually exclusive with `is_enterprise_security_group`. Cluster nodes are automatically added to this security group.
|
|
1592
1640
|
*
|
|
1593
1641
|
* @example
|
|
1594
1642
|
* sg-bp1bdue0qc1g7k****
|
|
@@ -1596,12 +1644,12 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1596
1644
|
securityGroupId?: string;
|
|
1597
1645
|
/**
|
|
1598
1646
|
* @remarks
|
|
1599
|
-
*
|
|
1647
|
+
* **This field is deprecated.** For control plane configurations, use the `security_hardening_os` parameter under `control_plane_config` instead. For node pool configurations, use the `security_hardening_os` parameter under `scaling_group` in `nodepool` instead.
|
|
1600
1648
|
*
|
|
1601
1649
|
* Alibaba Cloud OS security hardening. Valid values:
|
|
1602
1650
|
*
|
|
1603
|
-
* - `true`:
|
|
1604
|
-
* - `false`:
|
|
1651
|
+
* - `true`: Enables Alibaba Cloud OS security hardening.
|
|
1652
|
+
* - `false`: Does not enable Alibaba Cloud OS security hardening.
|
|
1605
1653
|
*
|
|
1606
1654
|
* Default value: `false`.
|
|
1607
1655
|
*
|
|
@@ -1613,9 +1661,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1613
1661
|
securityHardeningOs?: boolean;
|
|
1614
1662
|
/**
|
|
1615
1663
|
* @remarks
|
|
1616
|
-
* ServiceAccount is the access credential for communication between
|
|
1664
|
+
* A ServiceAccount is the access credential for communication between a Pod and the cluster API Server. The `service-account-issuer` is the issuer identity in the `serviceaccount token`, which is the `iss` field in the `token payload`.
|
|
1617
1665
|
*
|
|
1618
|
-
* For more
|
|
1666
|
+
* For more information about `ServiceAccount`, see [Deploy service account token volume projection](https://help.aliyun.com/document_detail/160384.html).
|
|
1619
1667
|
*
|
|
1620
1668
|
* @example
|
|
1621
1669
|
* kubernetes.default.svc
|
|
@@ -1623,7 +1671,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1623
1671
|
serviceAccountIssuer?: string;
|
|
1624
1672
|
/**
|
|
1625
1673
|
* @remarks
|
|
1626
|
-
* Service network CIDR block. Valid ranges: 10.0.0.0/16-24, 172.16-31.0.0/16-24, 192.168.0.0/16-24.
|
|
1674
|
+
* The Service network CIDR block. Valid ranges: 10.0.0.0/16-24, 172.16-31.0.0/16-24, 192.168.0.0/16-24. It cannot overlap with the VPC CIDR block 10.1.0.0/21 or CIDR blocks used by existing Kubernetes clusters in the VPC. It cannot be modified after creation.
|
|
1627
1675
|
*
|
|
1628
1676
|
* Default value: 172.19.0.0/20.
|
|
1629
1677
|
*
|
|
@@ -1633,24 +1681,24 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1633
1681
|
serviceCidr?: string;
|
|
1634
1682
|
/**
|
|
1635
1683
|
* @remarks
|
|
1636
|
-
*
|
|
1684
|
+
* 【**该字段已废弃**】集群内服务发现类型,用于在`ACK Serverless`集群中指定服务发现方式。
|
|
1637
1685
|
*
|
|
1638
|
-
* - `CoreDNS
|
|
1639
|
-
* - `PrivateZone
|
|
1686
|
+
* - `CoreDNS`:使用Kubernetes原生标准服务发现组件CoreDNS,需要在集群部署一组容器用于DNS解析。默认采用两个0.25 Core 512 MiB规格的ECI实例。
|
|
1687
|
+
* - `PrivateZone`:使用阿里云PrivateZone产品提供服务发现能力,需要开启PrivateZone服务。
|
|
1640
1688
|
*
|
|
1641
|
-
*
|
|
1689
|
+
* 默认值:不开启。
|
|
1642
1690
|
*
|
|
1643
1691
|
* @deprecated
|
|
1644
1692
|
*/
|
|
1645
1693
|
serviceDiscoveryTypes?: string[];
|
|
1646
1694
|
/**
|
|
1647
1695
|
* @remarks
|
|
1648
|
-
*
|
|
1696
|
+
* Settings for configuring SNAT for the VPC. Valid values:
|
|
1649
1697
|
*
|
|
1650
|
-
* - `true`:
|
|
1651
|
-
* - `false`: Do not create a NAT gateway or SNAT rules. Nodes and applications in the cluster
|
|
1698
|
+
* - `true`: Use automatic creation of a NAT gateway and configure SNAT rules. Set this to `true` if nodes and applications in the cluster need to access the Internet.
|
|
1699
|
+
* - `false`: Do not create a NAT gateway or SNAT rules. Nodes and applications in the cluster cannot access the Internet.
|
|
1652
1700
|
*
|
|
1653
|
-
* > If not enabled during cluster creation and
|
|
1701
|
+
* > If this is not enabled during cluster creation and Internet access is needed later, you can [manually enable it](https://help.aliyun.com/document_detail/178480.html).
|
|
1654
1702
|
*
|
|
1655
1703
|
* Default value: `false`.
|
|
1656
1704
|
*
|
|
@@ -1660,13 +1708,13 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1660
1708
|
snatEntry?: boolean;
|
|
1661
1709
|
/**
|
|
1662
1710
|
* @remarks
|
|
1663
|
-
*
|
|
1711
|
+
* **This field is deprecated.** For control plane node configurations, use the `soc_enabled` parameter under `control_plane_config` instead. For node pool configurations, use the `soc_enabled` parameter under `scaling_group` in `nodepool` instead.
|
|
1664
1712
|
*
|
|
1665
|
-
*
|
|
1713
|
+
* MLPS 2.0 security hardening. For more information, see [ACK MLPS 2.0 security hardening usage instructions](https://help.aliyun.com/document_detail/196148.html).
|
|
1666
1714
|
*
|
|
1667
1715
|
* Valid values:
|
|
1668
|
-
* - `true`:
|
|
1669
|
-
* - `false`:
|
|
1716
|
+
* - `true`: Enables MLPS 2.0 security hardening.
|
|
1717
|
+
* - `false`: Does not enable MLPS 2.0 security hardening.
|
|
1670
1718
|
*
|
|
1671
1719
|
* Default value: `false`.
|
|
1672
1720
|
*
|
|
@@ -1678,9 +1726,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1678
1726
|
socEnabled?: boolean;
|
|
1679
1727
|
/**
|
|
1680
1728
|
* @remarks
|
|
1681
|
-
*
|
|
1729
|
+
* Specifies whether to enable public SSH logon. Used to log on to the master nodes of ACK dedicated clusters. This parameter does not take effect for managed clusters.
|
|
1682
1730
|
* - `true`: Enable.
|
|
1683
|
-
* - `false`:
|
|
1731
|
+
* - `false`: Do not enable.
|
|
1684
1732
|
*
|
|
1685
1733
|
* Default value: `false`.
|
|
1686
1734
|
*
|
|
@@ -1690,28 +1738,28 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1690
1738
|
sshFlags?: boolean;
|
|
1691
1739
|
/**
|
|
1692
1740
|
* @remarks
|
|
1693
|
-
*
|
|
1741
|
+
* The node tags. Tag definition rules:
|
|
1694
1742
|
*
|
|
1695
|
-
* - Tags
|
|
1696
|
-
* - Tag keys cannot be duplicated
|
|
1743
|
+
* - Tags are composed of case-sensitive key-value pairs. You can set up to 20 tags.
|
|
1744
|
+
* - Tag keys cannot be duplicated and can be up to 64 characters in length. Tag values can be empty and can be up to 128 characters in length. Tag keys and tag values cannot start with "aliyun", "acs:", "https://", or "http://". For more information, see [Labels and Selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set).
|
|
1697
1745
|
*/
|
|
1698
1746
|
tags?: Tag[];
|
|
1699
1747
|
/**
|
|
1700
1748
|
* @remarks
|
|
1701
|
-
*
|
|
1749
|
+
* **This field is deprecated.** For node pool configurations, use the `taints` parameter under `kubernetes_config` in `nodepool` instead.
|
|
1702
1750
|
*
|
|
1703
|
-
*
|
|
1751
|
+
* The node taint information. Taints and tolerations work together to prevent pods from being scheduled to inappropriate nodes. For more information, see [taint-and-toleration](https://kubernetes.io/zh/docs/concepts/scheduling-eviction/taint-and-toleration/).
|
|
1704
1752
|
*
|
|
1705
1753
|
* @deprecated
|
|
1706
1754
|
*/
|
|
1707
1755
|
taints?: Taint[];
|
|
1708
1756
|
/**
|
|
1709
1757
|
* @remarks
|
|
1710
|
-
*
|
|
1758
|
+
* 【**该字段已废弃**】集群创建失败时默认不会进行回滚,您需要自行清理创建失败的集群。
|
|
1711
1759
|
*
|
|
1712
|
-
*
|
|
1760
|
+
* 集群创建超时时间,单位分钟。
|
|
1713
1761
|
*
|
|
1714
|
-
*
|
|
1762
|
+
* 默认值:`60`。
|
|
1715
1763
|
*
|
|
1716
1764
|
* @example
|
|
1717
1765
|
* 60
|
|
@@ -1721,7 +1769,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1721
1769
|
timeoutMins?: number;
|
|
1722
1770
|
/**
|
|
1723
1771
|
* @remarks
|
|
1724
|
-
* The
|
|
1772
|
+
* The time zone used by the cluster. See [Supported time zones](https://help.aliyun.com/document_detail/354879.html).
|
|
1725
1773
|
*
|
|
1726
1774
|
* @example
|
|
1727
1775
|
* Asia/Shanghai
|
|
@@ -1729,7 +1777,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1729
1777
|
timezone?: string;
|
|
1730
1778
|
/**
|
|
1731
1779
|
* @remarks
|
|
1732
|
-
*
|
|
1780
|
+
* The custom cluster CA.
|
|
1733
1781
|
*
|
|
1734
1782
|
* @example
|
|
1735
1783
|
* -----BEGIN CERTIFICATE-----****
|
|
@@ -1737,7 +1785,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1737
1785
|
userCa?: string;
|
|
1738
1786
|
/**
|
|
1739
1787
|
* @remarks
|
|
1740
|
-
*
|
|
1788
|
+
* **This field is deprecated.** The custom node data.
|
|
1741
1789
|
*
|
|
1742
1790
|
* @example
|
|
1743
1791
|
* IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD****
|
|
@@ -1747,7 +1795,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1747
1795
|
userData?: string;
|
|
1748
1796
|
/**
|
|
1749
1797
|
* @remarks
|
|
1750
|
-
* The VPC used by the cluster.
|
|
1798
|
+
* The VPC used by the cluster. You must provide a VPC when creating a cluster.
|
|
1751
1799
|
*
|
|
1752
1800
|
* @example
|
|
1753
1801
|
* vpc-2zeik9h3ahvv2zz95****
|
|
@@ -1755,19 +1803,19 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1755
1803
|
vpcid?: string;
|
|
1756
1804
|
/**
|
|
1757
1805
|
* @remarks
|
|
1758
|
-
* vSwitches for cluster nodes. This field is required when creating a zero-node managed cluster.
|
|
1806
|
+
* The vSwitches for cluster nodes. This field is required when creating a zero-node managed cluster.
|
|
1759
1807
|
*/
|
|
1760
1808
|
vswitchIds?: string[];
|
|
1761
1809
|
/**
|
|
1762
1810
|
* @remarks
|
|
1763
|
-
*
|
|
1811
|
+
* 【**该字段已废弃**】节点池配置请使用`nodepool`中`scaling_group`下的`auto_renew`参数代替。
|
|
1764
1812
|
*
|
|
1765
|
-
*
|
|
1813
|
+
* Worker节点是否开启自动续费,当`worker_instance_charge_type`取值为`PrePaid`时才生效,取值:
|
|
1766
1814
|
*
|
|
1767
|
-
* - `true
|
|
1768
|
-
* - `false
|
|
1815
|
+
* - `true`:自动续费。
|
|
1816
|
+
* - `false`:不自动续费。
|
|
1769
1817
|
*
|
|
1770
|
-
*
|
|
1818
|
+
* 默认值:`true`。
|
|
1771
1819
|
*
|
|
1772
1820
|
* @example
|
|
1773
1821
|
* true
|
|
@@ -1777,12 +1825,12 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1777
1825
|
workerAutoRenew?: boolean;
|
|
1778
1826
|
/**
|
|
1779
1827
|
* @remarks
|
|
1780
|
-
*
|
|
1828
|
+
* 【**该字段已废弃**】节点池配置请使用`nodepool`中`scaling_group`下的`auto_renew_period`参数代替。
|
|
1781
1829
|
*
|
|
1782
1830
|
*
|
|
1783
|
-
* Worker
|
|
1831
|
+
* Worker节点自动续费周期,当选择包年包月付费类型时才生效,且为必选值。
|
|
1784
1832
|
*
|
|
1785
|
-
*
|
|
1833
|
+
* 取值范围:{1, 2, 3, 6, 12}。
|
|
1786
1834
|
*
|
|
1787
1835
|
* @example
|
|
1788
1836
|
* 1
|
|
@@ -1792,23 +1840,23 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1792
1840
|
workerAutoRenewPeriod?: number;
|
|
1793
1841
|
/**
|
|
1794
1842
|
* @remarks
|
|
1795
|
-
*
|
|
1843
|
+
* **This field is deprecated.** For node pool configurations, use the `data_disks` parameter under `scaling_group` in `nodepool` instead.
|
|
1796
1844
|
*
|
|
1797
|
-
*
|
|
1845
|
+
* The data cloud disk type, size, and other configurations for worker nodes.
|
|
1798
1846
|
*
|
|
1799
1847
|
* @deprecated
|
|
1800
1848
|
*/
|
|
1801
1849
|
workerDataDisks?: CreateClusterRequestWorkerDataDisks[];
|
|
1802
1850
|
/**
|
|
1803
1851
|
* @remarks
|
|
1804
|
-
*
|
|
1852
|
+
* **This field is deprecated.** For node pool configurations, use the `instance_charge_type` parameter under `scaling_group` in `nodepool` instead.
|
|
1805
1853
|
*
|
|
1806
|
-
*
|
|
1854
|
+
* The billing method for worker nodes. Valid values:
|
|
1807
1855
|
*
|
|
1808
|
-
* - `PrePaid`:
|
|
1809
|
-
* - `PostPaid`:
|
|
1856
|
+
* - `PrePaid`: subscription.
|
|
1857
|
+
* - `PostPaid`: pay-as-you-go.
|
|
1810
1858
|
*
|
|
1811
|
-
* Default value:
|
|
1859
|
+
* Default value: pay-as-you-go.
|
|
1812
1860
|
*
|
|
1813
1861
|
* @example
|
|
1814
1862
|
* PrePaid
|
|
@@ -1818,22 +1866,18 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1818
1866
|
workerInstanceChargeType?: string;
|
|
1819
1867
|
/**
|
|
1820
1868
|
* @remarks
|
|
1821
|
-
*
|
|
1869
|
+
* **This field is deprecated.** For node pool configurations, use the `instance_types` parameter under `scaling_group` in `nodepool` instead.
|
|
1822
1870
|
*
|
|
1823
|
-
*
|
|
1871
|
+
* The instance configuration for worker nodes.
|
|
1824
1872
|
*
|
|
1825
1873
|
* @deprecated
|
|
1826
1874
|
*/
|
|
1827
1875
|
workerInstanceTypes?: string[];
|
|
1828
1876
|
/**
|
|
1829
1877
|
* @remarks
|
|
1830
|
-
*
|
|
1878
|
+
* **This field is deprecated.** For node pool configurations, use the `period` parameter under `scaling_group` in `nodepool` instead.
|
|
1831
1879
|
*
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1834
|
-
* Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}.
|
|
1835
|
-
*
|
|
1836
|
-
* Default value: 1.
|
|
1880
|
+
* The subscription duration for worker nodes. This parameter takes effect and is required only when `worker_
|
|
1837
1881
|
*
|
|
1838
1882
|
* @example
|
|
1839
1883
|
* 1
|
|
@@ -1843,11 +1887,11 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1843
1887
|
workerPeriod?: number;
|
|
1844
1888
|
/**
|
|
1845
1889
|
* @remarks
|
|
1846
|
-
*
|
|
1890
|
+
* **This field is deprecated.** For node pool configurations, use the `period_unit` parameter under `scaling_group` in `nodepool` instead.
|
|
1847
1891
|
*
|
|
1848
|
-
*
|
|
1892
|
+
* The billing period unit for worker nodes. This parameter is required when the billing method is `PrePaid`.
|
|
1849
1893
|
*
|
|
1850
|
-
* Valid
|
|
1894
|
+
* Valid values: `Month`. Only monthly billing is supported.
|
|
1851
1895
|
*
|
|
1852
1896
|
* @example
|
|
1853
1897
|
* Month
|
|
@@ -1857,14 +1901,14 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1857
1901
|
workerPeriodUnit?: string;
|
|
1858
1902
|
/**
|
|
1859
1903
|
* @remarks
|
|
1860
|
-
*
|
|
1904
|
+
* **This field is deprecated.** For node pool configurations, use the `system_disk_category` parameter under `scaling_group` in `nodepool` instead.
|
|
1861
1905
|
*
|
|
1862
|
-
*
|
|
1906
|
+
* The system cloud disk type for worker nodes. For more information, see [Block storage overview](https://help.aliyun.com/document_detail/63136.html).
|
|
1863
1907
|
*
|
|
1864
1908
|
* Valid values:
|
|
1865
1909
|
*
|
|
1866
|
-
* - `cloud_efficiency`:
|
|
1867
|
-
* - `cloud_ssd`: SSD
|
|
1910
|
+
* - `cloud_efficiency`: ultra cloud disk.
|
|
1911
|
+
* - `cloud_ssd`: standard SSD.
|
|
1868
1912
|
*
|
|
1869
1913
|
*
|
|
1870
1914
|
* Default value: `cloud_ssd`.
|
|
@@ -1877,9 +1921,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1877
1921
|
workerSystemDiskCategory?: string;
|
|
1878
1922
|
/**
|
|
1879
1923
|
* @remarks
|
|
1880
|
-
*
|
|
1924
|
+
* **This field is deprecated.** For node pool configurations, use the `system_disk_performance_level` parameter under `scaling_group` in `nodepool` instead.
|
|
1881
1925
|
*
|
|
1882
|
-
* When the system disk is an ESSD
|
|
1926
|
+
* When the system cloud disk is an ESSD, you can set the performance level (PL) of the ESSD. For more information, see [ESSD cloud disks](https://help.aliyun.com/document_detail/122389.html).
|
|
1883
1927
|
*
|
|
1884
1928
|
* Valid values:
|
|
1885
1929
|
*
|
|
@@ -1896,11 +1940,11 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1896
1940
|
workerSystemDiskPerformanceLevel?: string;
|
|
1897
1941
|
/**
|
|
1898
1942
|
* @remarks
|
|
1899
|
-
*
|
|
1943
|
+
* **This field is deprecated.** For node pool configurations, use the `system_disk_size` parameter under `scaling_group` in `nodepool` instead.
|
|
1900
1944
|
*
|
|
1901
|
-
*
|
|
1945
|
+
* The system cloud disk size for worker nodes. Unit: GiB.
|
|
1902
1946
|
*
|
|
1903
|
-
* Valid values: [40,
|
|
1947
|
+
* Valid values: [40,500\\].
|
|
1904
1948
|
*
|
|
1905
1949
|
* The value must be greater than or equal to max{40, ImageSize}.
|
|
1906
1950
|
*
|
|
@@ -1914,9 +1958,9 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1914
1958
|
workerSystemDiskSize?: number;
|
|
1915
1959
|
/**
|
|
1916
1960
|
* @remarks
|
|
1917
|
-
*
|
|
1961
|
+
* **This field is deprecated.** For node pool configurations, use the `system_disk_snapshot_policy_id` parameter under `scaling_group` in `nodepool` instead.
|
|
1918
1962
|
*
|
|
1919
|
-
*
|
|
1963
|
+
* The automatic snapshot policy ID for the worker node system cloud disk.
|
|
1920
1964
|
*
|
|
1921
1965
|
* @example
|
|
1922
1966
|
* sp-2zej1nogjvovnz4z****
|
|
@@ -1926,22 +1970,22 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1926
1970
|
workerSystemDiskSnapshotPolicyId?: string;
|
|
1927
1971
|
/**
|
|
1928
1972
|
* @remarks
|
|
1929
|
-
*
|
|
1973
|
+
* **This field is deprecated.** For node pool configurations, use the `vswitch_ids` parameter under `scaling_group` in `nodepool` instead.
|
|
1930
1974
|
*
|
|
1931
|
-
*
|
|
1975
|
+
* The list of vSwitches used by cluster nodes. Each node corresponds to one value.
|
|
1932
1976
|
*
|
|
1933
|
-
* When creating a zero-node managed cluster, the `worker_vswitch_ids` field is not required, but
|
|
1977
|
+
* When creating a zero-node managed cluster, the `worker_vswitch_ids` field is not required, but you must provide `vswitch_ids`.
|
|
1934
1978
|
*
|
|
1935
1979
|
* @deprecated
|
|
1936
1980
|
*/
|
|
1937
1981
|
workerVswitchIds?: string[];
|
|
1938
1982
|
/**
|
|
1939
1983
|
* @remarks
|
|
1940
|
-
*
|
|
1984
|
+
* 【**该字段已废弃**】请使用`zone_ids`参数代替。
|
|
1941
1985
|
*
|
|
1942
|
-
*
|
|
1986
|
+
* 集群所属地域的可用区ID。此参数为ACK托管类的集群特有参数。
|
|
1943
1987
|
*
|
|
1944
|
-
*
|
|
1988
|
+
* 当创建ACK托管类的集群时,如果未指定`vpc_id`和`vswitch_ids`,必须为集群指定`zone_id`,用于自动在该可用区创建VPC网络资源;指定`vpc_id`和`vswitch_ids`时,该参数无效。
|
|
1945
1989
|
*
|
|
1946
1990
|
* @example
|
|
1947
1991
|
* cn-beiji****
|
|
@@ -1951,7 +1995,7 @@ export class CreateClusterRequest extends $dara.Model {
|
|
|
1951
1995
|
zoneId?: string;
|
|
1952
1996
|
/**
|
|
1953
1997
|
* @remarks
|
|
1954
|
-
*
|
|
1998
|
+
* The zone IDs of the region where the cluster resides. This parameter is specific to ACK managed cluster types.
|
|
1955
1999
|
*/
|
|
1956
2000
|
zoneIds?: string[];
|
|
1957
2001
|
static names(): { [key: string]: string } {
|