@ucloud-sdks/ucloud-sdk-js 0.2.54 → 0.2.56
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/lib/services/uhost/index.d.ts +3 -3
- package/lib/services/uk8s/index.d.ts +2438 -688
- package/lib/services/uk8s/index.js +108 -0
- package/package.json +1 -1
|
@@ -9,6 +9,12 @@ export default class UK8SClient extends Client {
|
|
|
9
9
|
config: ConfigOptions;
|
|
10
10
|
credential: CredentialOptions;
|
|
11
11
|
});
|
|
12
|
+
/**
|
|
13
|
+
* AddUK8SAutoScalingGroupV2 - 创建绑定已有节点池的自动伸缩组。当前请求校验仍要求提供 CPU、Mem、MachineType 和 Zone。
|
|
14
|
+
*
|
|
15
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/add_uk8s_auto_scaling_group_v2
|
|
16
|
+
*/
|
|
17
|
+
addUK8SAutoScalingGroupV2(request?: AddUK8SAutoScalingGroupV2Request): Promise<AddUK8SAutoScalingGroupV2Response>;
|
|
12
18
|
/**
|
|
13
19
|
* AddUK8SExistingUHost - 将预先创建好的云主机加入到UK8S集群,需要注意的是,该云主机依然会执行重装系统的操作。
|
|
14
20
|
*
|
|
@@ -57,12 +63,24 @@ export default class UK8SClient extends Client {
|
|
|
57
63
|
* See also: https://docs.ucloud.cn/api/uk8s-api/del_uk8s_cluster_node_v2
|
|
58
64
|
*/
|
|
59
65
|
delUK8SClusterNodeV2(request?: DelUK8SClusterNodeV2Request): Promise<DelUK8SClusterNodeV2Response>;
|
|
66
|
+
/**
|
|
67
|
+
* DeleteUK8SAutoScalingGroup - 删除伸缩组
|
|
68
|
+
*
|
|
69
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/delete_uk8s_auto_scaling_group
|
|
70
|
+
*/
|
|
71
|
+
deleteUK8SAutoScalingGroup(request?: DeleteUK8SAutoScalingGroupRequest): Promise<DeleteUK8SAutoScalingGroupResponse>;
|
|
60
72
|
/**
|
|
61
73
|
* DeleteUK8SULSConfig - 删除指定UK8S集群的日志采集规则。
|
|
62
74
|
*
|
|
63
75
|
* See also: https://docs.ucloud.cn/api/uk8s-api/delete_uk8s_uls_config
|
|
64
76
|
*/
|
|
65
77
|
deleteUK8SULSConfig(request?: DeleteUK8SULSConfigRequest): Promise<DeleteUK8SULSConfigResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* DescribeUK8SAutoscalerGroup - 获取autoscaler与auto scaling group信息
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_autoscaler_group
|
|
82
|
+
*/
|
|
83
|
+
describeUK8SAutoscalerGroup(request?: DescribeUK8SAutoscalerGroupRequest): Promise<DescribeUK8SAutoscalerGroupResponse>;
|
|
66
84
|
/**
|
|
67
85
|
* DescribeUK8SCluster - 获取集群信息
|
|
68
86
|
*
|
|
@@ -81,12 +99,54 @@ export default class UK8SClient extends Client {
|
|
|
81
99
|
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_node
|
|
82
100
|
*/
|
|
83
101
|
describeUK8SNode(request?: DescribeUK8SNodeRequest): Promise<DescribeUK8SNodeResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* EnableUK8SAutoscaler - 开启/关闭伸缩器
|
|
104
|
+
*
|
|
105
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/enable_uk8s_autoscaler
|
|
106
|
+
*/
|
|
107
|
+
enableUK8SAutoscaler(request?: EnableUK8SAutoscalerRequest): Promise<EnableUK8SAutoscalerResponse>;
|
|
84
108
|
/**
|
|
85
109
|
* GetClusterConfig - 获取集群配置文件,管理集群的凭证
|
|
86
110
|
*
|
|
87
111
|
* See also: https://docs.ucloud.cn/api/uk8s-api/get_cluster_config
|
|
88
112
|
*/
|
|
89
113
|
getClusterConfig(request?: GetClusterConfigRequest): Promise<GetClusterConfigResponse>;
|
|
114
|
+
/**
|
|
115
|
+
* GetUK8SAvailableInstanceTypes - 获取uk8s节点可用机型
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_available_instance_types
|
|
118
|
+
*/
|
|
119
|
+
getUK8SAvailableInstanceTypes(request?: GetUK8SAvailableInstanceTypesRequest): Promise<GetUK8SAvailableInstanceTypesResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* GetUK8SCNINodeInfo - 获取 UK8S 集群各节点的 CNI 版本、状态及版本同步情况。
|
|
122
|
+
*
|
|
123
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_cni_node_info
|
|
124
|
+
*/
|
|
125
|
+
getUK8SCNINodeInfo(request?: GetUK8SCNINodeInfoRequest): Promise<GetUK8SCNINodeInfoResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* GetUK8SIpamdStatus - 查询 ipamd 插件的安装状态、版本、CNI 初始化模式及模式切换能力。
|
|
128
|
+
*
|
|
129
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_ipamd_status
|
|
130
|
+
*/
|
|
131
|
+
getUK8SIpamdStatus(request?: GetUK8SIpamdStatusRequest): Promise<GetUK8SIpamdStatusResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* GetUK8SLoadBalancerController - 获取 uk8s LoadBalancerController 信息
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_load_balancer_controller
|
|
136
|
+
*/
|
|
137
|
+
getUK8SLoadBalancerController(request?: GetUK8SLoadBalancerControllerRequest): Promise<GetUK8SLoadBalancerControllerResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* GetUK8SNodeGroup - 列出某个UK8S节点池
|
|
140
|
+
*
|
|
141
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_node_group
|
|
142
|
+
*/
|
|
143
|
+
getUK8SNodeGroup(request?: GetUK8SNodeGroupRequest): Promise<GetUK8SNodeGroupResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* GetUK8SPluginInfo - 查询集群插件信息
|
|
146
|
+
*
|
|
147
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_plugin_info
|
|
148
|
+
*/
|
|
149
|
+
getUK8SPluginInfo(request?: GetUK8SPluginInfoRequest): Promise<GetUK8SPluginInfoResponse>;
|
|
90
150
|
/**
|
|
91
151
|
* GetUK8SVersions - 获取支持创建的UK8S集群版本、Containerd版本
|
|
92
152
|
*
|
|
@@ -129,6 +189,18 @@ export default class UK8SClient extends Client {
|
|
|
129
189
|
* See also: https://docs.ucloud.cn/api/uk8s-api/remove_uk8s_node_group
|
|
130
190
|
*/
|
|
131
191
|
removeUK8SNodeGroup(request?: RemoveUK8SNodeGroupRequest): Promise<RemoveUK8SNodeGroupResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* UpdateUK8SAutoScalingGroupV2 - 更新伸缩组的名称、节点数上下限和优先级。节点规格等配置请通过关联节点池修改。
|
|
194
|
+
*
|
|
195
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_auto_scaling_group_v2
|
|
196
|
+
*/
|
|
197
|
+
updateUK8SAutoScalingGroupV2(request?: UpdateUK8SAutoScalingGroupV2Request): Promise<UpdateUK8SAutoScalingGroupV2Response>;
|
|
198
|
+
/**
|
|
199
|
+
* UpdateUK8SAutoscaler - 更新集群级缩容阈值和等待时间。调用前必须关闭 cluster-autoscaler;修改后重新开启,使新配置生效。
|
|
200
|
+
*
|
|
201
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_autoscaler
|
|
202
|
+
*/
|
|
203
|
+
updateUK8SAutoscaler(request?: UpdateUK8SAutoscalerRequest): Promise<UpdateUK8SAutoscalerResponse>;
|
|
132
204
|
/**
|
|
133
205
|
* UpdateUK8SNodeGroup - 修改UK8S节点池
|
|
134
206
|
*
|
|
@@ -142,6 +214,140 @@ export default class UK8SClient extends Client {
|
|
|
142
214
|
*/
|
|
143
215
|
updateUK8SULSConfig(request?: UpdateUK8SULSConfigRequest): Promise<UpdateUK8SULSConfigResponse>;
|
|
144
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* AddUK8SAutoScalingGroupV2 - 创建绑定已有节点池的自动伸缩组。当前请求校验仍要求提供 CPU、Mem、MachineType 和 Zone。
|
|
219
|
+
*/
|
|
220
|
+
export interface AddUK8SAutoScalingGroupV2Request {
|
|
221
|
+
/**
|
|
222
|
+
* 可用区
|
|
223
|
+
*/
|
|
224
|
+
Zone: string;
|
|
225
|
+
/**
|
|
226
|
+
* 集群ID
|
|
227
|
+
*/
|
|
228
|
+
ClusterId: string;
|
|
229
|
+
/**
|
|
230
|
+
* 伸缩组名字
|
|
231
|
+
*/
|
|
232
|
+
Name: string;
|
|
233
|
+
/**
|
|
234
|
+
* 节点CPU大小
|
|
235
|
+
*/
|
|
236
|
+
CPU: number;
|
|
237
|
+
/**
|
|
238
|
+
* 节点Mem大小
|
|
239
|
+
*/
|
|
240
|
+
Mem: number;
|
|
241
|
+
/**
|
|
242
|
+
* 云主机机型。该参数仍需传入;实际节点规格取自绑定的节点池。
|
|
243
|
+
*/
|
|
244
|
+
MachineType: string;
|
|
245
|
+
/**
|
|
246
|
+
* 最小节点数,范围 0–100,且不得大于 Max。必须显式传入,允许为 0。
|
|
247
|
+
*/
|
|
248
|
+
Min: number;
|
|
249
|
+
/**
|
|
250
|
+
* 最大节点数,范围 1–100,且不得小于 Min。
|
|
251
|
+
*/
|
|
252
|
+
Max: number;
|
|
253
|
+
/**
|
|
254
|
+
* 伸缩组绑定的有效节点池 ID。当前实现必须提供,节点配置取自该节点池。
|
|
255
|
+
*/
|
|
256
|
+
NodeGroupId: string;
|
|
257
|
+
/**
|
|
258
|
+
* Base64 编码的节点登录密码。LoginMode 为 Password(默认)时必填,不会自动生成随机密码;KeyPair 模式下可不填。
|
|
259
|
+
*/
|
|
260
|
+
Password?: string;
|
|
261
|
+
/**
|
|
262
|
+
* 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘
|
|
263
|
+
*/
|
|
264
|
+
BootDiskType?: string;
|
|
265
|
+
/**
|
|
266
|
+
* 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘
|
|
267
|
+
*/
|
|
268
|
+
DataDiskType?: string;
|
|
269
|
+
/**
|
|
270
|
+
* 数据磁盘大小,单位GB。默认0。范围 :[20, 1000]
|
|
271
|
+
*/
|
|
272
|
+
DataDiskSize?: number;
|
|
273
|
+
/**
|
|
274
|
+
* 最低 CPU 平台的兼容字段;同时提供 MinimalCpuPlatform 时以其为准。
|
|
275
|
+
*/
|
|
276
|
+
MinmalCpuPlatform?: string;
|
|
277
|
+
/**
|
|
278
|
+
* GPU 类型;实际节点规格取自绑定的节点池。
|
|
279
|
+
*/
|
|
280
|
+
GpuType?: string;
|
|
281
|
+
/**
|
|
282
|
+
* GPU卡核心数。仅GPU机型支持此字段
|
|
283
|
+
*/
|
|
284
|
+
GPU?: number;
|
|
285
|
+
/**
|
|
286
|
+
* key=value,多组用”,“隔开,最多5组
|
|
287
|
+
*/
|
|
288
|
+
Labels?: string;
|
|
289
|
+
/**
|
|
290
|
+
* 默认110, 支持16-512
|
|
291
|
+
*/
|
|
292
|
+
MaxPods?: number;
|
|
293
|
+
/**
|
|
294
|
+
* 系统盘大小,单位GB。默认40。范围:[40, 500]。注意SSD本地盘无法调整。
|
|
295
|
+
*/
|
|
296
|
+
BootDiskSize?: number;
|
|
297
|
+
/**
|
|
298
|
+
* 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,不支持用户自定义镜像,传入自定义镜像 Id 将报错
|
|
299
|
+
*/
|
|
300
|
+
ImageId?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Base64 编码的 cloud-init 用户数据。
|
|
303
|
+
*/
|
|
304
|
+
UserData?: string;
|
|
305
|
+
/**
|
|
306
|
+
* Base64 编码的用户脚本,在 UK8S 节点初始化完成后执行。
|
|
307
|
+
*/
|
|
308
|
+
InitScript?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 计费模式:Year、Month、Dynamic、Postpay,默认 Dynamic。此接口不接受 Preemptive。
|
|
311
|
+
*/
|
|
312
|
+
ChargeType?: string;
|
|
313
|
+
/**
|
|
314
|
+
* 硬件隔离组id。可通过DescribeIsolationGroup获取。
|
|
315
|
+
*/
|
|
316
|
+
IsolationGroup?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Node节点污点,形式为key=value:effect,多组taints用”,“隔开,最多支持五组。
|
|
319
|
+
*/
|
|
320
|
+
Taints?: string;
|
|
321
|
+
/**
|
|
322
|
+
* 业务组
|
|
323
|
+
*/
|
|
324
|
+
Tag?: string;
|
|
325
|
+
/**
|
|
326
|
+
* 伸缩组的优先级,取值[1, 100],数值越大优先级越高,在扩容的时候会被更优先考虑。
|
|
327
|
+
*/
|
|
328
|
+
Priority?: number;
|
|
329
|
+
/**
|
|
330
|
+
* 节点登录方式:Password 或 KeyPair,默认 Password。
|
|
331
|
+
*/
|
|
332
|
+
LoginMode?: string;
|
|
333
|
+
/**
|
|
334
|
+
* 登录密钥对 ID。LoginMode 为 KeyPair 时必填。
|
|
335
|
+
*/
|
|
336
|
+
KeyPairId?: string;
|
|
337
|
+
/**
|
|
338
|
+
* 最低 CPU 平台;优先于兼容字段 MinmalCpuPlatform。
|
|
339
|
+
*/
|
|
340
|
+
MinimalCpuPlatform?: string;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* AddUK8SAutoScalingGroupV2 - 创建绑定已有节点池的自动伸缩组。当前请求校验仍要求提供 CPU、Mem、MachineType 和 Zone。
|
|
344
|
+
*/
|
|
345
|
+
export interface AddUK8SAutoScalingGroupV2Response {
|
|
346
|
+
/**
|
|
347
|
+
* 创建的伸缩组 ID。
|
|
348
|
+
*/
|
|
349
|
+
AsgId?: string;
|
|
350
|
+
}
|
|
145
351
|
/**
|
|
146
352
|
* AddUK8SExistingUHost - 将预先创建好的云主机加入到UK8S集群,需要注意的是,该云主机依然会执行重装系统的操作。
|
|
147
353
|
*/
|
|
@@ -1358,6 +1564,24 @@ export interface DelUK8SClusterNodeV2Request {
|
|
|
1358
1564
|
*/
|
|
1359
1565
|
export interface DelUK8SClusterNodeV2Response {
|
|
1360
1566
|
}
|
|
1567
|
+
/**
|
|
1568
|
+
* DeleteUK8SAutoScalingGroup - 删除伸缩组
|
|
1569
|
+
*/
|
|
1570
|
+
export interface DeleteUK8SAutoScalingGroupRequest {
|
|
1571
|
+
/**
|
|
1572
|
+
* 伸缩组ID
|
|
1573
|
+
*/
|
|
1574
|
+
Id: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* 集群ID
|
|
1577
|
+
*/
|
|
1578
|
+
ClusterId: string;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* DeleteUK8SAutoScalingGroup - 删除伸缩组
|
|
1582
|
+
*/
|
|
1583
|
+
export interface DeleteUK8SAutoScalingGroupResponse {
|
|
1584
|
+
}
|
|
1361
1585
|
/**
|
|
1362
1586
|
* DeleteUK8SULSConfig - 删除指定UK8S集群的日志采集规则。
|
|
1363
1587
|
*/
|
|
@@ -1381,390 +1605,237 @@ export interface DeleteUK8SULSConfigRequest {
|
|
|
1381
1605
|
export interface DeleteUK8SULSConfigResponse {
|
|
1382
1606
|
}
|
|
1383
1607
|
/**
|
|
1384
|
-
*
|
|
1608
|
+
* DescribeUK8SAutoscalerGroup - 获取autoscaler与auto scaling group信息
|
|
1385
1609
|
*/
|
|
1386
|
-
export interface
|
|
1610
|
+
export interface DescribeUK8SAutoscalerGroupRequest {
|
|
1387
1611
|
/**
|
|
1388
|
-
*
|
|
1612
|
+
* 可用区,可选。此接口按集群 ID 查询。
|
|
1613
|
+
*/
|
|
1614
|
+
Zone?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* 集群id
|
|
1389
1617
|
*/
|
|
1390
1618
|
ClusterId: string;
|
|
1391
1619
|
}
|
|
1392
1620
|
/**
|
|
1393
|
-
*
|
|
1621
|
+
* DescribeUK8SAutoscalerGroup - 获取autoscaler与auto scaling group信息
|
|
1394
1622
|
*/
|
|
1395
|
-
export interface
|
|
1396
|
-
/**
|
|
1397
|
-
* 资源名字
|
|
1398
|
-
*/
|
|
1399
|
-
ClusterName: string;
|
|
1400
|
-
/**
|
|
1401
|
-
* 集群ID
|
|
1402
|
-
*/
|
|
1403
|
-
ClusterId: string;
|
|
1404
|
-
/**
|
|
1405
|
-
* 所属VPC
|
|
1406
|
-
*/
|
|
1407
|
-
VPCId: string;
|
|
1408
|
-
/**
|
|
1409
|
-
* 所属子网
|
|
1410
|
-
*/
|
|
1411
|
-
SubnetId: string;
|
|
1412
|
-
/**
|
|
1413
|
-
* Pod网段
|
|
1414
|
-
*/
|
|
1415
|
-
PodCIDR: string;
|
|
1416
|
-
/**
|
|
1417
|
-
* 服务网段
|
|
1418
|
-
*/
|
|
1419
|
-
ServiceCIDR: string;
|
|
1623
|
+
export interface DescribeUK8SAutoscalerGroupResponse {
|
|
1420
1624
|
/**
|
|
1421
|
-
*
|
|
1625
|
+
* 伸缩器
|
|
1422
1626
|
*/
|
|
1423
|
-
|
|
1627
|
+
Autoscaler: {
|
|
1628
|
+
/**
|
|
1629
|
+
* 节点持续不需要后触发缩容的等待时间,单位分钟。
|
|
1630
|
+
*/
|
|
1631
|
+
ScaleDownUnneededTime: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* 节点缩容利用率阈值,单位百分比,范围 0–100。
|
|
1634
|
+
*/
|
|
1635
|
+
ScaleDownUtilizationThreshold: number;
|
|
1636
|
+
/**
|
|
1637
|
+
* 添加节点后等待缩容的时间,单位分钟。
|
|
1638
|
+
*/
|
|
1639
|
+
ScaleDownDelayAfterAdd: number;
|
|
1640
|
+
/**
|
|
1641
|
+
* 打开/关闭
|
|
1642
|
+
*/
|
|
1643
|
+
Enabled: number;
|
|
1644
|
+
/**
|
|
1645
|
+
* 伸缩器版本
|
|
1646
|
+
*/
|
|
1647
|
+
Version: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* 配置更新时间,Unix 时间戳,单位秒。
|
|
1650
|
+
*/
|
|
1651
|
+
UpdateTime: number;
|
|
1652
|
+
/**
|
|
1653
|
+
* GPU 缩容利用率阈值,单位百分比,范围 0–100。
|
|
1654
|
+
*/
|
|
1655
|
+
ScaleDownGpuUtilizationThreshold: number;
|
|
1656
|
+
};
|
|
1424
1657
|
/**
|
|
1425
|
-
*
|
|
1658
|
+
* 伸缩组列表
|
|
1426
1659
|
*/
|
|
1427
|
-
|
|
1660
|
+
AutoScalingGroup?: {
|
|
1428
1661
|
/**
|
|
1429
|
-
*
|
|
1662
|
+
* 可用区
|
|
1430
1663
|
*/
|
|
1431
1664
|
Zone: string;
|
|
1432
1665
|
/**
|
|
1433
|
-
*
|
|
1666
|
+
* 伸缩组ID
|
|
1667
|
+
*/
|
|
1668
|
+
Id: string;
|
|
1669
|
+
/**
|
|
1670
|
+
* 伸缩组名字
|
|
1434
1671
|
*/
|
|
1435
1672
|
Name: string;
|
|
1436
1673
|
/**
|
|
1437
|
-
*
|
|
1674
|
+
* 节点CPU
|
|
1438
1675
|
*/
|
|
1439
1676
|
CPU: number;
|
|
1440
1677
|
/**
|
|
1441
|
-
*
|
|
1678
|
+
* 节点内存
|
|
1442
1679
|
*/
|
|
1443
|
-
|
|
1680
|
+
Mem: number;
|
|
1444
1681
|
/**
|
|
1445
|
-
*
|
|
1682
|
+
* 节点数据盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘
|
|
1446
1683
|
*/
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* 国际: Internation,BGP: Bgp,内网: Private
|
|
1450
|
-
*/
|
|
1451
|
-
Type?: string;
|
|
1452
|
-
/**
|
|
1453
|
-
* IP资源ID (内网IP无对应的资源ID)
|
|
1454
|
-
*/
|
|
1455
|
-
IPId?: string;
|
|
1456
|
-
/**
|
|
1457
|
-
* IP地址
|
|
1458
|
-
*/
|
|
1459
|
-
IP?: string;
|
|
1460
|
-
/**
|
|
1461
|
-
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
1462
|
-
*/
|
|
1463
|
-
Bandwidth?: number;
|
|
1464
|
-
/**
|
|
1465
|
-
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
1466
|
-
*/
|
|
1467
|
-
Default?: string;
|
|
1468
|
-
/**
|
|
1469
|
-
* IP 地址分配模式
|
|
1470
|
-
*/
|
|
1471
|
-
IPMode?: string;
|
|
1472
|
-
/**
|
|
1473
|
-
* IP 所属的 VPC Id
|
|
1474
|
-
*/
|
|
1475
|
-
VPCId?: string;
|
|
1476
|
-
/**
|
|
1477
|
-
* IP 所在的 子网 Id
|
|
1478
|
-
*/
|
|
1479
|
-
SubnetId?: string;
|
|
1480
|
-
/**
|
|
1481
|
-
* 网卡的 MAC 地址
|
|
1482
|
-
*/
|
|
1483
|
-
Mac?: string;
|
|
1484
|
-
/**
|
|
1485
|
-
* 虚拟网卡 Id
|
|
1486
|
-
*/
|
|
1487
|
-
NetworkInterfaceId?: string;
|
|
1488
|
-
}[];
|
|
1684
|
+
DataDiskType: string;
|
|
1489
1685
|
/**
|
|
1490
|
-
*
|
|
1686
|
+
* 节点数据盘大小
|
|
1491
1687
|
*/
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
1495
|
-
*/
|
|
1496
|
-
Type?: string;
|
|
1497
|
-
/**
|
|
1498
|
-
* 磁盘长ID
|
|
1499
|
-
*/
|
|
1500
|
-
DiskId?: string;
|
|
1501
|
-
/**
|
|
1502
|
-
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
1503
|
-
*/
|
|
1504
|
-
Name?: string;
|
|
1505
|
-
/**
|
|
1506
|
-
* 磁盘盘符
|
|
1507
|
-
*/
|
|
1508
|
-
Drive?: string;
|
|
1509
|
-
/**
|
|
1510
|
-
* 磁盘大小,单位: GB
|
|
1511
|
-
*/
|
|
1512
|
-
Size?: number;
|
|
1513
|
-
/**
|
|
1514
|
-
* 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
1515
|
-
*/
|
|
1516
|
-
BackupType?: string;
|
|
1517
|
-
/**
|
|
1518
|
-
* 当前主机的IOPS值
|
|
1519
|
-
*/
|
|
1520
|
-
IOPS?: number;
|
|
1521
|
-
/**
|
|
1522
|
-
* Yes: 加密 No: 非加密
|
|
1523
|
-
*/
|
|
1524
|
-
Encrypted?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
1527
|
-
*/
|
|
1528
|
-
DiskType?: string;
|
|
1529
|
-
/**
|
|
1530
|
-
* True| False
|
|
1531
|
-
*/
|
|
1532
|
-
IsBoot?: string;
|
|
1533
|
-
}[];
|
|
1688
|
+
DataDiskSize: number;
|
|
1534
1689
|
/**
|
|
1535
|
-
*
|
|
1690
|
+
* 节点系统盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘
|
|
1536
1691
|
*/
|
|
1537
|
-
|
|
1692
|
+
BootDiskType: string;
|
|
1538
1693
|
/**
|
|
1539
|
-
*
|
|
1694
|
+
* 节点系统盘大小
|
|
1540
1695
|
*/
|
|
1541
|
-
|
|
1696
|
+
BootDiskSize: number;
|
|
1542
1697
|
/**
|
|
1543
|
-
*
|
|
1698
|
+
* 云主机机型。
|
|
1544
1699
|
*/
|
|
1545
|
-
|
|
1700
|
+
MachineType: string;
|
|
1546
1701
|
/**
|
|
1547
|
-
*
|
|
1702
|
+
* GPU 数量。
|
|
1548
1703
|
*/
|
|
1549
|
-
|
|
1704
|
+
GPU: number;
|
|
1550
1705
|
/**
|
|
1551
|
-
*
|
|
1706
|
+
* GPU 类型。
|
|
1552
1707
|
*/
|
|
1553
|
-
|
|
1708
|
+
GpuType: string;
|
|
1554
1709
|
/**
|
|
1555
|
-
*
|
|
1710
|
+
* 节点标签 key=value,多组用”,“隔开,最多5组
|
|
1556
1711
|
*/
|
|
1557
|
-
|
|
1712
|
+
Labels: string;
|
|
1558
1713
|
/**
|
|
1559
|
-
*
|
|
1714
|
+
* Pods数量 默认110, 支持16-512
|
|
1560
1715
|
*/
|
|
1561
|
-
|
|
1716
|
+
MaxPods: number;
|
|
1562
1717
|
/**
|
|
1563
|
-
*
|
|
1718
|
+
* 最低 CPU 平台的兼容字段,与 MinimalCpuPlatform 相同。
|
|
1564
1719
|
*/
|
|
1565
|
-
|
|
1720
|
+
MinmalCpuPlatform: string;
|
|
1566
1721
|
/**
|
|
1567
|
-
*
|
|
1722
|
+
* 主机规格族
|
|
1568
1723
|
*/
|
|
1569
|
-
|
|
1724
|
+
UHostFamily: string;
|
|
1570
1725
|
/**
|
|
1571
|
-
*
|
|
1726
|
+
* 最小node数量
|
|
1572
1727
|
*/
|
|
1573
|
-
|
|
1728
|
+
Min: number;
|
|
1574
1729
|
/**
|
|
1575
|
-
*
|
|
1730
|
+
* 最大node数量
|
|
1576
1731
|
*/
|
|
1577
|
-
|
|
1732
|
+
Max: number;
|
|
1578
1733
|
/**
|
|
1579
|
-
*
|
|
1734
|
+
* 当前该伸缩组管理的node数量
|
|
1580
1735
|
*/
|
|
1581
|
-
|
|
1736
|
+
CurrentNodeNum: number;
|
|
1582
1737
|
/**
|
|
1583
|
-
*
|
|
1738
|
+
* 创建时间,Unix 时间戳,单位秒。
|
|
1584
1739
|
*/
|
|
1585
|
-
|
|
1586
|
-
/**
|
|
1587
|
-
* 安全组名称
|
|
1588
|
-
*/
|
|
1589
|
-
Id?: string;
|
|
1590
|
-
/**
|
|
1591
|
-
* 安全组id
|
|
1592
|
-
*/
|
|
1593
|
-
Name?: string;
|
|
1594
|
-
/**
|
|
1595
|
-
* 安全组优先级
|
|
1596
|
-
*/
|
|
1597
|
-
Priority?: string;
|
|
1598
|
-
}[];
|
|
1599
|
-
}[];
|
|
1600
|
-
/**
|
|
1601
|
-
* Node节点配置信息,具体参考UhostInfo
|
|
1602
|
-
*/
|
|
1603
|
-
NodeList?: {
|
|
1740
|
+
CreateTime: number;
|
|
1604
1741
|
/**
|
|
1605
|
-
*
|
|
1742
|
+
* 更新时间,Unix 时间戳,单位秒。
|
|
1606
1743
|
*/
|
|
1607
|
-
|
|
1744
|
+
UpdateTime: number;
|
|
1608
1745
|
/**
|
|
1609
|
-
*
|
|
1746
|
+
* 伸缩组的计费模式。
|
|
1610
1747
|
*/
|
|
1611
|
-
|
|
1748
|
+
ChargeType: string;
|
|
1612
1749
|
/**
|
|
1613
|
-
*
|
|
1750
|
+
* 硬件隔离组id。可通过DescribeIsolationGroup获取。
|
|
1614
1751
|
*/
|
|
1615
|
-
|
|
1752
|
+
IsolationGroup: string;
|
|
1616
1753
|
/**
|
|
1617
|
-
*
|
|
1754
|
+
* 优先级
|
|
1618
1755
|
*/
|
|
1619
|
-
|
|
1756
|
+
Priority: number;
|
|
1620
1757
|
/**
|
|
1621
|
-
* 节点
|
|
1758
|
+
* 节点CPU【兼容】
|
|
1622
1759
|
*/
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* 国际: Internation,BGP: Bgp,内网: Private
|
|
1626
|
-
*/
|
|
1627
|
-
Type?: string;
|
|
1628
|
-
/**
|
|
1629
|
-
* IP资源ID (内网IP无对应的资源ID)
|
|
1630
|
-
*/
|
|
1631
|
-
IPId?: string;
|
|
1632
|
-
/**
|
|
1633
|
-
* IP地址
|
|
1634
|
-
*/
|
|
1635
|
-
IP?: string;
|
|
1636
|
-
/**
|
|
1637
|
-
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
1638
|
-
*/
|
|
1639
|
-
Bandwidth?: number;
|
|
1640
|
-
/**
|
|
1641
|
-
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
1642
|
-
*/
|
|
1643
|
-
Default?: string;
|
|
1644
|
-
/**
|
|
1645
|
-
* IP 地址分配模式
|
|
1646
|
-
*/
|
|
1647
|
-
IPMode?: string;
|
|
1648
|
-
/**
|
|
1649
|
-
* IP 所属的 VPC Id
|
|
1650
|
-
*/
|
|
1651
|
-
VPCId?: string;
|
|
1652
|
-
/**
|
|
1653
|
-
* IP 所在的 子网 Id
|
|
1654
|
-
*/
|
|
1655
|
-
SubnetId?: string;
|
|
1656
|
-
/**
|
|
1657
|
-
* 网卡的 MAC 地址
|
|
1658
|
-
*/
|
|
1659
|
-
Mac?: string;
|
|
1660
|
-
/**
|
|
1661
|
-
* 虚拟网卡 Id
|
|
1662
|
-
*/
|
|
1663
|
-
NetworkInterfaceId?: string;
|
|
1664
|
-
}[];
|
|
1760
|
+
NodeCPU?: number;
|
|
1665
1761
|
/**
|
|
1666
|
-
*
|
|
1762
|
+
* 节点内存【兼容】
|
|
1667
1763
|
*/
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
1671
|
-
*/
|
|
1672
|
-
Type?: string;
|
|
1673
|
-
/**
|
|
1674
|
-
* 磁盘长ID
|
|
1675
|
-
*/
|
|
1676
|
-
DiskId?: string;
|
|
1677
|
-
/**
|
|
1678
|
-
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
1679
|
-
*/
|
|
1680
|
-
Name?: string;
|
|
1681
|
-
/**
|
|
1682
|
-
* 磁盘盘符
|
|
1683
|
-
*/
|
|
1684
|
-
Drive?: string;
|
|
1685
|
-
/**
|
|
1686
|
-
* 磁盘大小,单位: GB
|
|
1687
|
-
*/
|
|
1688
|
-
Size?: number;
|
|
1689
|
-
/**
|
|
1690
|
-
* 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
1691
|
-
*/
|
|
1692
|
-
BackupType?: string;
|
|
1693
|
-
/**
|
|
1694
|
-
* 当前主机的IOPS值
|
|
1695
|
-
*/
|
|
1696
|
-
IOPS?: number;
|
|
1697
|
-
/**
|
|
1698
|
-
* Yes: 加密 No: 非加密
|
|
1699
|
-
*/
|
|
1700
|
-
Encrypted?: string;
|
|
1701
|
-
/**
|
|
1702
|
-
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
1703
|
-
*/
|
|
1704
|
-
DiskType?: string;
|
|
1705
|
-
/**
|
|
1706
|
-
* True| False
|
|
1707
|
-
*/
|
|
1708
|
-
IsBoot?: string;
|
|
1709
|
-
}[];
|
|
1764
|
+
NodeMem?: number;
|
|
1710
1765
|
/**
|
|
1711
|
-
*
|
|
1766
|
+
* 节点数据盘类型【兼容】
|
|
1712
1767
|
*/
|
|
1713
|
-
|
|
1768
|
+
NodeDataDiskType?: string;
|
|
1714
1769
|
/**
|
|
1715
|
-
*
|
|
1770
|
+
* 节点数据盘大小【兼容】
|
|
1716
1771
|
*/
|
|
1717
|
-
|
|
1772
|
+
NodeDataDiskSize?: number;
|
|
1718
1773
|
/**
|
|
1719
|
-
*
|
|
1774
|
+
* 旧伸缩组的系统盘类型。
|
|
1720
1775
|
*/
|
|
1721
|
-
|
|
1776
|
+
NodeBootDiskType?: string;
|
|
1722
1777
|
/**
|
|
1723
|
-
*
|
|
1778
|
+
* 节点云主机机型【兼容】
|
|
1724
1779
|
*/
|
|
1725
|
-
|
|
1780
|
+
NodeUHostType?: string;
|
|
1726
1781
|
/**
|
|
1727
|
-
*
|
|
1782
|
+
* 节点所属节点池id
|
|
1728
1783
|
*/
|
|
1729
|
-
|
|
1784
|
+
NodeGroupId?: string;
|
|
1730
1785
|
/**
|
|
1731
|
-
*
|
|
1786
|
+
* 节点子网id【兼容】
|
|
1732
1787
|
*/
|
|
1733
|
-
|
|
1788
|
+
SubnetId?: string;
|
|
1734
1789
|
/**
|
|
1735
|
-
*
|
|
1790
|
+
* 节点登录方式:Password 或 KeyPair。
|
|
1736
1791
|
*/
|
|
1737
|
-
|
|
1792
|
+
LoginMode?: string;
|
|
1738
1793
|
/**
|
|
1739
|
-
*
|
|
1794
|
+
* 登录密钥对 ID。
|
|
1740
1795
|
*/
|
|
1741
|
-
|
|
1796
|
+
KeyPairId?: string;
|
|
1742
1797
|
/**
|
|
1743
|
-
*
|
|
1798
|
+
* 最低 CPU 平台。
|
|
1744
1799
|
*/
|
|
1745
|
-
|
|
1800
|
+
MinimalCpuPlatform?: string;
|
|
1746
1801
|
/**
|
|
1747
|
-
*
|
|
1802
|
+
* 节点污点配置。
|
|
1748
1803
|
*/
|
|
1749
|
-
|
|
1804
|
+
Taints?: string;
|
|
1750
1805
|
/**
|
|
1751
|
-
*
|
|
1806
|
+
* 业务组。
|
|
1752
1807
|
*/
|
|
1753
|
-
|
|
1808
|
+
Tag?: string;
|
|
1754
1809
|
/**
|
|
1755
|
-
*
|
|
1810
|
+
* 镜像 ID。
|
|
1756
1811
|
*/
|
|
1757
|
-
|
|
1812
|
+
ImageId?: string;
|
|
1758
1813
|
/**
|
|
1759
|
-
*
|
|
1814
|
+
* 操作系统名称。
|
|
1760
1815
|
*/
|
|
1761
|
-
|
|
1816
|
+
OsName?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* Base64 编码的 cloud-init 用户数据。
|
|
1819
|
+
*/
|
|
1820
|
+
UserData?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* Base64 编码的节点初始化后脚本。
|
|
1823
|
+
*/
|
|
1824
|
+
InitScript?: string;
|
|
1825
|
+
/**
|
|
1826
|
+
* 节点安全模式:Firewall 或 SecGroup。
|
|
1827
|
+
*/
|
|
1828
|
+
SecurityMode?: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* 安全组配置列表。
|
|
1831
|
+
*/
|
|
1832
|
+
SecGroupId?: {
|
|
1762
1833
|
/**
|
|
1763
|
-
*
|
|
1834
|
+
* 安全组 ID
|
|
1764
1835
|
*/
|
|
1765
1836
|
Id?: string;
|
|
1766
1837
|
/**
|
|
1767
|
-
*
|
|
1838
|
+
* 安全组名称
|
|
1768
1839
|
*/
|
|
1769
1840
|
Name?: string;
|
|
1770
1841
|
/**
|
|
@@ -1772,557 +1843,2184 @@ export interface DescribeUK8SClusterResponse {
|
|
|
1772
1843
|
*/
|
|
1773
1844
|
Priority?: string;
|
|
1774
1845
|
}[];
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1846
|
+
/**
|
|
1847
|
+
* 防火墙 ID。
|
|
1848
|
+
*/
|
|
1849
|
+
SecurityGroupId?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* 网卡配置列表。
|
|
1852
|
+
*/
|
|
1853
|
+
NetworkInterface?: {
|
|
1854
|
+
/**
|
|
1855
|
+
* EIP
|
|
1856
|
+
*/
|
|
1857
|
+
EIP?: {
|
|
1858
|
+
/**
|
|
1859
|
+
* 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
|
|
1860
|
+
*/
|
|
1861
|
+
Bandwidth?: number;
|
|
1862
|
+
/**
|
|
1863
|
+
* 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
|
|
1864
|
+
*/
|
|
1865
|
+
PayMode?: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
1868
|
+
*/
|
|
1869
|
+
ShareBandwidthId?: string;
|
|
1870
|
+
/**
|
|
1871
|
+
* 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International,BGP: Bgp。 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
|
|
1872
|
+
*/
|
|
1873
|
+
OperatorName?: string;
|
|
1874
|
+
/**
|
|
1875
|
+
* 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
|
|
1876
|
+
*/
|
|
1877
|
+
CouponId?: string;
|
|
1878
|
+
};
|
|
1879
|
+
}[];
|
|
1880
|
+
/**
|
|
1881
|
+
* Kubelet 自定义配置。
|
|
1882
|
+
*/
|
|
1883
|
+
KubeletConfiguration?: {
|
|
1884
|
+
/**
|
|
1885
|
+
* 最大日志文件数量
|
|
1886
|
+
*/
|
|
1887
|
+
ContainerLogMaxFiles?: number;
|
|
1888
|
+
/**
|
|
1889
|
+
* 最大日志文件大小
|
|
1890
|
+
*/
|
|
1891
|
+
ContainerLogMaxSize?: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* 硬性驱逐条件,EvictionCondition类型
|
|
1894
|
+
*/
|
|
1895
|
+
EvictionHard?: {
|
|
1896
|
+
/**
|
|
1897
|
+
* 内存相关驱逐条件或宽限时间。
|
|
1898
|
+
*/
|
|
1899
|
+
MemoryAvailable?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
1902
|
+
*/
|
|
1903
|
+
ImagefsAvailable?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* 节点存储余量相关驱逐条件或宽限时间。
|
|
1906
|
+
*/
|
|
1907
|
+
NodefsAvailable?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* 节点剩余inodes驱逐条件或宽限时间。
|
|
1910
|
+
*/
|
|
1911
|
+
NodefsInodesFree?: string;
|
|
1912
|
+
};
|
|
1913
|
+
/**
|
|
1914
|
+
* 软性驱逐条件,EvictionCondition类型
|
|
1915
|
+
*/
|
|
1916
|
+
EvictionSoft?: {
|
|
1917
|
+
/**
|
|
1918
|
+
* 内存相关驱逐条件或宽限时间。
|
|
1919
|
+
*/
|
|
1920
|
+
MemoryAvailable?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
1923
|
+
*/
|
|
1924
|
+
ImagefsAvailable?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* 节点存储余量相关驱逐条件或宽限时间。
|
|
1927
|
+
*/
|
|
1928
|
+
NodefsAvailable?: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* 节点剩余inodes驱逐条件或宽限时间。
|
|
1931
|
+
*/
|
|
1932
|
+
NodefsInodesFree?: string;
|
|
1933
|
+
};
|
|
1934
|
+
/**
|
|
1935
|
+
* 软性驱逐宽限时间,EvictionCondition类型
|
|
1936
|
+
*/
|
|
1937
|
+
EvictionSoftGracePeriod?: {
|
|
1938
|
+
/**
|
|
1939
|
+
* 内存相关驱逐条件或宽限时间。
|
|
1940
|
+
*/
|
|
1941
|
+
MemoryAvailable?: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
1944
|
+
*/
|
|
1945
|
+
ImagefsAvailable?: string;
|
|
1946
|
+
/**
|
|
1947
|
+
* 节点存储余量相关驱逐条件或宽限时间。
|
|
1948
|
+
*/
|
|
1949
|
+
NodefsAvailable?: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* 节点剩余inodes驱逐条件或宽限时间。
|
|
1952
|
+
*/
|
|
1953
|
+
NodefsInodesFree?: string;
|
|
1954
|
+
};
|
|
1955
|
+
/**
|
|
1956
|
+
* 镜像垃圾收集阈值
|
|
1957
|
+
*/
|
|
1958
|
+
ImageGCHighThresholdPercent?: number;
|
|
1959
|
+
/**
|
|
1960
|
+
* 停止镜像垃圾收集阈值
|
|
1961
|
+
*/
|
|
1962
|
+
ImageGCLowThresholdPercent?: number;
|
|
1963
|
+
/**
|
|
1964
|
+
* kubelet预留资源,ReservedResource类型
|
|
1965
|
+
*/
|
|
1966
|
+
KubeReserved?: {
|
|
1967
|
+
/**
|
|
1968
|
+
* CPU
|
|
1969
|
+
*/
|
|
1970
|
+
CPU?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* 内存
|
|
1973
|
+
*/
|
|
1974
|
+
Memory?: string;
|
|
1975
|
+
/**
|
|
1976
|
+
* 存储
|
|
1977
|
+
*/
|
|
1978
|
+
EphemeralStorage?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Pid
|
|
1981
|
+
*/
|
|
1982
|
+
Pid?: string;
|
|
1983
|
+
};
|
|
1984
|
+
/**
|
|
1985
|
+
* 系统预留资源,ReservedResource类型
|
|
1986
|
+
*/
|
|
1987
|
+
SystemReserved?: {
|
|
1988
|
+
/**
|
|
1989
|
+
* CPU
|
|
1990
|
+
*/
|
|
1991
|
+
CPU?: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* 内存
|
|
1994
|
+
*/
|
|
1995
|
+
Memory?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* 存储
|
|
1998
|
+
*/
|
|
1999
|
+
EphemeralStorage?: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* Pid
|
|
2002
|
+
*/
|
|
2003
|
+
Pid?: string;
|
|
2004
|
+
};
|
|
2005
|
+
/**
|
|
2006
|
+
* 最大Pod数量
|
|
2007
|
+
*/
|
|
2008
|
+
MaxPods?: number;
|
|
2009
|
+
};
|
|
2010
|
+
/**
|
|
2011
|
+
* Base64 编码的节点登录密码。
|
|
2012
|
+
*/
|
|
2013
|
+
Password?: string;
|
|
2014
|
+
}[];
|
|
2015
|
+
/**
|
|
2016
|
+
* 0:无需更新1:有更新2:强制更新
|
|
2017
|
+
*/
|
|
2018
|
+
Update?: number;
|
|
2019
|
+
}
|
|
2020
|
+
/**
|
|
2021
|
+
* DescribeUK8SCluster - 获取集群信息
|
|
2022
|
+
*/
|
|
2023
|
+
export interface DescribeUK8SClusterRequest {
|
|
2024
|
+
/**
|
|
2025
|
+
* k8s集群ID
|
|
2026
|
+
*/
|
|
2027
|
+
ClusterId: string;
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* DescribeUK8SCluster - 获取集群信息
|
|
2031
|
+
*/
|
|
2032
|
+
export interface DescribeUK8SClusterResponse {
|
|
2033
|
+
/**
|
|
2034
|
+
* 资源名字
|
|
2035
|
+
*/
|
|
2036
|
+
ClusterName: string;
|
|
2037
|
+
/**
|
|
2038
|
+
* 集群ID
|
|
2039
|
+
*/
|
|
2040
|
+
ClusterId: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* 所属VPC
|
|
2043
|
+
*/
|
|
2044
|
+
VPCId: string;
|
|
2045
|
+
/**
|
|
2046
|
+
* 所属子网
|
|
2047
|
+
*/
|
|
2048
|
+
SubnetId: string;
|
|
2049
|
+
/**
|
|
2050
|
+
* Pod网段
|
|
2051
|
+
*/
|
|
2052
|
+
PodCIDR: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* 服务网段
|
|
2055
|
+
*/
|
|
2056
|
+
ServiceCIDR: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* Master 节点数量
|
|
2059
|
+
*/
|
|
2060
|
+
MasterCount: number;
|
|
2061
|
+
/**
|
|
2062
|
+
* Master节点配置信息,具体参考UhostInfo。托管版不返回该信息
|
|
2063
|
+
*/
|
|
2064
|
+
MasterList?: {
|
|
2065
|
+
/**
|
|
2066
|
+
* 所在机房
|
|
2067
|
+
*/
|
|
2068
|
+
Zone: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* 主机名称
|
|
2071
|
+
*/
|
|
2072
|
+
Name: string;
|
|
2073
|
+
/**
|
|
2074
|
+
* Cpu数量
|
|
2075
|
+
*/
|
|
2076
|
+
CPU: number;
|
|
2077
|
+
/**
|
|
2078
|
+
* 内存
|
|
2079
|
+
*/
|
|
2080
|
+
Memory: number;
|
|
2081
|
+
/**
|
|
2082
|
+
* 节点IP信息
|
|
2083
|
+
*/
|
|
2084
|
+
IPSet: {
|
|
2085
|
+
/**
|
|
2086
|
+
* 国际: Internation,BGP: Bgp,内网: Private
|
|
2087
|
+
*/
|
|
2088
|
+
Type?: string;
|
|
2089
|
+
/**
|
|
2090
|
+
* IP资源ID (内网IP无对应的资源ID)
|
|
2091
|
+
*/
|
|
2092
|
+
IPId?: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* IP地址
|
|
2095
|
+
*/
|
|
2096
|
+
IP?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
2099
|
+
*/
|
|
2100
|
+
Bandwidth?: number;
|
|
2101
|
+
/**
|
|
2102
|
+
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
2103
|
+
*/
|
|
2104
|
+
Default?: string;
|
|
2105
|
+
/**
|
|
2106
|
+
* IP 地址分配模式
|
|
2107
|
+
*/
|
|
2108
|
+
IPMode?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* IP 所属的 VPC Id
|
|
2111
|
+
*/
|
|
2112
|
+
VPCId?: string;
|
|
2113
|
+
/**
|
|
2114
|
+
* IP 所在的 子网 Id
|
|
2115
|
+
*/
|
|
2116
|
+
SubnetId?: string;
|
|
2117
|
+
/**
|
|
2118
|
+
* 网卡的 MAC 地址
|
|
2119
|
+
*/
|
|
2120
|
+
Mac?: string;
|
|
2121
|
+
/**
|
|
2122
|
+
* 虚拟网卡 Id
|
|
2123
|
+
*/
|
|
2124
|
+
NetworkInterfaceId?: string;
|
|
2125
|
+
}[];
|
|
2126
|
+
/**
|
|
2127
|
+
* 节点磁盘信息
|
|
2128
|
+
*/
|
|
2129
|
+
DiskSet: {
|
|
2130
|
+
/**
|
|
2131
|
+
* 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
2132
|
+
*/
|
|
2133
|
+
Type?: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* 磁盘长ID
|
|
2136
|
+
*/
|
|
2137
|
+
DiskId?: string;
|
|
2138
|
+
/**
|
|
2139
|
+
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
2140
|
+
*/
|
|
2141
|
+
Name?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* 磁盘盘符
|
|
2144
|
+
*/
|
|
2145
|
+
Drive?: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* 磁盘大小,单位: GB
|
|
2148
|
+
*/
|
|
2149
|
+
Size?: number;
|
|
2150
|
+
/**
|
|
2151
|
+
* 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
2152
|
+
*/
|
|
2153
|
+
BackupType?: string;
|
|
2154
|
+
/**
|
|
2155
|
+
* 当前主机的IOPS值
|
|
2156
|
+
*/
|
|
2157
|
+
IOPS?: number;
|
|
2158
|
+
/**
|
|
2159
|
+
* Yes: 加密 No: 非加密
|
|
2160
|
+
*/
|
|
2161
|
+
Encrypted?: string;
|
|
2162
|
+
/**
|
|
2163
|
+
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
2164
|
+
*/
|
|
2165
|
+
DiskType?: string;
|
|
2166
|
+
/**
|
|
2167
|
+
* True| False
|
|
2168
|
+
*/
|
|
2169
|
+
IsBoot?: string;
|
|
2170
|
+
}[];
|
|
2171
|
+
/**
|
|
2172
|
+
* 主机ID
|
|
2173
|
+
*/
|
|
2174
|
+
NodeId: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* 镜像信息
|
|
2177
|
+
*/
|
|
2178
|
+
OsName: string;
|
|
2179
|
+
/**
|
|
2180
|
+
* 创建时间
|
|
2181
|
+
*/
|
|
2182
|
+
CreateTime: number;
|
|
2183
|
+
/**
|
|
2184
|
+
* 到期时间
|
|
2185
|
+
*/
|
|
2186
|
+
ExpireTime: number;
|
|
2187
|
+
/**
|
|
2188
|
+
* 主机状态
|
|
2189
|
+
*/
|
|
2190
|
+
State: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* 节点类型:uhost表示云主机;uphost表示物理云主机
|
|
2193
|
+
*/
|
|
2194
|
+
NodeType: string;
|
|
2195
|
+
/**
|
|
2196
|
+
* GPU 数量
|
|
2197
|
+
*/
|
|
2198
|
+
GPU: number;
|
|
2199
|
+
/**
|
|
2200
|
+
* GPU 型号
|
|
2201
|
+
*/
|
|
2202
|
+
GpuType: string;
|
|
2203
|
+
/**
|
|
2204
|
+
* 基础镜像名称
|
|
2205
|
+
*/
|
|
2206
|
+
BasicImageName: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* 操作系统类型
|
|
2209
|
+
*/
|
|
2210
|
+
OsType: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* 节点总磁盘空间
|
|
2213
|
+
*/
|
|
2214
|
+
TotalDiskSpace: number;
|
|
2215
|
+
/**
|
|
2216
|
+
* 主机机型类别
|
|
2217
|
+
*/
|
|
2218
|
+
MachineType: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* 节点关联的安全组列表
|
|
2221
|
+
*/
|
|
2222
|
+
SecGroupId: {
|
|
2223
|
+
/**
|
|
2224
|
+
* 安全组 ID
|
|
2225
|
+
*/
|
|
2226
|
+
Id?: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* 安全组名称
|
|
2229
|
+
*/
|
|
2230
|
+
Name?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* 安全组优先级
|
|
2233
|
+
*/
|
|
2234
|
+
Priority?: string;
|
|
2235
|
+
}[];
|
|
2236
|
+
}[];
|
|
2237
|
+
/**
|
|
2238
|
+
* Node节点配置信息,具体参考UhostInfo
|
|
2239
|
+
*/
|
|
2240
|
+
NodeList?: {
|
|
2241
|
+
/**
|
|
2242
|
+
* 所在机房
|
|
2243
|
+
*/
|
|
2244
|
+
Zone: string;
|
|
2245
|
+
/**
|
|
2246
|
+
* 主机名称
|
|
2247
|
+
*/
|
|
2248
|
+
Name: string;
|
|
2249
|
+
/**
|
|
2250
|
+
* Cpu数量
|
|
2251
|
+
*/
|
|
2252
|
+
CPU: number;
|
|
2253
|
+
/**
|
|
2254
|
+
* 内存
|
|
2255
|
+
*/
|
|
2256
|
+
Memory: number;
|
|
2257
|
+
/**
|
|
2258
|
+
* 节点IP信息
|
|
2259
|
+
*/
|
|
2260
|
+
IPSet: {
|
|
2261
|
+
/**
|
|
2262
|
+
* 国际: Internation,BGP: Bgp,内网: Private
|
|
2263
|
+
*/
|
|
2264
|
+
Type?: string;
|
|
2265
|
+
/**
|
|
2266
|
+
* IP资源ID (内网IP无对应的资源ID)
|
|
2267
|
+
*/
|
|
2268
|
+
IPId?: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* IP地址
|
|
2271
|
+
*/
|
|
2272
|
+
IP?: string;
|
|
2273
|
+
/**
|
|
2274
|
+
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
2275
|
+
*/
|
|
2276
|
+
Bandwidth?: number;
|
|
2277
|
+
/**
|
|
2278
|
+
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
2279
|
+
*/
|
|
2280
|
+
Default?: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* IP 地址分配模式
|
|
2283
|
+
*/
|
|
2284
|
+
IPMode?: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* IP 所属的 VPC Id
|
|
2287
|
+
*/
|
|
2288
|
+
VPCId?: string;
|
|
2289
|
+
/**
|
|
2290
|
+
* IP 所在的 子网 Id
|
|
2291
|
+
*/
|
|
2292
|
+
SubnetId?: string;
|
|
2293
|
+
/**
|
|
2294
|
+
* 网卡的 MAC 地址
|
|
2295
|
+
*/
|
|
2296
|
+
Mac?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* 虚拟网卡 Id
|
|
2299
|
+
*/
|
|
2300
|
+
NetworkInterfaceId?: string;
|
|
2301
|
+
}[];
|
|
2302
|
+
/**
|
|
2303
|
+
* 节点磁盘信息
|
|
2304
|
+
*/
|
|
2305
|
+
DiskSet: {
|
|
2306
|
+
/**
|
|
2307
|
+
* 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
2308
|
+
*/
|
|
2309
|
+
Type?: string;
|
|
2310
|
+
/**
|
|
2311
|
+
* 磁盘长ID
|
|
2312
|
+
*/
|
|
2313
|
+
DiskId?: string;
|
|
2314
|
+
/**
|
|
2315
|
+
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
2316
|
+
*/
|
|
2317
|
+
Name?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* 磁盘盘符
|
|
2320
|
+
*/
|
|
2321
|
+
Drive?: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* 磁盘大小,单位: GB
|
|
2324
|
+
*/
|
|
2325
|
+
Size?: number;
|
|
2326
|
+
/**
|
|
2327
|
+
* 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
2328
|
+
*/
|
|
2329
|
+
BackupType?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* 当前主机的IOPS值
|
|
2332
|
+
*/
|
|
2333
|
+
IOPS?: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* Yes: 加密 No: 非加密
|
|
2336
|
+
*/
|
|
2337
|
+
Encrypted?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
2340
|
+
*/
|
|
2341
|
+
DiskType?: string;
|
|
2342
|
+
/**
|
|
2343
|
+
* True| False
|
|
2344
|
+
*/
|
|
2345
|
+
IsBoot?: string;
|
|
2346
|
+
}[];
|
|
2347
|
+
/**
|
|
2348
|
+
* 主机ID
|
|
2349
|
+
*/
|
|
2350
|
+
NodeId: string;
|
|
2351
|
+
/**
|
|
2352
|
+
* 镜像信息
|
|
2353
|
+
*/
|
|
2354
|
+
OsName: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* 创建时间
|
|
2357
|
+
*/
|
|
2358
|
+
CreateTime: number;
|
|
2359
|
+
/**
|
|
2360
|
+
* 到期时间
|
|
2361
|
+
*/
|
|
2362
|
+
ExpireTime: number;
|
|
2363
|
+
/**
|
|
2364
|
+
* 主机状态
|
|
2365
|
+
*/
|
|
2366
|
+
State: string;
|
|
2367
|
+
/**
|
|
2368
|
+
* 节点类型:uhost表示云主机;uphost表示物理云主机
|
|
2369
|
+
*/
|
|
2370
|
+
NodeType: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* GPU 数量
|
|
2373
|
+
*/
|
|
2374
|
+
GPU: number;
|
|
2375
|
+
/**
|
|
2376
|
+
* GPU 型号
|
|
2377
|
+
*/
|
|
2378
|
+
GpuType: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* 基础镜像名称
|
|
2381
|
+
*/
|
|
2382
|
+
BasicImageName: string;
|
|
2383
|
+
/**
|
|
2384
|
+
* 操作系统类型
|
|
2385
|
+
*/
|
|
2386
|
+
OsType: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* 节点总磁盘空间
|
|
2389
|
+
*/
|
|
2390
|
+
TotalDiskSpace: number;
|
|
2391
|
+
/**
|
|
2392
|
+
* 主机机型类别
|
|
2393
|
+
*/
|
|
2394
|
+
MachineType: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* 节点关联的安全组列表
|
|
2397
|
+
*/
|
|
2398
|
+
SecGroupId: {
|
|
2399
|
+
/**
|
|
2400
|
+
* 安全组 ID
|
|
2401
|
+
*/
|
|
2402
|
+
Id?: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* 安全组名称
|
|
2405
|
+
*/
|
|
2406
|
+
Name?: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* 安全组优先级
|
|
2409
|
+
*/
|
|
2410
|
+
Priority?: string;
|
|
2411
|
+
}[];
|
|
2412
|
+
}[];
|
|
2413
|
+
/**
|
|
2414
|
+
* 创建时间
|
|
2415
|
+
*/
|
|
2416
|
+
CreateTime?: number;
|
|
2417
|
+
/**
|
|
2418
|
+
* Node节点数量
|
|
2419
|
+
*/
|
|
2420
|
+
NodeCount?: number;
|
|
2421
|
+
/**
|
|
2422
|
+
* 集群apiserver地址
|
|
2423
|
+
*/
|
|
2424
|
+
ApiServer?: string;
|
|
2425
|
+
/**
|
|
2426
|
+
* 状态
|
|
2427
|
+
*/
|
|
2428
|
+
Status?: string;
|
|
2429
|
+
/**
|
|
2430
|
+
* 集群外部apiserver地址
|
|
2431
|
+
*/
|
|
2432
|
+
ExternalApiServer?: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* kube-proxy配置
|
|
2435
|
+
*/
|
|
2436
|
+
KubeProxy?: {
|
|
2437
|
+
/**
|
|
2438
|
+
* KubeProxy模式,枚举值为[ipvs,iptables]
|
|
2439
|
+
*/
|
|
2440
|
+
Mode?: string;
|
|
2441
|
+
};
|
|
2442
|
+
/**
|
|
2443
|
+
* K8S版本
|
|
2444
|
+
*/
|
|
2445
|
+
Version?: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* 自定义或者默认的clusterdomain
|
|
2448
|
+
*/
|
|
2449
|
+
ClusterDomain?: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* 集群etcd服务证书
|
|
2452
|
+
*/
|
|
2453
|
+
EtcdCert?: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* 集群etcd服务密钥
|
|
2456
|
+
*/
|
|
2457
|
+
EtcdKey?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* 集群CA根证书
|
|
2460
|
+
*/
|
|
2461
|
+
CACert?: string;
|
|
2462
|
+
/**
|
|
2463
|
+
* Master配置预警:Normal正常;Warning 需要升级;Error 需要紧急升级;
|
|
2464
|
+
*/
|
|
2465
|
+
MasterResourceStatus?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* CNI模式,可选值VPC/Calico
|
|
2468
|
+
*/
|
|
2469
|
+
CNIMode?: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* 集群的监控类型:no无监控;cloudwatch统一监控平台;prometheus内置监控
|
|
2472
|
+
*/
|
|
2473
|
+
MonitorType?: string;
|
|
2474
|
+
/**
|
|
2475
|
+
* 集群的节点伸缩(CA)配置
|
|
2476
|
+
*/
|
|
2477
|
+
Autoscaler?: {
|
|
2478
|
+
/**
|
|
2479
|
+
* 节点持续不需要后触发缩容的等待时间,单位分钟。
|
|
2480
|
+
*/
|
|
2481
|
+
ScaleDownUnneededTime: number;
|
|
2482
|
+
/**
|
|
2483
|
+
* 节点缩容利用率阈值,单位百分比,范围 0–100。
|
|
2484
|
+
*/
|
|
2485
|
+
ScaleDownUtilizationThreshold: number;
|
|
2486
|
+
/**
|
|
2487
|
+
* 添加节点后等待缩容的时间,单位分钟。
|
|
2488
|
+
*/
|
|
2489
|
+
ScaleDownDelayAfterAdd: number;
|
|
2490
|
+
/**
|
|
2491
|
+
* 打开/关闭
|
|
2492
|
+
*/
|
|
2493
|
+
Enabled: number;
|
|
2494
|
+
/**
|
|
2495
|
+
* 伸缩器版本
|
|
2496
|
+
*/
|
|
2497
|
+
Version: string;
|
|
2498
|
+
/**
|
|
2499
|
+
* 配置更新时间,Unix 时间戳,单位秒。
|
|
2500
|
+
*/
|
|
2501
|
+
UpdateTime: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* GPU 缩容利用率阈值,单位百分比,范围 0–100。
|
|
2504
|
+
*/
|
|
2505
|
+
ScaleDownGpuUtilizationThreshold: number;
|
|
2506
|
+
};
|
|
2507
|
+
/**
|
|
2508
|
+
* 是否开启了授权管理功能
|
|
2509
|
+
*/
|
|
2510
|
+
EnableUserAuth?: boolean;
|
|
2511
|
+
/**
|
|
2512
|
+
* Pod是否使用独立子网
|
|
2513
|
+
*/
|
|
2514
|
+
DedicatedPodSubnet?: boolean;
|
|
2515
|
+
/**
|
|
2516
|
+
* Pod使用的独立子网列表
|
|
2517
|
+
*/
|
|
2518
|
+
PodSubnetIds?: string[];
|
|
2519
|
+
/**
|
|
2520
|
+
* 删除保护开关。0表示不开启,1表示开启。默认不开启
|
|
2521
|
+
*/
|
|
2522
|
+
DeleteProtection?: number;
|
|
2523
|
+
/**
|
|
2524
|
+
* Pod独立子网内的ip使用的安全组
|
|
2525
|
+
*/
|
|
2526
|
+
PodSubnetSecGroups?: string[];
|
|
2527
|
+
/**
|
|
2528
|
+
* 节点网段
|
|
2529
|
+
*/
|
|
2530
|
+
NodeCIDR?: string;
|
|
2531
|
+
/**
|
|
2532
|
+
* 外部 API Server 负载均衡实例 ID
|
|
2533
|
+
*/
|
|
2534
|
+
ExternalUlb?: string;
|
|
2535
|
+
/**
|
|
2536
|
+
* 内部 API Server 负载均衡实例 ID
|
|
2537
|
+
*/
|
|
2538
|
+
InternalUlb?: string;
|
|
2539
|
+
/**
|
|
2540
|
+
* 更新时间
|
|
2541
|
+
*/
|
|
2542
|
+
UpdateTime?: number;
|
|
2543
|
+
/**
|
|
2544
|
+
* 负载均衡类型
|
|
2545
|
+
*/
|
|
2546
|
+
LbClass?: string;
|
|
2547
|
+
/**
|
|
2548
|
+
* 容器运行时名称
|
|
2549
|
+
*/
|
|
2550
|
+
RuntimeName?: string;
|
|
2551
|
+
/**
|
|
2552
|
+
* 容器运行时版本
|
|
2553
|
+
*/
|
|
2554
|
+
RuntimeVersion?: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* 集群版本
|
|
2557
|
+
*/
|
|
2558
|
+
ClusterType?: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* API Server 回环客户端证书
|
|
2561
|
+
*/
|
|
2562
|
+
LoopbackClientCert?: {
|
|
2563
|
+
/**
|
|
2564
|
+
* 证书到期时间
|
|
2565
|
+
*/
|
|
2566
|
+
ExpireTime?: number;
|
|
2567
|
+
/**
|
|
2568
|
+
* 证书是否进入过期告警状态
|
|
2569
|
+
*/
|
|
2570
|
+
Warn?: boolean;
|
|
2571
|
+
};
|
|
2572
|
+
}
|
|
2573
|
+
/**
|
|
2574
|
+
* DescribeUK8SImage - 获取UK8S支持的Node节点操作系统,可基于该操作系统制定自定义镜像
|
|
2575
|
+
*/
|
|
2576
|
+
export interface DescribeUK8SImageRequest {
|
|
2577
|
+
/**
|
|
2578
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
2579
|
+
*/
|
|
2580
|
+
Zone?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* 产品类型,可选值uhost、uphost,不填则返回所有
|
|
2583
|
+
*/
|
|
2584
|
+
ProductType?: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* 适用机型,如O、G、OPRO等,默认为O
|
|
2587
|
+
*/
|
|
2588
|
+
MachineType?: string;
|
|
2589
|
+
/**
|
|
2590
|
+
* 适用GPU类型,如1080Ti、4090、V100、A800等,MachineType为G时必须提供
|
|
2591
|
+
*/
|
|
2592
|
+
GPUType?: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* k8s集群版本,如1.28.15
|
|
2595
|
+
*/
|
|
2596
|
+
K8sVersion?: string;
|
|
2597
|
+
}
|
|
2598
|
+
/**
|
|
2599
|
+
* DescribeUK8SImage - 获取UK8S支持的Node节点操作系统,可基于该操作系统制定自定义镜像
|
|
2600
|
+
*/
|
|
2601
|
+
export interface DescribeUK8SImageResponse {
|
|
2602
|
+
/**
|
|
2603
|
+
* 虚拟机可用镜像集合, 详见ImageInfo 数组
|
|
2604
|
+
*/
|
|
2605
|
+
ImageSet?: {
|
|
2606
|
+
/**
|
|
2607
|
+
* 可用区 Id
|
|
2608
|
+
*/
|
|
2609
|
+
ZoneId: number;
|
|
2610
|
+
/**
|
|
2611
|
+
* 镜像 Id
|
|
2612
|
+
*/
|
|
2613
|
+
ImageId: string;
|
|
2614
|
+
/**
|
|
2615
|
+
* 镜像名称
|
|
2616
|
+
*/
|
|
2617
|
+
ImageName: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。
|
|
2620
|
+
*/
|
|
2621
|
+
NotSupportGPU: boolean;
|
|
2622
|
+
/**
|
|
2623
|
+
* OS 类型
|
|
2624
|
+
*/
|
|
2625
|
+
OsType: string;
|
|
2626
|
+
/**
|
|
2627
|
+
* OS 名称
|
|
2628
|
+
*/
|
|
2629
|
+
OsName: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* 镜像支持的特性
|
|
2632
|
+
*/
|
|
2633
|
+
Features?: string[];
|
|
2634
|
+
/**
|
|
2635
|
+
* 镜像大小
|
|
2636
|
+
*/
|
|
2637
|
+
ImageSize?: number;
|
|
2638
|
+
/**
|
|
2639
|
+
* 集成软件名称, 如NV驱动版本、cuda版本
|
|
2640
|
+
*/
|
|
2641
|
+
IntegratedSoftware?: string;
|
|
2642
|
+
/**
|
|
2643
|
+
* 支持的GPU机型
|
|
2644
|
+
*/
|
|
2645
|
+
SupportedGPUTypes?: string[];
|
|
2646
|
+
}[];
|
|
2647
|
+
/**
|
|
2648
|
+
* 裸金属可用镜像集合, 详见ImageInfo 数组
|
|
2649
|
+
*/
|
|
2650
|
+
PHostImageSet?: {
|
|
2651
|
+
/**
|
|
2652
|
+
* 可用区 Id
|
|
2653
|
+
*/
|
|
2654
|
+
ZoneId: number;
|
|
2655
|
+
/**
|
|
2656
|
+
* 镜像 Id
|
|
2657
|
+
*/
|
|
2658
|
+
ImageId: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* 镜像名称
|
|
2661
|
+
*/
|
|
2662
|
+
ImageName: string;
|
|
2663
|
+
/**
|
|
2664
|
+
* 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。
|
|
2665
|
+
*/
|
|
2666
|
+
NotSupportGPU: boolean;
|
|
2667
|
+
/**
|
|
2668
|
+
* OS 类型
|
|
2669
|
+
*/
|
|
2670
|
+
OsType: string;
|
|
2671
|
+
/**
|
|
2672
|
+
* OS 名称
|
|
2673
|
+
*/
|
|
2674
|
+
OsName: string;
|
|
2675
|
+
/**
|
|
2676
|
+
* 镜像支持的特性
|
|
2677
|
+
*/
|
|
2678
|
+
Features?: string[];
|
|
2679
|
+
/**
|
|
2680
|
+
* 镜像大小
|
|
2681
|
+
*/
|
|
2682
|
+
ImageSize?: number;
|
|
2683
|
+
/**
|
|
2684
|
+
* 集成软件名称, 如NV驱动版本、cuda版本
|
|
2685
|
+
*/
|
|
2686
|
+
IntegratedSoftware?: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* 支持的GPU机型
|
|
2689
|
+
*/
|
|
2690
|
+
SupportedGPUTypes?: string[];
|
|
2691
|
+
}[];
|
|
2692
|
+
/**
|
|
2693
|
+
* 虚拟机自制可用镜像集合, 详见ImageInfo 数组
|
|
2694
|
+
*/
|
|
2695
|
+
CustomImageSet?: {
|
|
2696
|
+
/**
|
|
2697
|
+
* 可用区 Id
|
|
2698
|
+
*/
|
|
2699
|
+
ZoneId: number;
|
|
2700
|
+
/**
|
|
2701
|
+
* 镜像 Id
|
|
2702
|
+
*/
|
|
2703
|
+
ImageId: string;
|
|
2704
|
+
/**
|
|
2705
|
+
* 镜像名称
|
|
2706
|
+
*/
|
|
2707
|
+
ImageName: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。
|
|
2710
|
+
*/
|
|
2711
|
+
NotSupportGPU: boolean;
|
|
2712
|
+
/**
|
|
2713
|
+
* OS 类型
|
|
2714
|
+
*/
|
|
2715
|
+
OsType: string;
|
|
2716
|
+
/**
|
|
2717
|
+
* OS 名称
|
|
2718
|
+
*/
|
|
2719
|
+
OsName: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* 镜像支持的特性
|
|
2722
|
+
*/
|
|
2723
|
+
Features?: string[];
|
|
2724
|
+
/**
|
|
2725
|
+
* 镜像大小
|
|
2726
|
+
*/
|
|
2727
|
+
ImageSize?: number;
|
|
2728
|
+
/**
|
|
2729
|
+
* 集成软件名称, 如NV驱动版本、cuda版本
|
|
2730
|
+
*/
|
|
2731
|
+
IntegratedSoftware?: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* 支持的GPU机型
|
|
2734
|
+
*/
|
|
2735
|
+
SupportedGPUTypes?: string[];
|
|
2736
|
+
}[];
|
|
2737
|
+
/**
|
|
2738
|
+
* 裸金属自制可用镜像集合, 详见ImageInfo 数组
|
|
2739
|
+
*/
|
|
2740
|
+
CustomPHostImageSet?: {
|
|
2741
|
+
/**
|
|
2742
|
+
* 可用区 Id
|
|
2743
|
+
*/
|
|
2744
|
+
ZoneId: number;
|
|
2745
|
+
/**
|
|
2746
|
+
* 镜像 Id
|
|
2747
|
+
*/
|
|
2748
|
+
ImageId: string;
|
|
2749
|
+
/**
|
|
2750
|
+
* 镜像名称
|
|
2751
|
+
*/
|
|
2752
|
+
ImageName: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。
|
|
2755
|
+
*/
|
|
2756
|
+
NotSupportGPU: boolean;
|
|
2757
|
+
/**
|
|
2758
|
+
* OS 类型
|
|
2759
|
+
*/
|
|
2760
|
+
OsType: string;
|
|
2761
|
+
/**
|
|
2762
|
+
* OS 名称
|
|
2763
|
+
*/
|
|
2764
|
+
OsName: string;
|
|
2765
|
+
/**
|
|
2766
|
+
* 镜像支持的特性
|
|
2767
|
+
*/
|
|
2768
|
+
Features?: string[];
|
|
2769
|
+
/**
|
|
2770
|
+
* 镜像大小
|
|
2771
|
+
*/
|
|
2772
|
+
ImageSize?: number;
|
|
2773
|
+
/**
|
|
2774
|
+
* 集成软件名称, 如NV驱动版本、cuda版本
|
|
2775
|
+
*/
|
|
2776
|
+
IntegratedSoftware?: string;
|
|
2777
|
+
/**
|
|
2778
|
+
* 支持的GPU机型
|
|
2779
|
+
*/
|
|
2780
|
+
SupportedGPUTypes?: string[];
|
|
2781
|
+
}[];
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* DescribeUK8SNode - 用于获取 UK8S 节点详情
|
|
2785
|
+
*/
|
|
2786
|
+
export interface DescribeUK8SNodeRequest {
|
|
2787
|
+
/**
|
|
2788
|
+
* UK8S 集群 Id
|
|
2789
|
+
*/
|
|
2790
|
+
ClusterId: string;
|
|
2791
|
+
/**
|
|
2792
|
+
* K8S 节点IP或者节点ID
|
|
2793
|
+
*/
|
|
2794
|
+
Name: string;
|
|
2795
|
+
}
|
|
2796
|
+
/**
|
|
2797
|
+
* DescribeUK8SNode - 用于获取 UK8S 节点详情
|
|
2798
|
+
*/
|
|
2799
|
+
export interface DescribeUK8SNodeResponse {
|
|
2800
|
+
/**
|
|
2801
|
+
* 节点名称
|
|
2802
|
+
*/
|
|
2803
|
+
Name: string;
|
|
2804
|
+
/**
|
|
2805
|
+
* 字符串数组,每一项是类似 "kubernetes.io/arch=amd64" 的标签
|
|
2806
|
+
*/
|
|
2807
|
+
Labels: string[];
|
|
2808
|
+
/**
|
|
2809
|
+
* 字符串数组,每一项是类似 "node.alpha.kubernetes.io/ttl=0" 的注解
|
|
2810
|
+
*/
|
|
2811
|
+
Annotations: string[];
|
|
2812
|
+
/**
|
|
2813
|
+
* 时间戳,单位是 秒
|
|
2814
|
+
*/
|
|
2815
|
+
CreationTimestamp: number;
|
|
2816
|
+
/**
|
|
2817
|
+
* 字符串,如:"UCloud://cn-sh2-02//uk8s-vsc0vgob-n-mpzxc"
|
|
2818
|
+
*/
|
|
2819
|
+
ProviderID: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* 内核版本,如:"4.19.0-6.el7.ucloud.x86_64"
|
|
2822
|
+
*/
|
|
2823
|
+
KernelVersion: string;
|
|
2824
|
+
/**
|
|
2825
|
+
* 操作系统类型,如:"CentOS Linux 7 (Core)"
|
|
2826
|
+
*/
|
|
2827
|
+
OSImage: string;
|
|
2828
|
+
/**
|
|
2829
|
+
* 容器运行时版本,如:"docker://18.9.9"
|
|
2830
|
+
*/
|
|
2831
|
+
ContainerRuntimeVersion: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* kubelet 版本
|
|
2834
|
+
*/
|
|
2835
|
+
KubeletVersion: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* kubeproxy 版本
|
|
2838
|
+
*/
|
|
2839
|
+
KubeProxyVersion: string;
|
|
2840
|
+
/**
|
|
2841
|
+
* 内部 IP 地址
|
|
2842
|
+
*/
|
|
2843
|
+
InternalIP: string;
|
|
2844
|
+
/**
|
|
2845
|
+
* 主机名
|
|
2846
|
+
*/
|
|
2847
|
+
Hostname: string;
|
|
2848
|
+
/**
|
|
2849
|
+
* 已分配到当前节点的 Pod 数量
|
|
2850
|
+
*/
|
|
2851
|
+
AllocatedPodCount: number;
|
|
2852
|
+
/**
|
|
2853
|
+
* 节点允许的可分配 Pod 最大数量
|
|
2854
|
+
*/
|
|
2855
|
+
PodCapacity: number;
|
|
2856
|
+
/**
|
|
2857
|
+
* 是否禁止调度
|
|
2858
|
+
*/
|
|
2859
|
+
Unschedulable: boolean;
|
|
2860
|
+
/**
|
|
2861
|
+
* 节点 CPU 总量
|
|
2862
|
+
*/
|
|
2863
|
+
CPUCapacity: string;
|
|
2864
|
+
/**
|
|
2865
|
+
* 节点内存总量
|
|
2866
|
+
*/
|
|
2867
|
+
MemoryCapacity: string;
|
|
2868
|
+
/**
|
|
2869
|
+
* 节点上已分配 Pod 的内存请求量
|
|
2870
|
+
*/
|
|
2871
|
+
MemoryRequests: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* 节点上已分配 Pod 的内存请求量占内存总量的比例,如返回值为 "4.5",则意味着请求量占总量的 4.5%
|
|
2874
|
+
*/
|
|
2875
|
+
MemoryRequestsFraction: string;
|
|
2876
|
+
/**
|
|
2877
|
+
* 节点上已分配 Pod 的内存限制量
|
|
2878
|
+
*/
|
|
2879
|
+
MemoryLimits: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* 节点上已分配 Pod 的内存限制量占内存总量的比例,如返回值为 "18",则意味着限制量占总量的 18%
|
|
2882
|
+
*/
|
|
2883
|
+
MemoryLimitsFraction: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* 节点上已分配 Pod 的 CPU 请求量
|
|
2886
|
+
*/
|
|
2887
|
+
CPURequests: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* 节点上已分配 Pod 的 CPU 请求量占 CPU 总量的比例
|
|
2890
|
+
*/
|
|
2891
|
+
CPURequestsFraction: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* 节点上已分配 Pod 的 CPU 限制值
|
|
2894
|
+
*/
|
|
2895
|
+
CPULimits: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* 节点上已分配 Pod 的 CPU 限制值占 CPU 总量的比例
|
|
2898
|
+
*/
|
|
2899
|
+
CPULimitsFraction: string;
|
|
2900
|
+
/**
|
|
2901
|
+
* 节点状态数组
|
|
2902
|
+
*/
|
|
2903
|
+
Conditions: {
|
|
2904
|
+
/**
|
|
2905
|
+
* Condition 类型,如 MemoryPressure、DiskPressure、PIDPressure、Ready
|
|
2906
|
+
*/
|
|
2907
|
+
Type?: string;
|
|
2908
|
+
/**
|
|
2909
|
+
* 状态,False、True
|
|
2910
|
+
*/
|
|
2911
|
+
Status?: string;
|
|
2912
|
+
/**
|
|
2913
|
+
* 最后一次上报状态的时间
|
|
2914
|
+
*/
|
|
2915
|
+
LastProbeTime?: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* 最后一次状态转变时间
|
|
2918
|
+
*/
|
|
2919
|
+
LastTransitionTime?: string;
|
|
2920
|
+
/**
|
|
2921
|
+
* 状态变化的原因
|
|
2922
|
+
*/
|
|
2923
|
+
Reason?: string;
|
|
2924
|
+
/**
|
|
2925
|
+
* 状态变化的描述信息
|
|
2926
|
+
*/
|
|
2927
|
+
Message?: string;
|
|
2928
|
+
}[];
|
|
2929
|
+
/**
|
|
2930
|
+
* 节点上镜像名称数组
|
|
1794
2931
|
*/
|
|
1795
|
-
|
|
2932
|
+
ContainerImages: string[];
|
|
1796
2933
|
/**
|
|
1797
|
-
*
|
|
2934
|
+
* 字符串数组,每一项是类似 "node-role.kubernetes.io/master:NoSchedule" 的污点
|
|
1798
2935
|
*/
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
2936
|
+
Taints?: string[];
|
|
2937
|
+
}
|
|
2938
|
+
/**
|
|
2939
|
+
* EnableUK8SAutoscaler - 开启/关闭伸缩器
|
|
2940
|
+
*/
|
|
2941
|
+
export interface EnableUK8SAutoscalerRequest {
|
|
1805
2942
|
/**
|
|
1806
|
-
*
|
|
2943
|
+
* 集群ID
|
|
1807
2944
|
*/
|
|
1808
|
-
|
|
2945
|
+
ClusterId: string;
|
|
1809
2946
|
/**
|
|
1810
|
-
*
|
|
2947
|
+
* 1开启;0关闭
|
|
1811
2948
|
*/
|
|
1812
|
-
|
|
2949
|
+
Enabled: number;
|
|
2950
|
+
}
|
|
2951
|
+
/**
|
|
2952
|
+
* EnableUK8SAutoscaler - 开启/关闭伸缩器
|
|
2953
|
+
*/
|
|
2954
|
+
export interface EnableUK8SAutoscalerResponse {
|
|
2955
|
+
}
|
|
2956
|
+
/**
|
|
2957
|
+
* GetClusterConfig - 获取集群配置文件,管理集群的凭证
|
|
2958
|
+
*/
|
|
2959
|
+
export interface GetClusterConfigRequest {
|
|
1813
2960
|
/**
|
|
1814
|
-
* 集群
|
|
2961
|
+
* 集群ID
|
|
1815
2962
|
*/
|
|
1816
|
-
|
|
2963
|
+
ClusterId: string;
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* GetClusterConfig - 获取集群配置文件,管理集群的凭证
|
|
2967
|
+
*/
|
|
2968
|
+
export interface GetClusterConfigResponse {
|
|
1817
2969
|
/**
|
|
1818
|
-
*
|
|
2970
|
+
* 配置信息
|
|
1819
2971
|
*/
|
|
1820
|
-
|
|
2972
|
+
KubeConfig: string;
|
|
1821
2973
|
/**
|
|
1822
|
-
*
|
|
2974
|
+
* 开启公网apiserver的情况下,有数据返回。
|
|
1823
2975
|
*/
|
|
1824
|
-
|
|
2976
|
+
ExternalKubeConfig?: string;
|
|
1825
2977
|
/**
|
|
1826
|
-
*
|
|
2978
|
+
* 用于标示 kubeconfig 是否可以进行替换更新
|
|
1827
2979
|
*/
|
|
1828
|
-
|
|
2980
|
+
Updatable?: boolean;
|
|
2981
|
+
}
|
|
2982
|
+
/**
|
|
2983
|
+
* GetUK8SAvailableInstanceTypes - 获取uk8s节点可用机型
|
|
2984
|
+
*/
|
|
2985
|
+
export interface GetUK8SAvailableInstanceTypesRequest {
|
|
1829
2986
|
/**
|
|
1830
|
-
*
|
|
2987
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
1831
2988
|
*/
|
|
1832
|
-
|
|
2989
|
+
Zone?: string;
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* GetUK8SAvailableInstanceTypes - 获取uk8s节点可用机型
|
|
2993
|
+
*/
|
|
2994
|
+
export interface GetUK8SAvailableInstanceTypesResponse {
|
|
1833
2995
|
/**
|
|
1834
|
-
*
|
|
2996
|
+
* 当前区域是否可售
|
|
1835
2997
|
*/
|
|
1836
|
-
|
|
2998
|
+
Status?: string;
|
|
1837
2999
|
/**
|
|
1838
|
-
*
|
|
3000
|
+
* UK8S 支持的可用机型列表
|
|
1839
3001
|
*/
|
|
1840
|
-
|
|
3002
|
+
AvailableInstanceTypes?: {
|
|
1841
3003
|
/**
|
|
1842
|
-
*
|
|
3004
|
+
* 可用区
|
|
1843
3005
|
*/
|
|
1844
|
-
|
|
3006
|
+
Zone?: string;
|
|
1845
3007
|
/**
|
|
1846
|
-
*
|
|
3008
|
+
* 机型名称
|
|
1847
3009
|
*/
|
|
1848
|
-
|
|
3010
|
+
Name?: string;
|
|
1849
3011
|
/**
|
|
1850
|
-
*
|
|
3012
|
+
* 机型状态
|
|
1851
3013
|
*/
|
|
1852
|
-
|
|
3014
|
+
Status?: string;
|
|
1853
3015
|
/**
|
|
1854
|
-
*
|
|
3016
|
+
* 机型描述
|
|
1855
3017
|
*/
|
|
1856
|
-
|
|
3018
|
+
Description?: string;
|
|
1857
3019
|
/**
|
|
1858
|
-
*
|
|
3020
|
+
* 主机系列列表
|
|
1859
3021
|
*/
|
|
1860
|
-
|
|
3022
|
+
UHostFamilies?: {
|
|
3023
|
+
/**
|
|
3024
|
+
* 规格族名称
|
|
3025
|
+
*/
|
|
3026
|
+
Name?: string;
|
|
3027
|
+
/**
|
|
3028
|
+
* CPU 频率
|
|
3029
|
+
*/
|
|
3030
|
+
CpuFrequency?: string;
|
|
3031
|
+
/**
|
|
3032
|
+
* 支持的 CPU 平台
|
|
3033
|
+
*/
|
|
3034
|
+
CpuPlatforms?: {
|
|
3035
|
+
/**
|
|
3036
|
+
* CPU 平台名称
|
|
3037
|
+
*/
|
|
3038
|
+
Name?: string;
|
|
3039
|
+
/**
|
|
3040
|
+
* CPU 型号列表
|
|
3041
|
+
*/
|
|
3042
|
+
CpuModels?: string[];
|
|
3043
|
+
/**
|
|
3044
|
+
* CPU 频率
|
|
3045
|
+
*/
|
|
3046
|
+
CpuFrequency?: string;
|
|
3047
|
+
}[];
|
|
3048
|
+
}[];
|
|
1861
3049
|
/**
|
|
1862
|
-
*
|
|
3050
|
+
* 支持的磁盘配置
|
|
1863
3051
|
*/
|
|
1864
|
-
|
|
3052
|
+
Disks?: {
|
|
3053
|
+
/**
|
|
3054
|
+
* 磁盘配置名称
|
|
3055
|
+
*/
|
|
3056
|
+
Name?: string;
|
|
3057
|
+
/**
|
|
3058
|
+
* 支持的系统盘配置
|
|
3059
|
+
*/
|
|
3060
|
+
BootDisk?: {
|
|
3061
|
+
/**
|
|
3062
|
+
* 系统盘类型名称
|
|
3063
|
+
*/
|
|
3064
|
+
Name?: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* 是否支持即时扩容
|
|
3067
|
+
*/
|
|
3068
|
+
InstantResize?: boolean;
|
|
3069
|
+
/**
|
|
3070
|
+
* 最大磁盘容量
|
|
3071
|
+
*/
|
|
3072
|
+
MaximalSize?: number;
|
|
3073
|
+
/**
|
|
3074
|
+
* 磁盘特性列表
|
|
3075
|
+
*/
|
|
3076
|
+
Features?: string[];
|
|
3077
|
+
}[];
|
|
3078
|
+
/**
|
|
3079
|
+
* 支持的数据盘配置
|
|
3080
|
+
*/
|
|
3081
|
+
DataDisk?: {
|
|
3082
|
+
/**
|
|
3083
|
+
* 数据盘类型名称
|
|
3084
|
+
*/
|
|
3085
|
+
Name?: string;
|
|
3086
|
+
/**
|
|
3087
|
+
* 最小磁盘容量
|
|
3088
|
+
*/
|
|
3089
|
+
MinimalSize?: number;
|
|
3090
|
+
/**
|
|
3091
|
+
* 最大磁盘容量
|
|
3092
|
+
*/
|
|
3093
|
+
MaximalSize?: number;
|
|
3094
|
+
/**
|
|
3095
|
+
* 磁盘特性列表
|
|
3096
|
+
*/
|
|
3097
|
+
Features?: string[];
|
|
3098
|
+
}[];
|
|
3099
|
+
}[];
|
|
1865
3100
|
/**
|
|
1866
|
-
*
|
|
3101
|
+
* 支持的机型规格
|
|
1867
3102
|
*/
|
|
1868
|
-
|
|
1869
|
-
|
|
3103
|
+
MachineSizes?: {
|
|
3104
|
+
/**
|
|
3105
|
+
* GPU 数量
|
|
3106
|
+
*/
|
|
3107
|
+
Gpu?: number;
|
|
3108
|
+
/**
|
|
3109
|
+
* CPU 与内存规格组合
|
|
3110
|
+
*/
|
|
3111
|
+
Collection?: {
|
|
3112
|
+
/**
|
|
3113
|
+
* CPU 核数
|
|
3114
|
+
*/
|
|
3115
|
+
Cpu?: number;
|
|
3116
|
+
/**
|
|
3117
|
+
* 可用内存容量列表
|
|
3118
|
+
*/
|
|
3119
|
+
Memory?: number[];
|
|
3120
|
+
/**
|
|
3121
|
+
* 最低 CPU 平台列表
|
|
3122
|
+
*/
|
|
3123
|
+
MinimalCpuPlatform?: string[];
|
|
3124
|
+
}[];
|
|
3125
|
+
}[];
|
|
3126
|
+
/**
|
|
3127
|
+
* 机型特性列表
|
|
3128
|
+
*/
|
|
3129
|
+
Features?: {
|
|
3130
|
+
/**
|
|
3131
|
+
* 特性名称
|
|
3132
|
+
*/
|
|
3133
|
+
Name?: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* 特性模式列表
|
|
3136
|
+
*/
|
|
3137
|
+
Modes?: {
|
|
3138
|
+
/**
|
|
3139
|
+
* 模式名称
|
|
3140
|
+
*/
|
|
3141
|
+
Name?: string;
|
|
3142
|
+
/**
|
|
3143
|
+
* 关联的镜像特性
|
|
3144
|
+
*/
|
|
3145
|
+
RelatedToImageFeature?: string[];
|
|
3146
|
+
/**
|
|
3147
|
+
* 最低 CPU 平台列表
|
|
3148
|
+
*/
|
|
3149
|
+
MinimalCpuPlatform?: string[];
|
|
3150
|
+
}[];
|
|
3151
|
+
}[];
|
|
3152
|
+
/**
|
|
3153
|
+
* 机型类别
|
|
3154
|
+
*/
|
|
3155
|
+
MachineClass?: string;
|
|
3156
|
+
/**
|
|
3157
|
+
* 实例类型
|
|
3158
|
+
*/
|
|
3159
|
+
InstanceType?: string;
|
|
3160
|
+
/**
|
|
3161
|
+
* 父机型类型
|
|
3162
|
+
*/
|
|
3163
|
+
ParentType?: string;
|
|
3164
|
+
/**
|
|
3165
|
+
* 显存信息
|
|
3166
|
+
*/
|
|
3167
|
+
GraphicsMemory?: {
|
|
3168
|
+
/**
|
|
3169
|
+
* 数值
|
|
3170
|
+
*/
|
|
3171
|
+
Value?: number;
|
|
3172
|
+
/**
|
|
3173
|
+
* 评分
|
|
3174
|
+
*/
|
|
3175
|
+
Rate?: number;
|
|
3176
|
+
};
|
|
3177
|
+
/**
|
|
3178
|
+
* 性能信息
|
|
3179
|
+
*/
|
|
3180
|
+
Performance?: {
|
|
3181
|
+
/**
|
|
3182
|
+
* 数值
|
|
3183
|
+
*/
|
|
3184
|
+
Value?: number;
|
|
3185
|
+
/**
|
|
3186
|
+
* 评分
|
|
3187
|
+
*/
|
|
3188
|
+
Rate?: number;
|
|
3189
|
+
};
|
|
3190
|
+
}[];
|
|
3191
|
+
}
|
|
3192
|
+
/**
|
|
3193
|
+
* GetUK8SCNINodeInfo - 获取 UK8S 集群各节点的 CNI 版本、状态及版本同步情况。
|
|
3194
|
+
*/
|
|
3195
|
+
export interface GetUK8SCNINodeInfoRequest {
|
|
1870
3196
|
/**
|
|
1871
|
-
*
|
|
3197
|
+
* 可用区,可选。
|
|
1872
3198
|
*/
|
|
1873
|
-
|
|
3199
|
+
Zone?: string;
|
|
1874
3200
|
/**
|
|
1875
|
-
*
|
|
3201
|
+
* UK8S 集群 ID
|
|
1876
3202
|
*/
|
|
1877
|
-
|
|
3203
|
+
ClusterId: string;
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* GetUK8SCNINodeInfo - 获取 UK8S 集群各节点的 CNI 版本、状态及版本同步情况。
|
|
3207
|
+
*/
|
|
3208
|
+
export interface GetUK8SCNINodeInfoResponse {
|
|
1878
3209
|
/**
|
|
1879
|
-
*
|
|
3210
|
+
* 节点 CNI 信息列表
|
|
1880
3211
|
*/
|
|
1881
|
-
|
|
3212
|
+
NodeInfoSet?: {
|
|
3213
|
+
/**
|
|
3214
|
+
* Node节点名称
|
|
3215
|
+
*/
|
|
3216
|
+
Node: string;
|
|
3217
|
+
/**
|
|
3218
|
+
* 插件版本
|
|
3219
|
+
*/
|
|
3220
|
+
Version?: string;
|
|
3221
|
+
/**
|
|
3222
|
+
* 插件工作状态,0:未知,1:正常,2:异常, 3: 升级中
|
|
3223
|
+
*/
|
|
3224
|
+
Status?: number;
|
|
3225
|
+
/**
|
|
3226
|
+
* 插件信息更新时间
|
|
3227
|
+
*/
|
|
3228
|
+
UpdateTime?: number;
|
|
3229
|
+
/**
|
|
3230
|
+
* 上次插件操作结果,0:没有上次操作结果,或当前正在执行升级或查询 1:获取成功 2 获取失败 3 升级成功 4 升级失败
|
|
3231
|
+
*/
|
|
3232
|
+
OperationResult?: number;
|
|
3233
|
+
/**
|
|
3234
|
+
* Node节点IP
|
|
3235
|
+
*/
|
|
3236
|
+
IP?: string;
|
|
3237
|
+
}[];
|
|
1882
3238
|
/**
|
|
1883
|
-
*
|
|
3239
|
+
* 数据来源:database 表示数据库记录,ipamd_http 表示通过 ipamd 实时查询。
|
|
1884
3240
|
*/
|
|
1885
|
-
|
|
3241
|
+
DataSource?: string;
|
|
1886
3242
|
/**
|
|
1887
|
-
*
|
|
3243
|
+
* 是否存在部分节点实时查询失败
|
|
1888
3244
|
*/
|
|
1889
|
-
|
|
3245
|
+
Partial?: boolean;
|
|
1890
3246
|
/**
|
|
1891
|
-
*
|
|
3247
|
+
* 节点中的最高有效 CNI 版本
|
|
1892
3248
|
*/
|
|
1893
|
-
|
|
3249
|
+
HighestVersion?: string;
|
|
1894
3250
|
/**
|
|
1895
|
-
*
|
|
3251
|
+
* 是否所有节点实时查询成功且 CNI 版本一致。数据来源为 database 时返回 false。
|
|
1896
3252
|
*/
|
|
1897
|
-
|
|
3253
|
+
AllNodesSynced?: boolean;
|
|
3254
|
+
}
|
|
3255
|
+
/**
|
|
3256
|
+
* GetUK8SIpamdStatus - 查询 ipamd 插件的安装状态、版本、CNI 初始化模式及模式切换能力。
|
|
3257
|
+
*/
|
|
3258
|
+
export interface GetUK8SIpamdStatusRequest {
|
|
1898
3259
|
/**
|
|
1899
|
-
*
|
|
3260
|
+
* 可用区,可选。
|
|
1900
3261
|
*/
|
|
1901
|
-
|
|
3262
|
+
Zone?: string;
|
|
1902
3263
|
/**
|
|
1903
|
-
*
|
|
3264
|
+
* 集群id
|
|
1904
3265
|
*/
|
|
1905
|
-
|
|
3266
|
+
ClusterId: string;
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* GetUK8SIpamdStatus - 查询 ipamd 插件的安装状态、版本、CNI 初始化模式及模式切换能力。
|
|
3270
|
+
*/
|
|
3271
|
+
export interface GetUK8SIpamdStatusResponse {
|
|
1906
3272
|
/**
|
|
1907
|
-
*
|
|
3273
|
+
* 是否已经安装
|
|
1908
3274
|
*/
|
|
1909
|
-
|
|
3275
|
+
Installed: boolean;
|
|
1910
3276
|
/**
|
|
1911
|
-
*
|
|
3277
|
+
* 当前ipamd的版本
|
|
1912
3278
|
*/
|
|
1913
|
-
|
|
3279
|
+
Version: string;
|
|
1914
3280
|
/**
|
|
1915
|
-
*
|
|
3281
|
+
* ipamd可用最新版本
|
|
1916
3282
|
*/
|
|
1917
|
-
|
|
3283
|
+
LastVersion: string;
|
|
1918
3284
|
/**
|
|
1919
|
-
*
|
|
3285
|
+
* 最新版本的发布日期
|
|
1920
3286
|
*/
|
|
1921
|
-
|
|
3287
|
+
ReleaseDate: number;
|
|
1922
3288
|
/**
|
|
1923
|
-
*
|
|
3289
|
+
* 当前 ipamd 插件的创建时间,Unix 时间戳,单位秒。
|
|
1924
3290
|
*/
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
};
|
|
3291
|
+
OpenTime: number;
|
|
3292
|
+
/**
|
|
3293
|
+
* 当前 CNI 初始化模式。
|
|
3294
|
+
*/
|
|
3295
|
+
CNIInitMode?: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* 当前已安装的 ipamd 版本是否支持切换 CNI 初始化模式。
|
|
3298
|
+
*/
|
|
3299
|
+
CNIInitVersionReady?: boolean;
|
|
1935
3300
|
}
|
|
1936
3301
|
/**
|
|
1937
|
-
*
|
|
3302
|
+
* GetUK8SLoadBalancerController - 获取 uk8s LoadBalancerController 信息
|
|
1938
3303
|
*/
|
|
1939
|
-
export interface
|
|
3304
|
+
export interface GetUK8SLoadBalancerControllerRequest {
|
|
1940
3305
|
/**
|
|
1941
|
-
*
|
|
3306
|
+
* 可用区,可选。
|
|
1942
3307
|
*/
|
|
1943
3308
|
Zone?: string;
|
|
1944
3309
|
/**
|
|
1945
|
-
*
|
|
3310
|
+
* 集群 id
|
|
3311
|
+
*/
|
|
3312
|
+
ClusterId: string;
|
|
3313
|
+
}
|
|
3314
|
+
/**
|
|
3315
|
+
* GetUK8SLoadBalancerController - 获取 uk8s LoadBalancerController 信息
|
|
3316
|
+
*/
|
|
3317
|
+
export interface GetUK8SLoadBalancerControllerResponse {
|
|
3318
|
+
/**
|
|
3319
|
+
* 最新可用版本。
|
|
3320
|
+
*/
|
|
3321
|
+
LastVersion: string;
|
|
3322
|
+
/**
|
|
3323
|
+
* 当前安装版本。
|
|
3324
|
+
*/
|
|
3325
|
+
Version: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* 是否安装
|
|
3328
|
+
*/
|
|
3329
|
+
Installed: boolean;
|
|
3330
|
+
/**
|
|
3331
|
+
* 安装时间,Unix 时间戳,单位秒。
|
|
1946
3332
|
*/
|
|
1947
|
-
|
|
3333
|
+
CreateTime: number;
|
|
1948
3334
|
/**
|
|
1949
|
-
*
|
|
3335
|
+
* 运行状态:unknown、running、notReady。
|
|
1950
3336
|
*/
|
|
1951
|
-
|
|
3337
|
+
Status: string;
|
|
3338
|
+
}
|
|
3339
|
+
/**
|
|
3340
|
+
* GetUK8SNodeGroup - 列出某个UK8S节点池
|
|
3341
|
+
*/
|
|
3342
|
+
export interface GetUK8SNodeGroupRequest {
|
|
1952
3343
|
/**
|
|
1953
|
-
*
|
|
3344
|
+
* 集群ID
|
|
1954
3345
|
*/
|
|
1955
|
-
|
|
3346
|
+
ClusterId: string;
|
|
1956
3347
|
/**
|
|
1957
|
-
*
|
|
3348
|
+
* 节点池Id
|
|
1958
3349
|
*/
|
|
1959
|
-
|
|
3350
|
+
NodeGroupId: string;
|
|
1960
3351
|
}
|
|
1961
3352
|
/**
|
|
1962
|
-
*
|
|
3353
|
+
* GetUK8SNodeGroup - 列出某个UK8S节点池
|
|
1963
3354
|
*/
|
|
1964
|
-
export interface
|
|
3355
|
+
export interface GetUK8SNodeGroupResponse {
|
|
1965
3356
|
/**
|
|
1966
|
-
*
|
|
3357
|
+
* 指定节点池的配置与关联信息
|
|
1967
3358
|
*/
|
|
1968
|
-
|
|
3359
|
+
NodeGroup?: {
|
|
1969
3360
|
/**
|
|
1970
|
-
*
|
|
3361
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
1971
3362
|
*/
|
|
1972
|
-
|
|
3363
|
+
Zone?: string;
|
|
1973
3364
|
/**
|
|
1974
|
-
*
|
|
3365
|
+
* 镜像状态:Unknown、Normal、Deleted、NotLatest
|
|
1975
3366
|
*/
|
|
1976
|
-
|
|
3367
|
+
ImageStatus: string;
|
|
1977
3368
|
/**
|
|
1978
|
-
*
|
|
3369
|
+
* 数据盘加密密钥 ID
|
|
1979
3370
|
*/
|
|
1980
|
-
|
|
3371
|
+
DataDiskKmsKeyId: string;
|
|
1981
3372
|
/**
|
|
1982
|
-
*
|
|
3373
|
+
* 节点池ID
|
|
1983
3374
|
*/
|
|
1984
|
-
|
|
3375
|
+
NodeGroupId?: string;
|
|
1985
3376
|
/**
|
|
1986
|
-
*
|
|
3377
|
+
* 节点池名字
|
|
1987
3378
|
*/
|
|
1988
|
-
|
|
3379
|
+
NodeGroupName?: string;
|
|
1989
3380
|
/**
|
|
1990
|
-
*
|
|
3381
|
+
* 自定义Uhost主机名前缀。完整的自定义Uhost主机名为{NodeNamePrefix}-{NodeIP}。
|
|
1991
3382
|
*/
|
|
1992
|
-
|
|
3383
|
+
NodeNamePrefix?: string;
|
|
1993
3384
|
/**
|
|
1994
|
-
*
|
|
3385
|
+
* 镜像ID
|
|
1995
3386
|
*/
|
|
1996
|
-
|
|
3387
|
+
ImageId?: string;
|
|
1997
3388
|
/**
|
|
1998
|
-
*
|
|
3389
|
+
* 机型
|
|
1999
3390
|
*/
|
|
2000
|
-
|
|
3391
|
+
MachineType?: string;
|
|
2001
3392
|
/**
|
|
2002
|
-
*
|
|
3393
|
+
* cpu平台
|
|
2003
3394
|
*/
|
|
2004
|
-
|
|
3395
|
+
MinimalCpuPlatform?: string;
|
|
2005
3396
|
/**
|
|
2006
|
-
*
|
|
3397
|
+
* 主机规格族
|
|
2007
3398
|
*/
|
|
2008
|
-
|
|
2009
|
-
}[];
|
|
2010
|
-
/**
|
|
2011
|
-
* 裸金属可用镜像集合, 详见ImageInfo 数组
|
|
2012
|
-
*/
|
|
2013
|
-
PHostImageSet?: {
|
|
3399
|
+
UHostFamily?: string;
|
|
2014
3400
|
/**
|
|
2015
|
-
*
|
|
3401
|
+
* 虚拟CPU核数
|
|
2016
3402
|
*/
|
|
2017
|
-
|
|
3403
|
+
CPU?: number;
|
|
2018
3404
|
/**
|
|
2019
|
-
*
|
|
3405
|
+
* 内存大小
|
|
2020
3406
|
*/
|
|
2021
|
-
|
|
3407
|
+
Mem?: number;
|
|
2022
3408
|
/**
|
|
2023
|
-
*
|
|
3409
|
+
* GPU类型
|
|
2024
3410
|
*/
|
|
2025
|
-
|
|
3411
|
+
GpuType?: string;
|
|
2026
3412
|
/**
|
|
2027
|
-
*
|
|
3413
|
+
* GPU卡核心数
|
|
2028
3414
|
*/
|
|
2029
|
-
|
|
3415
|
+
GPU?: number;
|
|
2030
3416
|
/**
|
|
2031
|
-
*
|
|
3417
|
+
* 系统盘类型
|
|
2032
3418
|
*/
|
|
2033
|
-
|
|
3419
|
+
BootDiskType?: string;
|
|
2034
3420
|
/**
|
|
2035
|
-
*
|
|
3421
|
+
* 系统盘大小
|
|
2036
3422
|
*/
|
|
2037
|
-
|
|
3423
|
+
BootDiskSize?: number;
|
|
2038
3424
|
/**
|
|
2039
|
-
*
|
|
3425
|
+
* 数据盘大小
|
|
2040
3426
|
*/
|
|
2041
|
-
|
|
3427
|
+
DataDiskSize?: number;
|
|
2042
3428
|
/**
|
|
2043
|
-
*
|
|
3429
|
+
* 数据盘类型
|
|
2044
3430
|
*/
|
|
2045
|
-
|
|
3431
|
+
DataDiskType?: string;
|
|
2046
3432
|
/**
|
|
2047
|
-
*
|
|
3433
|
+
* 业务组
|
|
2048
3434
|
*/
|
|
2049
|
-
|
|
3435
|
+
Tag?: string;
|
|
2050
3436
|
/**
|
|
2051
|
-
*
|
|
3437
|
+
* 付费方式
|
|
2052
3438
|
*/
|
|
2053
|
-
|
|
2054
|
-
}[];
|
|
2055
|
-
/**
|
|
2056
|
-
* 虚拟机自制可用镜像集合, 详见ImageInfo 数组
|
|
2057
|
-
*/
|
|
2058
|
-
CustomImageSet?: {
|
|
3439
|
+
ChargeType?: string;
|
|
2059
3440
|
/**
|
|
2060
|
-
*
|
|
3441
|
+
* 节点id列表
|
|
2061
3442
|
*/
|
|
2062
|
-
|
|
3443
|
+
NodeList?: string[];
|
|
2063
3444
|
/**
|
|
2064
|
-
*
|
|
3445
|
+
* 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。
|
|
2065
3446
|
*/
|
|
2066
|
-
|
|
3447
|
+
SubnetId?: string;
|
|
3448
|
+
/**
|
|
3449
|
+
* 硬件隔离组id。可通过DescribeIsolationGroup获取。
|
|
3450
|
+
*/
|
|
3451
|
+
IsolationGroupId?: string;
|
|
3452
|
+
/**
|
|
3453
|
+
* int默认110,生产环境建议小于等于110。
|
|
3454
|
+
*/
|
|
3455
|
+
MaxPods?: number;
|
|
3456
|
+
/**
|
|
3457
|
+
* 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。
|
|
3458
|
+
*/
|
|
3459
|
+
UserData?: string;
|
|
3460
|
+
/**
|
|
3461
|
+
* 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。
|
|
3462
|
+
*/
|
|
3463
|
+
InitScript?: string;
|
|
3464
|
+
/**
|
|
3465
|
+
* Node节点污点,形式为key=value:effect,多组taints用”,“隔开,最多支持五组。
|
|
3466
|
+
*/
|
|
3467
|
+
Taints?: string;
|
|
3468
|
+
/**
|
|
3469
|
+
* Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game
|
|
3470
|
+
*/
|
|
3471
|
+
Labels?: string;
|
|
3472
|
+
/**
|
|
3473
|
+
* Node所属的安全组id(最多5个)
|
|
3474
|
+
*/
|
|
3475
|
+
SecGroupId?: {
|
|
3476
|
+
/**
|
|
3477
|
+
* 安全组 ID
|
|
3478
|
+
*/
|
|
3479
|
+
Id?: string;
|
|
3480
|
+
/**
|
|
3481
|
+
* 安全组名称
|
|
3482
|
+
*/
|
|
3483
|
+
Name?: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* 安全组优先级
|
|
3486
|
+
*/
|
|
3487
|
+
Priority?: string;
|
|
3488
|
+
}[];
|
|
3489
|
+
/**
|
|
3490
|
+
* 主机安全模式。Firewall:防火墙;SecGroup:安全组;默认值:Firewall。
|
|
3491
|
+
*/
|
|
3492
|
+
SecurityMode?: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。
|
|
3495
|
+
*/
|
|
3496
|
+
SecurityGroupId?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* Node节点网卡配置
|
|
3499
|
+
*/
|
|
3500
|
+
NetworkInterface?: {
|
|
3501
|
+
/**
|
|
3502
|
+
* EIP
|
|
3503
|
+
*/
|
|
3504
|
+
EIP?: {
|
|
3505
|
+
/**
|
|
3506
|
+
* 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
|
|
3507
|
+
*/
|
|
3508
|
+
Bandwidth?: number;
|
|
3509
|
+
/**
|
|
3510
|
+
* 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
|
|
3511
|
+
*/
|
|
3512
|
+
PayMode?: string;
|
|
3513
|
+
/**
|
|
3514
|
+
* 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
3515
|
+
*/
|
|
3516
|
+
ShareBandwidthId?: string;
|
|
3517
|
+
/**
|
|
3518
|
+
* 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International,BGP: Bgp。 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
|
|
3519
|
+
*/
|
|
3520
|
+
OperatorName?: string;
|
|
3521
|
+
/**
|
|
3522
|
+
* 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
|
|
3523
|
+
*/
|
|
3524
|
+
CouponId?: string;
|
|
3525
|
+
};
|
|
3526
|
+
}[];
|
|
3527
|
+
/**
|
|
3528
|
+
* KubeletConfiguration
|
|
3529
|
+
*/
|
|
3530
|
+
KubeletConfiguration?: {
|
|
3531
|
+
/**
|
|
3532
|
+
* 最大日志文件数量
|
|
3533
|
+
*/
|
|
3534
|
+
ContainerLogMaxFiles?: number;
|
|
3535
|
+
/**
|
|
3536
|
+
* 最大日志文件大小
|
|
3537
|
+
*/
|
|
3538
|
+
ContainerLogMaxSize?: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* 硬性驱逐条件,EvictionCondition类型
|
|
3541
|
+
*/
|
|
3542
|
+
EvictionHard?: {
|
|
3543
|
+
/**
|
|
3544
|
+
* 内存相关驱逐条件或宽限时间。
|
|
3545
|
+
*/
|
|
3546
|
+
MemoryAvailable?: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
3549
|
+
*/
|
|
3550
|
+
ImagefsAvailable?: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* 节点存储余量相关驱逐条件或宽限时间。
|
|
3553
|
+
*/
|
|
3554
|
+
NodefsAvailable?: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* 节点剩余inodes驱逐条件或宽限时间。
|
|
3557
|
+
*/
|
|
3558
|
+
NodefsInodesFree?: string;
|
|
3559
|
+
};
|
|
3560
|
+
/**
|
|
3561
|
+
* 软性驱逐条件,EvictionCondition类型
|
|
3562
|
+
*/
|
|
3563
|
+
EvictionSoft?: {
|
|
3564
|
+
/**
|
|
3565
|
+
* 内存相关驱逐条件或宽限时间。
|
|
3566
|
+
*/
|
|
3567
|
+
MemoryAvailable?: string;
|
|
3568
|
+
/**
|
|
3569
|
+
* 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
3570
|
+
*/
|
|
3571
|
+
ImagefsAvailable?: string;
|
|
3572
|
+
/**
|
|
3573
|
+
* 节点存储余量相关驱逐条件或宽限时间。
|
|
3574
|
+
*/
|
|
3575
|
+
NodefsAvailable?: string;
|
|
3576
|
+
/**
|
|
3577
|
+
* 节点剩余inodes驱逐条件或宽限时间。
|
|
3578
|
+
*/
|
|
3579
|
+
NodefsInodesFree?: string;
|
|
3580
|
+
};
|
|
3581
|
+
/**
|
|
3582
|
+
* 软性驱逐宽限时间,EvictionCondition类型
|
|
3583
|
+
*/
|
|
3584
|
+
EvictionSoftGracePeriod?: {
|
|
3585
|
+
/**
|
|
3586
|
+
* 内存相关驱逐条件或宽限时间。
|
|
3587
|
+
*/
|
|
3588
|
+
MemoryAvailable?: string;
|
|
3589
|
+
/**
|
|
3590
|
+
* 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
3591
|
+
*/
|
|
3592
|
+
ImagefsAvailable?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* 节点存储余量相关驱逐条件或宽限时间。
|
|
3595
|
+
*/
|
|
3596
|
+
NodefsAvailable?: string;
|
|
3597
|
+
/**
|
|
3598
|
+
* 节点剩余inodes驱逐条件或宽限时间。
|
|
3599
|
+
*/
|
|
3600
|
+
NodefsInodesFree?: string;
|
|
3601
|
+
};
|
|
3602
|
+
/**
|
|
3603
|
+
* 镜像垃圾收集阈值
|
|
3604
|
+
*/
|
|
3605
|
+
ImageGCHighThresholdPercent?: number;
|
|
3606
|
+
/**
|
|
3607
|
+
* 停止镜像垃圾收集阈值
|
|
3608
|
+
*/
|
|
3609
|
+
ImageGCLowThresholdPercent?: number;
|
|
3610
|
+
/**
|
|
3611
|
+
* kubelet预留资源,ReservedResource类型
|
|
3612
|
+
*/
|
|
3613
|
+
KubeReserved?: {
|
|
3614
|
+
/**
|
|
3615
|
+
* CPU
|
|
3616
|
+
*/
|
|
3617
|
+
CPU?: string;
|
|
3618
|
+
/**
|
|
3619
|
+
* 内存
|
|
3620
|
+
*/
|
|
3621
|
+
Memory?: string;
|
|
3622
|
+
/**
|
|
3623
|
+
* 存储
|
|
3624
|
+
*/
|
|
3625
|
+
EphemeralStorage?: string;
|
|
3626
|
+
/**
|
|
3627
|
+
* Pid
|
|
3628
|
+
*/
|
|
3629
|
+
Pid?: string;
|
|
3630
|
+
};
|
|
3631
|
+
/**
|
|
3632
|
+
* 系统预留资源,ReservedResource类型
|
|
3633
|
+
*/
|
|
3634
|
+
SystemReserved?: {
|
|
3635
|
+
/**
|
|
3636
|
+
* CPU
|
|
3637
|
+
*/
|
|
3638
|
+
CPU?: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* 内存
|
|
3641
|
+
*/
|
|
3642
|
+
Memory?: string;
|
|
3643
|
+
/**
|
|
3644
|
+
* 存储
|
|
3645
|
+
*/
|
|
3646
|
+
EphemeralStorage?: string;
|
|
3647
|
+
/**
|
|
3648
|
+
* Pid
|
|
3649
|
+
*/
|
|
3650
|
+
Pid?: string;
|
|
3651
|
+
};
|
|
3652
|
+
/**
|
|
3653
|
+
* 最大Pod数量
|
|
3654
|
+
*/
|
|
3655
|
+
MaxPods?: number;
|
|
3656
|
+
};
|
|
2067
3657
|
/**
|
|
2068
3658
|
* 镜像名称
|
|
2069
3659
|
*/
|
|
2070
|
-
ImageName
|
|
2071
|
-
/**
|
|
2072
|
-
* 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。
|
|
2073
|
-
*/
|
|
2074
|
-
NotSupportGPU: boolean;
|
|
2075
|
-
/**
|
|
2076
|
-
* OS 类型
|
|
2077
|
-
*/
|
|
2078
|
-
OsType: string;
|
|
2079
|
-
/**
|
|
2080
|
-
* OS 名称
|
|
2081
|
-
*/
|
|
2082
|
-
OsName: string;
|
|
2083
|
-
/**
|
|
2084
|
-
* 镜像支持的特性
|
|
2085
|
-
*/
|
|
2086
|
-
Features?: string[];
|
|
2087
|
-
/**
|
|
2088
|
-
* 镜像大小
|
|
2089
|
-
*/
|
|
2090
|
-
ImageSize?: number;
|
|
2091
|
-
/**
|
|
2092
|
-
* 集成软件名称, 如NV驱动版本、cuda版本
|
|
2093
|
-
*/
|
|
2094
|
-
IntegratedSoftware?: string;
|
|
2095
|
-
/**
|
|
2096
|
-
* 支持的GPU机型
|
|
2097
|
-
*/
|
|
2098
|
-
SupportedGPUTypes?: string[];
|
|
2099
|
-
}[];
|
|
2100
|
-
/**
|
|
2101
|
-
* 裸金属自制可用镜像集合, 详见ImageInfo 数组
|
|
2102
|
-
*/
|
|
2103
|
-
CustomPHostImageSet?: {
|
|
2104
|
-
/**
|
|
2105
|
-
* 可用区 Id
|
|
2106
|
-
*/
|
|
2107
|
-
ZoneId: number;
|
|
3660
|
+
ImageName?: string;
|
|
2108
3661
|
/**
|
|
2109
|
-
*
|
|
3662
|
+
* 镜像类型
|
|
2110
3663
|
*/
|
|
2111
|
-
|
|
3664
|
+
ImageType?: string;
|
|
2112
3665
|
/**
|
|
2113
|
-
*
|
|
3666
|
+
* 操作系统类型
|
|
2114
3667
|
*/
|
|
2115
|
-
|
|
3668
|
+
OsType?: string;
|
|
2116
3669
|
/**
|
|
2117
|
-
*
|
|
3670
|
+
* 操作系统名称
|
|
2118
3671
|
*/
|
|
2119
|
-
|
|
3672
|
+
OsName?: string;
|
|
2120
3673
|
/**
|
|
2121
|
-
*
|
|
3674
|
+
* 网络配置
|
|
2122
3675
|
*/
|
|
2123
|
-
|
|
3676
|
+
NetCapability?: string;
|
|
2124
3677
|
/**
|
|
2125
|
-
*
|
|
3678
|
+
* 是否启用 UNI 网络特性
|
|
2126
3679
|
*/
|
|
2127
|
-
|
|
3680
|
+
UNIFeature?: boolean;
|
|
2128
3681
|
/**
|
|
2129
|
-
*
|
|
3682
|
+
* 磁盘列表
|
|
2130
3683
|
*/
|
|
2131
|
-
|
|
3684
|
+
Disks?: {
|
|
3685
|
+
/**
|
|
3686
|
+
* 是否为系统盘
|
|
3687
|
+
*/
|
|
3688
|
+
IsBoot?: boolean;
|
|
3689
|
+
/**
|
|
3690
|
+
* 磁盘类型
|
|
3691
|
+
*/
|
|
3692
|
+
Type?: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* 磁盘大小,单位 GB
|
|
3695
|
+
*/
|
|
3696
|
+
Size?: number;
|
|
3697
|
+
/**
|
|
3698
|
+
* 磁盘加密密钥 ID
|
|
3699
|
+
*/
|
|
3700
|
+
KmsKeyId?: string;
|
|
3701
|
+
}[];
|
|
2132
3702
|
/**
|
|
2133
|
-
*
|
|
3703
|
+
* 节点池关联的弹性伸缩组ID
|
|
2134
3704
|
*/
|
|
2135
|
-
|
|
3705
|
+
RelatedAsg?: string[];
|
|
2136
3706
|
/**
|
|
2137
|
-
*
|
|
3707
|
+
* 节点池创建时间
|
|
2138
3708
|
*/
|
|
2139
|
-
|
|
3709
|
+
CreateTime?: number;
|
|
2140
3710
|
/**
|
|
2141
|
-
*
|
|
3711
|
+
* 节点池更新时间
|
|
2142
3712
|
*/
|
|
2143
|
-
|
|
2144
|
-
}
|
|
3713
|
+
UpdateTime?: number;
|
|
3714
|
+
};
|
|
2145
3715
|
}
|
|
2146
3716
|
/**
|
|
2147
|
-
*
|
|
3717
|
+
* GetUK8SPluginInfo - 查询集群插件信息
|
|
2148
3718
|
*/
|
|
2149
|
-
export interface
|
|
3719
|
+
export interface GetUK8SPluginInfoRequest {
|
|
2150
3720
|
/**
|
|
2151
|
-
*
|
|
3721
|
+
* 集群ID
|
|
2152
3722
|
*/
|
|
2153
3723
|
ClusterId: string;
|
|
2154
|
-
/**
|
|
2155
|
-
* K8S 节点IP或者节点ID
|
|
2156
|
-
*/
|
|
2157
|
-
Name: string;
|
|
2158
3724
|
}
|
|
2159
3725
|
/**
|
|
2160
|
-
*
|
|
3726
|
+
* GetUK8SPluginInfo - 查询集群插件信息
|
|
2161
3727
|
*/
|
|
2162
|
-
export interface
|
|
2163
|
-
/**
|
|
2164
|
-
* 节点名称
|
|
2165
|
-
*/
|
|
2166
|
-
Name: string;
|
|
2167
|
-
/**
|
|
2168
|
-
* 字符串数组,每一项是类似 "kubernetes.io/arch=amd64" 的标签
|
|
2169
|
-
*/
|
|
2170
|
-
Labels: string[];
|
|
2171
|
-
/**
|
|
2172
|
-
* 字符串数组,每一项是类似 "node.alpha.kubernetes.io/ttl=0" 的注解
|
|
2173
|
-
*/
|
|
2174
|
-
Annotations: string[];
|
|
2175
|
-
/**
|
|
2176
|
-
* 时间戳,单位是 秒
|
|
2177
|
-
*/
|
|
2178
|
-
CreationTimestamp: number;
|
|
2179
|
-
/**
|
|
2180
|
-
* 字符串,如:"UCloud://cn-sh2-02//uk8s-vsc0vgob-n-mpzxc"
|
|
2181
|
-
*/
|
|
2182
|
-
ProviderID: string;
|
|
2183
|
-
/**
|
|
2184
|
-
* 内核版本,如:"4.19.0-6.el7.ucloud.x86_64"
|
|
2185
|
-
*/
|
|
2186
|
-
KernelVersion: string;
|
|
2187
|
-
/**
|
|
2188
|
-
* 操作系统类型,如:"CentOS Linux 7 (Core)"
|
|
2189
|
-
*/
|
|
2190
|
-
OSImage: string;
|
|
2191
|
-
/**
|
|
2192
|
-
* 容器运行时版本,如:"docker://18.9.9"
|
|
2193
|
-
*/
|
|
2194
|
-
ContainerRuntimeVersion: string;
|
|
2195
|
-
/**
|
|
2196
|
-
* kubelet 版本
|
|
2197
|
-
*/
|
|
2198
|
-
KubeletVersion: string;
|
|
2199
|
-
/**
|
|
2200
|
-
* kubeproxy 版本
|
|
2201
|
-
*/
|
|
2202
|
-
KubeProxyVersion: string;
|
|
2203
|
-
/**
|
|
2204
|
-
* 内部 IP 地址
|
|
2205
|
-
*/
|
|
2206
|
-
InternalIP: string;
|
|
2207
|
-
/**
|
|
2208
|
-
* 主机名
|
|
2209
|
-
*/
|
|
2210
|
-
Hostname: string;
|
|
2211
|
-
/**
|
|
2212
|
-
* 已分配到当前节点的 Pod 数量
|
|
2213
|
-
*/
|
|
2214
|
-
AllocatedPodCount: number;
|
|
2215
|
-
/**
|
|
2216
|
-
* 节点允许的可分配 Pod 最大数量
|
|
2217
|
-
*/
|
|
2218
|
-
PodCapacity: number;
|
|
2219
|
-
/**
|
|
2220
|
-
* 是否禁止调度
|
|
2221
|
-
*/
|
|
2222
|
-
Unschedulable: boolean;
|
|
2223
|
-
/**
|
|
2224
|
-
* 节点 CPU 总量
|
|
2225
|
-
*/
|
|
2226
|
-
CPUCapacity: string;
|
|
2227
|
-
/**
|
|
2228
|
-
* 节点内存总量
|
|
2229
|
-
*/
|
|
2230
|
-
MemoryCapacity: string;
|
|
2231
|
-
/**
|
|
2232
|
-
* 节点上已分配 Pod 的内存请求量
|
|
2233
|
-
*/
|
|
2234
|
-
MemoryRequests: string;
|
|
2235
|
-
/**
|
|
2236
|
-
* 节点上已分配 Pod 的内存请求量占内存总量的比例,如返回值为 "4.5",则意味着请求量占总量的 4.5%
|
|
2237
|
-
*/
|
|
2238
|
-
MemoryRequestsFraction: string;
|
|
2239
|
-
/**
|
|
2240
|
-
* 节点上已分配 Pod 的内存限制量
|
|
2241
|
-
*/
|
|
2242
|
-
MemoryLimits: string;
|
|
2243
|
-
/**
|
|
2244
|
-
* 节点上已分配 Pod 的内存限制量占内存总量的比例,如返回值为 "18",则意味着限制量占总量的 18%
|
|
2245
|
-
*/
|
|
2246
|
-
MemoryLimitsFraction: string;
|
|
2247
|
-
/**
|
|
2248
|
-
* 节点上已分配 Pod 的 CPU 请求量
|
|
2249
|
-
*/
|
|
2250
|
-
CPURequests: string;
|
|
3728
|
+
export interface GetUK8SPluginInfoResponse {
|
|
2251
3729
|
/**
|
|
2252
|
-
*
|
|
3730
|
+
* 集群ID
|
|
2253
3731
|
*/
|
|
2254
|
-
|
|
3732
|
+
ClusterId: string;
|
|
2255
3733
|
/**
|
|
2256
|
-
*
|
|
3734
|
+
* CNI插件信息, 参看NodePlugin
|
|
2257
3735
|
*/
|
|
2258
|
-
|
|
3736
|
+
CNIInfoSet: {
|
|
3737
|
+
/**
|
|
3738
|
+
* 插件名称, 如 CNI, CSI, Flexv, CloudProvider
|
|
3739
|
+
*/
|
|
3740
|
+
Name: string;
|
|
3741
|
+
/**
|
|
3742
|
+
* 各个节点插件信息, 参照NodePluginInfo
|
|
3743
|
+
*/
|
|
3744
|
+
PluginInfoSet?: {
|
|
3745
|
+
/**
|
|
3746
|
+
* Node节点名称
|
|
3747
|
+
*/
|
|
3748
|
+
Node: string;
|
|
3749
|
+
/**
|
|
3750
|
+
* 插件版本
|
|
3751
|
+
*/
|
|
3752
|
+
Version?: string;
|
|
3753
|
+
/**
|
|
3754
|
+
* 插件工作状态,0:未知,1:正常,2:异常, 3: 升级中
|
|
3755
|
+
*/
|
|
3756
|
+
Status?: number;
|
|
3757
|
+
/**
|
|
3758
|
+
* 插件信息更新时间
|
|
3759
|
+
*/
|
|
3760
|
+
UpdateTime?: number;
|
|
3761
|
+
/**
|
|
3762
|
+
* 上次插件操作结果,0:没有上次操作结果,或当前正在执行升级或查询 1:获取成功 2 获取失败 3 升级成功 4 升级失败
|
|
3763
|
+
*/
|
|
3764
|
+
OperationResult?: number;
|
|
3765
|
+
/**
|
|
3766
|
+
* Node节点IP
|
|
3767
|
+
*/
|
|
3768
|
+
IP?: string;
|
|
3769
|
+
}[];
|
|
3770
|
+
/**
|
|
3771
|
+
* 最新插件版本
|
|
3772
|
+
*/
|
|
3773
|
+
AvailableVersion?: string;
|
|
3774
|
+
/**
|
|
3775
|
+
* 最新插件发布时间
|
|
3776
|
+
*/
|
|
3777
|
+
ReleaseTime?: string;
|
|
3778
|
+
/**
|
|
3779
|
+
* 插件管理是否开启
|
|
3780
|
+
*/
|
|
3781
|
+
ManageEnabled?: boolean;
|
|
3782
|
+
};
|
|
2259
3783
|
/**
|
|
2260
|
-
*
|
|
3784
|
+
* 集群状态信息
|
|
2261
3785
|
*/
|
|
2262
|
-
|
|
3786
|
+
ClusterStatus?: string;
|
|
2263
3787
|
/**
|
|
2264
|
-
*
|
|
3788
|
+
* 集群升级相关信息
|
|
2265
3789
|
*/
|
|
2266
|
-
|
|
3790
|
+
ClusterUpgradeInfo?: {
|
|
2267
3791
|
/**
|
|
2268
|
-
*
|
|
3792
|
+
* 集群信息更新时间戳,单位 s
|
|
2269
3793
|
*/
|
|
2270
|
-
|
|
3794
|
+
UpdateTime?: number;
|
|
2271
3795
|
/**
|
|
2272
|
-
*
|
|
3796
|
+
* string,集群升级所处阶段 Unknown、Precheck、MasterUpdating、NodeUpdating、Failed、Success集群从未进行过升级则返回 Unknown集群开始升级过程几个阶段 Precheck->MasterUpdating->NodeUpdating→Success如果升级失败则为 Failed
|
|
2273
3797
|
*/
|
|
2274
|
-
|
|
3798
|
+
Stage?: string;
|
|
2275
3799
|
/**
|
|
2276
|
-
*
|
|
3800
|
+
* string, 集群当前版本
|
|
2277
3801
|
*/
|
|
2278
|
-
|
|
3802
|
+
Version?: string;
|
|
2279
3803
|
/**
|
|
2280
|
-
*
|
|
3804
|
+
* string,集群升级目标版本
|
|
2281
3805
|
*/
|
|
2282
|
-
|
|
3806
|
+
TargetVersion?: string;
|
|
2283
3807
|
/**
|
|
2284
|
-
*
|
|
3808
|
+
* string 数组,可用新版本,例如 ["1.15.12","1.16.15","1.17.4","1.18.9"]
|
|
2285
3809
|
*/
|
|
2286
|
-
|
|
3810
|
+
AvailableVersions?: string[];
|
|
2287
3811
|
/**
|
|
2288
|
-
*
|
|
3812
|
+
* 各个节点升级信息, 参照 ClusterUpdateNodeInfo
|
|
2289
3813
|
*/
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
3814
|
+
NodeInfoSet?: {
|
|
3815
|
+
/**
|
|
3816
|
+
* Node节点名称
|
|
3817
|
+
*/
|
|
3818
|
+
Node: string;
|
|
3819
|
+
/**
|
|
3820
|
+
* 插件版本
|
|
3821
|
+
*/
|
|
3822
|
+
Version?: string;
|
|
3823
|
+
/**
|
|
3824
|
+
* 插件工作状态,0:未知,1:正常,2:异常, 3: 升级中
|
|
3825
|
+
*/
|
|
3826
|
+
Status?: number;
|
|
3827
|
+
/**
|
|
3828
|
+
* 插件信息更新时间
|
|
3829
|
+
*/
|
|
3830
|
+
UpdateTime?: number;
|
|
3831
|
+
/**
|
|
3832
|
+
* 上次插件操作结果,0:没有上次操作结果,或当前正在执行升级或查询 1:获取成功 2 获取失败 3 升级成功 4 升级失败
|
|
3833
|
+
*/
|
|
3834
|
+
OperationResult?: number;
|
|
3835
|
+
/**
|
|
3836
|
+
* Node节点IP
|
|
3837
|
+
*/
|
|
3838
|
+
IP?: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* 节点角色, master 或者 node
|
|
3841
|
+
*/
|
|
3842
|
+
Role?: string;
|
|
3843
|
+
}[];
|
|
3844
|
+
};
|
|
2296
3845
|
/**
|
|
2297
|
-
*
|
|
3846
|
+
* 集群容器运行时转换信息。
|
|
2298
3847
|
*/
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
3848
|
+
RuntimeConvertInfo?: {
|
|
3849
|
+
/**
|
|
3850
|
+
* 各节点的运行时转换状态。
|
|
3851
|
+
*/
|
|
3852
|
+
NodeInfoSet?: {
|
|
3853
|
+
/**
|
|
3854
|
+
* Node节点名称
|
|
3855
|
+
*/
|
|
3856
|
+
Node: string;
|
|
3857
|
+
/**
|
|
3858
|
+
* 插件版本
|
|
3859
|
+
*/
|
|
3860
|
+
Version?: string;
|
|
3861
|
+
/**
|
|
3862
|
+
* 插件工作状态,0:未知,1:正常,2:异常, 3: 升级中
|
|
3863
|
+
*/
|
|
3864
|
+
Status?: number;
|
|
3865
|
+
/**
|
|
3866
|
+
* 插件信息更新时间
|
|
3867
|
+
*/
|
|
3868
|
+
UpdateTime?: number;
|
|
3869
|
+
/**
|
|
3870
|
+
* 上次插件操作结果,0:没有上次操作结果,或当前正在执行升级或查询 1:获取成功 2 获取失败 3 升级成功 4 升级失败
|
|
3871
|
+
*/
|
|
3872
|
+
OperationResult?: number;
|
|
3873
|
+
/**
|
|
3874
|
+
* Node节点IP
|
|
3875
|
+
*/
|
|
3876
|
+
IP?: string;
|
|
3877
|
+
}[];
|
|
3878
|
+
/**
|
|
3879
|
+
* 集群从未进行过运行时转换则返回 Unknown集群运行时转换几个阶段 Precheck->Updating→Success如果转换失败则为 Failed
|
|
3880
|
+
*/
|
|
3881
|
+
Stage?: string;
|
|
3882
|
+
/**
|
|
3883
|
+
* 运行时转换信息更新时间,Unix 时间戳,单位秒。
|
|
3884
|
+
*/
|
|
3885
|
+
UpdateTime?: number;
|
|
3886
|
+
/**
|
|
3887
|
+
* 容器运行时名称。
|
|
3888
|
+
*/
|
|
3889
|
+
RuntimeName?: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* 容器运行时版本。
|
|
3892
|
+
*/
|
|
3893
|
+
RuntimeVersion?: string;
|
|
3894
|
+
};
|
|
2305
3895
|
/**
|
|
2306
|
-
*
|
|
3896
|
+
* vk插件信息
|
|
2307
3897
|
*/
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
3898
|
+
VKInfo?: {
|
|
3899
|
+
/**
|
|
3900
|
+
* 插件名称
|
|
3901
|
+
*/
|
|
3902
|
+
Name: string;
|
|
3903
|
+
/**
|
|
3904
|
+
* 各虚拟节点的插件信息。
|
|
3905
|
+
*/
|
|
3906
|
+
PluginInfoSet?: {
|
|
3907
|
+
/**
|
|
3908
|
+
* 节点 ID。
|
|
3909
|
+
*/
|
|
3910
|
+
Node?: string;
|
|
3911
|
+
/**
|
|
3912
|
+
* 插件版本。
|
|
3913
|
+
*/
|
|
3914
|
+
Version?: string;
|
|
3915
|
+
/**
|
|
3916
|
+
* 插件状态:0 未知,1 正常,2 异常,3 升级中。
|
|
3917
|
+
*/
|
|
3918
|
+
Status?: number;
|
|
3919
|
+
/**
|
|
3920
|
+
* 更新时间,Unix 时间戳,单位秒。
|
|
3921
|
+
*/
|
|
3922
|
+
UpdateTime?: number;
|
|
3923
|
+
/**
|
|
3924
|
+
* 上次插件操作结果:0 无结果,1 查询成功,2 查询失败,3 升级成功,4 升级失败。
|
|
3925
|
+
*/
|
|
3926
|
+
OperationResult?: number;
|
|
3927
|
+
}[];
|
|
3928
|
+
/**
|
|
3929
|
+
* 最新版本
|
|
3930
|
+
*/
|
|
3931
|
+
AvailableVersion?: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* 发布时间
|
|
3934
|
+
*/
|
|
3935
|
+
ReleaseTime?: string;
|
|
3936
|
+
/**
|
|
3937
|
+
* 插件管理是否开启
|
|
3938
|
+
*/
|
|
3939
|
+
ManageEnabled?: boolean;
|
|
3940
|
+
};
|
|
2314
3941
|
/**
|
|
2315
|
-
*
|
|
3942
|
+
* CSI 插件版本与状态。
|
|
2316
3943
|
*/
|
|
2317
|
-
|
|
3944
|
+
CSIInfo?: {
|
|
3945
|
+
/**
|
|
3946
|
+
* 插件名称。
|
|
3947
|
+
*/
|
|
3948
|
+
Name?: string;
|
|
3949
|
+
/**
|
|
3950
|
+
* 最新可用插件版本。
|
|
3951
|
+
*/
|
|
3952
|
+
AvailableVersion?: string;
|
|
3953
|
+
/**
|
|
3954
|
+
* 最新可用版本的发布时间。
|
|
3955
|
+
*/
|
|
3956
|
+
ReleaseTime?: string;
|
|
3957
|
+
/**
|
|
3958
|
+
* 是否开启插件托管。
|
|
3959
|
+
*/
|
|
3960
|
+
ManageEnabled?: boolean;
|
|
3961
|
+
/**
|
|
3962
|
+
* 当前插件版本。
|
|
3963
|
+
*/
|
|
3964
|
+
Version?: string;
|
|
3965
|
+
/**
|
|
3966
|
+
* 插件状态。
|
|
3967
|
+
*/
|
|
3968
|
+
Status?: number;
|
|
3969
|
+
/**
|
|
3970
|
+
* 更新时间,Unix 时间戳,单位秒。
|
|
3971
|
+
*/
|
|
3972
|
+
UpdateTime?: number;
|
|
3973
|
+
/**
|
|
3974
|
+
* 上次插件操作结果。
|
|
3975
|
+
*/
|
|
3976
|
+
OperationResult?: number;
|
|
3977
|
+
};
|
|
2318
3978
|
/**
|
|
2319
|
-
*
|
|
3979
|
+
* CloudProvider 插件版本与状态。
|
|
2320
3980
|
*/
|
|
2321
|
-
|
|
3981
|
+
CloudProviderInfo?: {
|
|
3982
|
+
/**
|
|
3983
|
+
* 插件名称。
|
|
3984
|
+
*/
|
|
3985
|
+
Name?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* 最新可用插件版本。
|
|
3988
|
+
*/
|
|
3989
|
+
AvailableVersion?: string;
|
|
3990
|
+
/**
|
|
3991
|
+
* 最新可用版本的发布时间。
|
|
3992
|
+
*/
|
|
3993
|
+
ReleaseTime?: string;
|
|
3994
|
+
/**
|
|
3995
|
+
* 是否开启插件托管。
|
|
3996
|
+
*/
|
|
3997
|
+
ManageEnabled?: boolean;
|
|
3998
|
+
/**
|
|
3999
|
+
* 当前插件版本。
|
|
4000
|
+
*/
|
|
4001
|
+
Version?: string;
|
|
4002
|
+
/**
|
|
4003
|
+
* 插件状态。
|
|
4004
|
+
*/
|
|
4005
|
+
Status?: number;
|
|
4006
|
+
/**
|
|
4007
|
+
* 更新时间,Unix 时间戳,单位秒。
|
|
4008
|
+
*/
|
|
4009
|
+
UpdateTime?: number;
|
|
4010
|
+
/**
|
|
4011
|
+
* 上次插件操作结果。
|
|
4012
|
+
*/
|
|
4013
|
+
OperationResult?: number;
|
|
4014
|
+
};
|
|
2322
4015
|
/**
|
|
2323
|
-
*
|
|
4016
|
+
* 监控插件信息。
|
|
2324
4017
|
*/
|
|
2325
|
-
|
|
4018
|
+
MonitorInfo?: {
|
|
4019
|
+
/**
|
|
4020
|
+
* 最新可用监控插件版本。
|
|
4021
|
+
*/
|
|
4022
|
+
AvailableVersion?: string;
|
|
4023
|
+
};
|
|
2326
4024
|
}
|
|
2327
4025
|
/**
|
|
2328
4026
|
* GetUK8SVersions - 获取支持创建的UK8S集群版本、Containerd版本
|
|
@@ -2745,6 +4443,14 @@ export interface ListUK8SNodeGroupResponse {
|
|
|
2745
4443
|
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
2746
4444
|
*/
|
|
2747
4445
|
Zone?: string;
|
|
4446
|
+
/**
|
|
4447
|
+
* 镜像状态:Unknown、Normal、Deleted、NotLatest
|
|
4448
|
+
*/
|
|
4449
|
+
ImageStatus: string;
|
|
4450
|
+
/**
|
|
4451
|
+
* 数据盘加密密钥 ID
|
|
4452
|
+
*/
|
|
4453
|
+
DataDiskKmsKeyId: string;
|
|
2748
4454
|
/**
|
|
2749
4455
|
* 节点池ID
|
|
2750
4456
|
*/
|
|
@@ -2850,11 +4556,11 @@ export interface ListUK8SNodeGroupResponse {
|
|
|
2850
4556
|
*/
|
|
2851
4557
|
SecGroupId?: {
|
|
2852
4558
|
/**
|
|
2853
|
-
*
|
|
4559
|
+
* 安全组 ID
|
|
2854
4560
|
*/
|
|
2855
4561
|
Id?: string;
|
|
2856
4562
|
/**
|
|
2857
|
-
*
|
|
4563
|
+
* 安全组名称
|
|
2858
4564
|
*/
|
|
2859
4565
|
Name?: string;
|
|
2860
4566
|
/**
|
|
@@ -3059,45 +4765,21 @@ export interface ListUK8SNodeGroupResponse {
|
|
|
3059
4765
|
*/
|
|
3060
4766
|
Disks?: {
|
|
3061
4767
|
/**
|
|
3062
|
-
*
|
|
3063
|
-
*/
|
|
3064
|
-
Type?: string;
|
|
3065
|
-
/**
|
|
3066
|
-
* 磁盘长ID
|
|
3067
|
-
*/
|
|
3068
|
-
DiskId?: string;
|
|
3069
|
-
/**
|
|
3070
|
-
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
4768
|
+
* 是否为系统盘
|
|
3071
4769
|
*/
|
|
3072
|
-
|
|
4770
|
+
IsBoot?: boolean;
|
|
3073
4771
|
/**
|
|
3074
|
-
*
|
|
4772
|
+
* 磁盘类型
|
|
3075
4773
|
*/
|
|
3076
|
-
|
|
4774
|
+
Type?: string;
|
|
3077
4775
|
/**
|
|
3078
|
-
*
|
|
4776
|
+
* 磁盘大小,单位 GB
|
|
3079
4777
|
*/
|
|
3080
4778
|
Size?: number;
|
|
3081
4779
|
/**
|
|
3082
|
-
*
|
|
3083
|
-
*/
|
|
3084
|
-
BackupType?: string;
|
|
3085
|
-
/**
|
|
3086
|
-
* 当前主机的IOPS值
|
|
3087
|
-
*/
|
|
3088
|
-
IOPS?: number;
|
|
3089
|
-
/**
|
|
3090
|
-
* Yes: 加密 No: 非加密
|
|
3091
|
-
*/
|
|
3092
|
-
Encrypted?: string;
|
|
3093
|
-
/**
|
|
3094
|
-
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
3095
|
-
*/
|
|
3096
|
-
DiskType?: string;
|
|
3097
|
-
/**
|
|
3098
|
-
* True| False
|
|
4780
|
+
* 磁盘加密密钥 ID
|
|
3099
4781
|
*/
|
|
3100
|
-
|
|
4782
|
+
KmsKeyId?: string;
|
|
3101
4783
|
}[];
|
|
3102
4784
|
/**
|
|
3103
4785
|
* 节点池关联的弹性伸缩组ID
|
|
@@ -3352,6 +5034,74 @@ export interface RemoveUK8SNodeGroupRequest {
|
|
|
3352
5034
|
*/
|
|
3353
5035
|
export interface RemoveUK8SNodeGroupResponse {
|
|
3354
5036
|
}
|
|
5037
|
+
/**
|
|
5038
|
+
* UpdateUK8SAutoScalingGroupV2 - 更新伸缩组的名称、节点数上下限和优先级。节点规格等配置请通过关联节点池修改。
|
|
5039
|
+
*/
|
|
5040
|
+
export interface UpdateUK8SAutoScalingGroupV2Request {
|
|
5041
|
+
/**
|
|
5042
|
+
* 可用区,可选。此接口按集群和伸缩组 ID 更新配置。
|
|
5043
|
+
*/
|
|
5044
|
+
Zone?: string;
|
|
5045
|
+
/**
|
|
5046
|
+
* 集群ID
|
|
5047
|
+
*/
|
|
5048
|
+
ClusterId: string;
|
|
5049
|
+
/**
|
|
5050
|
+
* 伸缩组ID
|
|
5051
|
+
*/
|
|
5052
|
+
Id: string;
|
|
5053
|
+
/**
|
|
5054
|
+
* 伸缩组名称
|
|
5055
|
+
*/
|
|
5056
|
+
Name: string;
|
|
5057
|
+
/**
|
|
5058
|
+
* 最小节点数,范围 0–100。
|
|
5059
|
+
*/
|
|
5060
|
+
Min: number;
|
|
5061
|
+
/**
|
|
5062
|
+
* 最大节点数,范围 1–100。
|
|
5063
|
+
*/
|
|
5064
|
+
Max: number;
|
|
5065
|
+
/**
|
|
5066
|
+
* 伸缩组优先级,范围 1–100,值越大越优先。省略或传 0 时保持原优先级。
|
|
5067
|
+
*/
|
|
5068
|
+
Priority?: number;
|
|
5069
|
+
}
|
|
5070
|
+
/**
|
|
5071
|
+
* UpdateUK8SAutoScalingGroupV2 - 更新伸缩组的名称、节点数上下限和优先级。节点规格等配置请通过关联节点池修改。
|
|
5072
|
+
*/
|
|
5073
|
+
export interface UpdateUK8SAutoScalingGroupV2Response {
|
|
5074
|
+
}
|
|
5075
|
+
/**
|
|
5076
|
+
* UpdateUK8SAutoscaler - 更新集群级缩容阈值和等待时间。调用前必须关闭 cluster-autoscaler;修改后重新开启,使新配置生效。
|
|
5077
|
+
*/
|
|
5078
|
+
export interface UpdateUK8SAutoscalerRequest {
|
|
5079
|
+
/**
|
|
5080
|
+
* 集群ID
|
|
5081
|
+
*/
|
|
5082
|
+
ClusterId: string;
|
|
5083
|
+
/**
|
|
5084
|
+
* 节点持续不需要后触发缩容的等待时间,单位分钟,范围 1–1440。
|
|
5085
|
+
*/
|
|
5086
|
+
ScaleDownUnneededTime: number;
|
|
5087
|
+
/**
|
|
5088
|
+
* 节点缩容利用率阈值,单位百分比,范围 0–100。例如 50 表示 50%。
|
|
5089
|
+
*/
|
|
5090
|
+
ScaleDownUtilizationThreshold: number;
|
|
5091
|
+
/**
|
|
5092
|
+
* 添加节点后等待缩容的时间,单位分钟,范围 1–1440。
|
|
5093
|
+
*/
|
|
5094
|
+
ScaleDownDelayAfterAdd: number;
|
|
5095
|
+
/**
|
|
5096
|
+
* GPU 缩容利用率阈值,单位百分比,范围 0–100。省略时使用 ScaleDownUtilizationThreshold。
|
|
5097
|
+
*/
|
|
5098
|
+
ScaleDownGPUUtilizationThreshold?: number;
|
|
5099
|
+
}
|
|
5100
|
+
/**
|
|
5101
|
+
* UpdateUK8SAutoscaler - 更新集群级缩容阈值和等待时间。调用前必须关闭 cluster-autoscaler;修改后重新开启,使新配置生效。
|
|
5102
|
+
*/
|
|
5103
|
+
export interface UpdateUK8SAutoscalerResponse {
|
|
5104
|
+
}
|
|
3355
5105
|
/**
|
|
3356
5106
|
* UpdateUK8SNodeGroup - 修改UK8S节点池
|
|
3357
5107
|
*/
|