ucloud-sdk-python3 0.11.142__py3-none-any.whl → 0.11.143__py3-none-any.whl
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.
- ucloud/services/uk8s/client.py +170 -170
- ucloud/services/uk8s/schemas/apis.py +175 -175
- ucloud/services/uk8s/schemas/models.py +116 -116
- ucloud/version.py +1 -1
- {ucloud_sdk_python3-0.11.142.dist-info → ucloud_sdk_python3-0.11.143.dist-info}/METADATA +8 -8
- {ucloud_sdk_python3-0.11.142.dist-info → ucloud_sdk_python3-0.11.143.dist-info}/RECORD +9 -9
- {ucloud_sdk_python3-0.11.142.dist-info → ucloud_sdk_python3-0.11.143.dist-info}/LICENSE +0 -0
- {ucloud_sdk_python3-0.11.142.dist-info → ucloud_sdk_python3-0.11.143.dist-info}/WHEEL +0 -0
- {ucloud_sdk_python3-0.11.142.dist-info → ucloud_sdk_python3-0.11.143.dist-info}/top_level.txt +0 -0
ucloud/services/uk8s/client.py
CHANGED
|
@@ -103,24 +103,19 @@ class UK8SClient(Client):
|
|
|
103
103
|
|
|
104
104
|
**Request Model**
|
|
105
105
|
|
|
106
|
-
**
|
|
107
|
-
- **
|
|
108
|
-
- **
|
|
109
|
-
- **
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
**AddUK8SNodeGroupParamKubeletConfigurationKubeReserved**
|
|
113
|
-
- **CPU** (str) - kubelet预留CPU资源,以m结尾。控制台展示为kubeReserved - cpu
|
|
114
|
-
- **EphemeralStorage** (str) - kubelet预留存储空间,以Gi结尾。控制台展示为kubeReserved - ephemeral-storage
|
|
115
|
-
- **Memory** (str) - kubelet预留内存资源,以Mi结尾。控制台展示为kubeReserved - memory
|
|
116
|
-
- **Pid** (str) - kubelet预留pid数量,必须大于等于500, string方式提供。控制台展示为kubeReserved - pid
|
|
106
|
+
**AddUK8SNodeGroupParamNetworkInterfaceEIP**
|
|
107
|
+
- **Bandwidth** (int) - 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
|
|
108
|
+
- **CouponId** (str) - 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
|
|
109
|
+
- **OperatorName** (str) - 【若绑定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
|
|
110
|
+
- **PayMode** (str) - 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
|
|
111
|
+
- **ShareBandwidthId** (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
117
112
|
|
|
118
113
|
|
|
119
|
-
**
|
|
120
|
-
- **ImagefsAvailable** (str) -
|
|
121
|
-
- **MemoryAvailable** (str) -
|
|
122
|
-
- **NodefsAvailable** (str) -
|
|
123
|
-
- **NodefsInodesFree** (str) -
|
|
114
|
+
**AddUK8SNodeGroupParamKubeletConfigurationEvictionHard**
|
|
115
|
+
- **ImagefsAvailable** (str) - 触发Pod驱逐操作的硬性门限之容器镜像剩余空间: 需以%结尾。控制台展示为evictionHard - imagefs.available
|
|
116
|
+
- **MemoryAvailable** (str) - 触发Pod驱逐操作的硬性门限之内存用量: 需以Mi或Gi结尾。控制台展示为evictionHard - memory.available
|
|
117
|
+
- **NodefsAvailable** (str) - 触发Pod驱逐操作的硬性门限之节点存储剩余空间: 需以%结尾。控制台展示为evictionHard - nodefs.available
|
|
118
|
+
- **NodefsInodesFree** (str) - 触发Pod驱逐操作的硬性门限节点inode剩余量: 需以%结尾。控制台展示为evictionHard - nodefs.inodesFree
|
|
124
119
|
|
|
125
120
|
|
|
126
121
|
**AddUK8SNodeGroupParamKubeletConfigurationEvictionSoft**
|
|
@@ -130,23 +125,15 @@ class UK8SClient(Client):
|
|
|
130
125
|
- **NodefsInodesFree** (str) - 触发Pod驱逐操作的软性门限节点inode剩余量: 需以%结尾。配置此值时必须同时配置EvictionSoftGracePeriod.NodefsInodesFree。控制台展示为evictionSoft - nodefs.inodesFree
|
|
131
126
|
|
|
132
127
|
|
|
133
|
-
**AddUK8SNodeGroupParamNetworkInterfaceEIP**
|
|
134
|
-
- **Bandwidth** (int) - 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
|
|
135
|
-
- **CouponId** (str) - 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
|
|
136
|
-
- **OperatorName** (str) - 【若绑定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
|
|
137
|
-
- **PayMode** (str) - 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
|
|
138
|
-
- **ShareBandwidthId** (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
139
|
-
|
|
140
|
-
|
|
141
128
|
**AddUK8SNodeGroupParamNetworkInterface**
|
|
142
129
|
- **EIP** (dict) - 见 **AddUK8SNodeGroupParamNetworkInterfaceEIP** 模型定义
|
|
143
130
|
|
|
144
131
|
|
|
145
|
-
**
|
|
146
|
-
- **ImagefsAvailable** (str) -
|
|
147
|
-
- **MemoryAvailable** (str) -
|
|
148
|
-
- **NodefsAvailable** (str) -
|
|
149
|
-
- **NodefsInodesFree** (str) -
|
|
132
|
+
**AddUK8SNodeGroupParamKubeletConfigurationEvictionSoftGracePeriod**
|
|
133
|
+
- **ImagefsAvailable** (str) - ImagefsAvailable软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - imagefs.available
|
|
134
|
+
- **MemoryAvailable** (str) - MemoryAvailable软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - memory.available
|
|
135
|
+
- **NodefsAvailable** (str) - NodefsAvailable软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - nodefs.available
|
|
136
|
+
- **NodefsInodesFree** (str) - NodefsInodesFree软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - nodefs.inodesFree
|
|
150
137
|
|
|
151
138
|
|
|
152
139
|
**AddUK8SNodeGroupParamKubeletConfigurationSystemReserved**
|
|
@@ -156,6 +143,13 @@ class UK8SClient(Client):
|
|
|
156
143
|
- **Pid** (str) - 系统预留pid数量,必须大于等于500, string方式提供。控制台展示为systemReserved - pid
|
|
157
144
|
|
|
158
145
|
|
|
146
|
+
**AddUK8SNodeGroupParamKubeletConfigurationKubeReserved**
|
|
147
|
+
- **CPU** (str) - kubelet预留CPU资源,以m结尾。控制台展示为kubeReserved - cpu
|
|
148
|
+
- **EphemeralStorage** (str) - kubelet预留存储空间,以Gi结尾。控制台展示为kubeReserved - ephemeral-storage
|
|
149
|
+
- **Memory** (str) - kubelet预留内存资源,以Mi结尾。控制台展示为kubeReserved - memory
|
|
150
|
+
- **Pid** (str) - kubelet预留pid数量,必须大于等于500, string方式提供。控制台展示为kubeReserved - pid
|
|
151
|
+
|
|
152
|
+
|
|
159
153
|
**AddUK8SNodeGroupParamKubeletConfiguration**
|
|
160
154
|
- **ContainerLogMaxFiles** (int) - 容器的日志文件个数上限,需大于等于2。控制台展示为containerLogMaxFiles
|
|
161
155
|
- **ContainerLogMaxSize** (str) - 容器日志文件轮换生成新文件的最大阈值,需以Mi结尾。控制台展示为containerLogMaxSize
|
|
@@ -169,6 +163,12 @@ class UK8SClient(Client):
|
|
|
169
163
|
- **SystemReserved** (dict) - 见 **AddUK8SNodeGroupParamKubeletConfigurationSystemReserved** 模型定义
|
|
170
164
|
|
|
171
165
|
|
|
166
|
+
**AddUK8SNodeGroupParamSecGroupId**
|
|
167
|
+
- **Id** (str) - 安全组 ID。至多可以同时绑定5个安全组。
|
|
168
|
+
- **Name** (str) - 安全组名称。
|
|
169
|
+
- **Priority** (str) - 安全组优先级。取值范围[1, 5]
|
|
170
|
+
|
|
171
|
+
|
|
172
172
|
"""
|
|
173
173
|
# build request
|
|
174
174
|
d = {
|
|
@@ -290,6 +290,10 @@ class UK8SClient(Client):
|
|
|
290
290
|
- **ShareBandwidthId** (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
291
291
|
|
|
292
292
|
|
|
293
|
+
**AddUK8SUHostNodeParamNetworkInterface**
|
|
294
|
+
- **EIP** (dict) - 见 **AddUK8SUHostNodeParamNetworkInterfaceEIP** 模型定义
|
|
295
|
+
|
|
296
|
+
|
|
293
297
|
**AddUK8SUHostNodeParamUserLabels**
|
|
294
298
|
- **Key** (str) - UK8S用户资源标签的键值
|
|
295
299
|
- **Value** (str) - UK8S用户资源标签的值
|
|
@@ -305,10 +309,6 @@ class UK8SClient(Client):
|
|
|
305
309
|
- **Priority** (str) - 安全组优先级。取值范围[1, 5]
|
|
306
310
|
|
|
307
311
|
|
|
308
|
-
**AddUK8SUHostNodeParamNetworkInterface**
|
|
309
|
-
- **EIP** (dict) - 见 **AddUK8SUHostNodeParamNetworkInterfaceEIP** 模型定义
|
|
310
|
-
|
|
311
|
-
|
|
312
312
|
"""
|
|
313
313
|
# build request
|
|
314
314
|
d = {
|
|
@@ -374,15 +374,6 @@ class UK8SClient(Client):
|
|
|
374
374
|
|
|
375
375
|
**Request Model**
|
|
376
376
|
|
|
377
|
-
**CreateUK8SClusterV2ParamUserLabels**
|
|
378
|
-
- **Key** (str) - UK8S用户资源标签的键值
|
|
379
|
-
- **Value** (str) - UK8S用户资源标签的值
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
**CreateUK8SClusterV2ParamKubeProxy**
|
|
383
|
-
- **Mode** (str) - 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
|
|
384
|
-
|
|
385
|
-
|
|
386
377
|
**CreateUK8SClusterV2ParamMasterSecGroupId**
|
|
387
378
|
- **Id** (str) - 安全组 ID。至多可以同时绑定5个安全组。
|
|
388
379
|
- **Name** (str) - 安全组名称。
|
|
@@ -401,19 +392,23 @@ class UK8SClient(Client):
|
|
|
401
392
|
- **EIP** (dict) - 见 **CreateUK8SClusterV2ParamNodesNetworkInterfaceEIP** 模型定义
|
|
402
393
|
|
|
403
394
|
|
|
404
|
-
**
|
|
405
|
-
- **
|
|
406
|
-
- **
|
|
395
|
+
**CreateUK8SClusterV2ParamNodesSecGroupId**
|
|
396
|
+
- **Id** (str) - 安全组 ID。至多可以同时绑定5个安全组。
|
|
397
|
+
- **Name** (str) - 安全组名称。
|
|
398
|
+
- **Priority** (str) - 安全组优先级。取值范围[1, 5]
|
|
407
399
|
|
|
408
400
|
|
|
409
401
|
**CreateUK8SClusterV2ParamNodesKubeletConfiguration**
|
|
410
402
|
- **ContainerLogMaxFiles** (str) - 全量KubeletConfiguration.XXX定义参考AddUK8SNodeGroup接口: https://uxiao.ucloudadmin.com/#/api-manager/api/detail/UK8S/AddUK8SNodeGroup
|
|
411
403
|
|
|
412
404
|
|
|
413
|
-
**
|
|
414
|
-
- **
|
|
415
|
-
|
|
416
|
-
|
|
405
|
+
**CreateUK8SClusterV2ParamKubeProxy**
|
|
406
|
+
- **Mode** (str) - 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
**CreateUK8SClusterV2ParamMaster**
|
|
410
|
+
- **SecGroupId** (list) - 见 **CreateUK8SClusterV2ParamMasterSecGroupId** 模型定义
|
|
411
|
+
- **Zone** (str) - Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 三个节点可部署在不同可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
417
412
|
|
|
418
413
|
|
|
419
414
|
**CreateUK8SClusterV2ParamNodes**
|
|
@@ -445,6 +440,11 @@ class UK8SClient(Client):
|
|
|
445
440
|
- **Zone** (str) - 一组Nodes节点所属可用区,可创建多组Nodes节点,如一组是CPU Nodes节点,另一组是GPU Nodes节点。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
446
441
|
|
|
447
442
|
|
|
443
|
+
**CreateUK8SClusterV2ParamUserLabels**
|
|
444
|
+
- **Key** (str) - UK8S用户资源标签的键值
|
|
445
|
+
- **Value** (str) - UK8S用户资源标签的值
|
|
446
|
+
|
|
447
|
+
|
|
448
448
|
"""
|
|
449
449
|
# build request
|
|
450
450
|
d = {
|
|
@@ -482,6 +482,31 @@ class UK8SClient(Client):
|
|
|
482
482
|
|
|
483
483
|
**Request Model**
|
|
484
484
|
|
|
485
|
+
**CreateUK8SULSConfigParamMatchRulePodLabelsLabels**
|
|
486
|
+
- **Key** (str) - 按 Pod 标签匹配时,要匹配的标签的 Key。
|
|
487
|
+
- **Value** (str) - 按 Pod 标签匹配时,要匹配的标签的值。
|
|
488
|
+
- **ValueOperator** (str) - 按 Pod 标签匹配时,标签值的匹配操作符。可选值: in, notin。
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
**CreateUK8SULSConfigParamMatchRulePodLabels**
|
|
492
|
+
- **Labels** (list) - 见 **CreateUK8SULSConfigParamMatchRulePodLabelsLabels** 模型定义
|
|
493
|
+
- **Namespace** (str) - 命名空间名称
|
|
494
|
+
- **NamespaceOperator** (str) - 指定/排除命名空间, 可选值: in/notin
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
**CreateUK8SULSConfigParamMatchRuleWorkloads**
|
|
498
|
+
- **Name** (str) - 按工作负载匹配时,工作负载的名称。
|
|
499
|
+
- **Namespace** (str) - 按工作负载匹配时,工作负载所在的命名空间。
|
|
500
|
+
- **Type** (str) - 按工作负载匹配时,工作负载的类型,例如 deployment, statefulset, daemonset,job, cronjob。
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
**CreateUK8SULSConfigParamMatchRule**
|
|
504
|
+
- **Container** (str) - 要匹配的容器名称,*表示所有容器,用逗号分隔
|
|
505
|
+
- **ContainerOperator** (str) - 容器名称匹配操作符。支持:in(包含),notin(不包含)
|
|
506
|
+
- **PodLabels** (dict) - 见 **CreateUK8SULSConfigParamMatchRulePodLabels** 模型定义
|
|
507
|
+
- **Workloads** (list) - 见 **CreateUK8SULSConfigParamMatchRuleWorkloads** 模型定义
|
|
508
|
+
|
|
509
|
+
|
|
485
510
|
**CreateUK8SULSConfigParamExtractRuleExtractRule**
|
|
486
511
|
- **LogRegexBase64** (str) - Base64 编码的日志提取正则表达式。
|
|
487
512
|
|
|
@@ -520,31 +545,6 @@ class UK8SClient(Client):
|
|
|
520
545
|
- **Type** (str) - 日志输入类型。支持 container_file 和 container_stdout
|
|
521
546
|
|
|
522
547
|
|
|
523
|
-
**CreateUK8SULSConfigParamMatchRulePodLabelsLabels**
|
|
524
|
-
- **Key** (str) - 按 Pod 标签匹配时,要匹配的标签的 Key。
|
|
525
|
-
- **Value** (str) - 按 Pod 标签匹配时,要匹配的标签的值。
|
|
526
|
-
- **ValueOperator** (str) - 按 Pod 标签匹配时,标签值的匹配操作符。可选值: in, notin。
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
**CreateUK8SULSConfigParamMatchRulePodLabels**
|
|
530
|
-
- **Labels** (list) - 见 **CreateUK8SULSConfigParamMatchRulePodLabelsLabels** 模型定义
|
|
531
|
-
- **Namespace** (str) - 命名空间名称
|
|
532
|
-
- **NamespaceOperator** (str) - 指定/排除命名空间, 可选值: in/notin
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
**CreateUK8SULSConfigParamMatchRuleWorkloads**
|
|
536
|
-
- **Name** (str) - 按工作负载匹配时,工作负载的名称。
|
|
537
|
-
- **Namespace** (str) - 按工作负载匹配时,工作负载所在的命名空间。
|
|
538
|
-
- **Type** (str) - 按工作负载匹配时,工作负载的类型,例如 deployment, statefulset, daemonset,job, cronjob。
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
**CreateUK8SULSConfigParamMatchRule**
|
|
542
|
-
- **Container** (str) - 要匹配的容器名称,*表示所有容器,用逗号分隔
|
|
543
|
-
- **ContainerOperator** (str) - 容器名称匹配操作符。支持:in(包含),notin(不包含)
|
|
544
|
-
- **PodLabels** (dict) - 见 **CreateUK8SULSConfigParamMatchRulePodLabels** 模型定义
|
|
545
|
-
- **Workloads** (list) - 见 **CreateUK8SULSConfigParamMatchRuleWorkloads** 模型定义
|
|
546
|
-
|
|
547
|
-
|
|
548
548
|
"""
|
|
549
549
|
# build request
|
|
550
550
|
d = {
|
|
@@ -698,6 +698,16 @@ class UK8SClient(Client):
|
|
|
698
698
|
|
|
699
699
|
**Response Model**
|
|
700
700
|
|
|
701
|
+
**SecGroupId**
|
|
702
|
+
- **Id** (str) - 安全组名称
|
|
703
|
+
- **Name** (str) - 安全组id
|
|
704
|
+
- **Priority** (str) - 安全组优先级
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
**KubeProxy**
|
|
708
|
+
- **Mode** (str) - KubeProxy模式,枚举值为[ipvs,iptables]
|
|
709
|
+
|
|
710
|
+
|
|
701
711
|
**DiskSet**
|
|
702
712
|
- **BackupType** (str) - 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
703
713
|
- **DiskId** (str) - 磁盘长ID
|
|
@@ -711,22 +721,6 @@ class UK8SClient(Client):
|
|
|
711
721
|
- **Type** (str) - 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
712
722
|
|
|
713
723
|
|
|
714
|
-
**Autoscaler**
|
|
715
|
-
- **Enabled** (int) - 打开/关闭
|
|
716
|
-
- **ScaleDownDelayAfterAdd** (str) - 静默时间
|
|
717
|
-
- **ScaleDownGpuUtilizationThreshold** (str) - GPU缩容阈值
|
|
718
|
-
- **ScaleDownUnneededTime** (str) - 缩容触发延时
|
|
719
|
-
- **ScaleDownUtilizationThreshold** (str) - CPU缩容阈值
|
|
720
|
-
- **UpdateTime** (int) -
|
|
721
|
-
- **Version** (str) - 伸缩器版本
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
**SecGroupId**
|
|
725
|
-
- **Id** (str) - 安全组名称
|
|
726
|
-
- **Name** (str) - 安全组id
|
|
727
|
-
- **Priority** (str) - 安全组优先级
|
|
728
|
-
|
|
729
|
-
|
|
730
724
|
**IPSet**
|
|
731
725
|
- **Bandwidth** (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
732
726
|
- **Default** (str) - 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
@@ -762,15 +756,21 @@ class UK8SClient(Client):
|
|
|
762
756
|
- **Zone** (str) - 所在机房
|
|
763
757
|
|
|
764
758
|
|
|
765
|
-
**KubeProxy**
|
|
766
|
-
- **Mode** (str) - KubeProxy模式,枚举值为[ipvs,iptables]
|
|
767
|
-
|
|
768
|
-
|
|
769
759
|
**LoopbackClientCert**
|
|
770
760
|
- **ExpireTime** (int) - 证书到期时间
|
|
771
761
|
- **Warn** (bool) - 证书是否进入过期告警状态
|
|
772
762
|
|
|
773
763
|
|
|
764
|
+
**Autoscaler**
|
|
765
|
+
- **Enabled** (int) - 打开/关闭
|
|
766
|
+
- **ScaleDownDelayAfterAdd** (str) - 静默时间
|
|
767
|
+
- **ScaleDownGpuUtilizationThreshold** (str) - GPU缩容阈值
|
|
768
|
+
- **ScaleDownUnneededTime** (str) - 缩容触发延时
|
|
769
|
+
- **ScaleDownUtilizationThreshold** (str) - CPU缩容阈值
|
|
770
|
+
- **UpdateTime** (int) -
|
|
771
|
+
- **Version** (str) - 伸缩器版本
|
|
772
|
+
|
|
773
|
+
|
|
774
774
|
"""
|
|
775
775
|
# build request
|
|
776
776
|
d = {
|
|
@@ -984,6 +984,10 @@ class UK8SClient(Client):
|
|
|
984
984
|
|
|
985
985
|
**Response Model**
|
|
986
986
|
|
|
987
|
+
**KubeProxy**
|
|
988
|
+
- **Mode** (str) - KubeProxy模式,枚举值为[ipvs,iptables]
|
|
989
|
+
|
|
990
|
+
|
|
987
991
|
**UHostIPSet**
|
|
988
992
|
- **Bandwidth** (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
989
993
|
- **IP** (str) - IP地址
|
|
@@ -996,10 +1000,6 @@ class UK8SClient(Client):
|
|
|
996
1000
|
- **VPCId** (str) - IP地址对应的VPC ID
|
|
997
1001
|
|
|
998
1002
|
|
|
999
|
-
**KubeProxy**
|
|
1000
|
-
- **Mode** (str) - KubeProxy模式,枚举值为[ipvs,iptables]
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
1003
|
**NodeInfoV2**
|
|
1004
1004
|
- **AsgId** (str) - 节点所属伸缩组ID,非伸缩组创建出来的节点,伸缩组ID为Default。
|
|
1005
1005
|
- **BootDiskSize** (int) - 系统盘大小
|
|
@@ -1138,23 +1138,11 @@ class UK8SClient(Client):
|
|
|
1138
1138
|
|
|
1139
1139
|
**Response Model**
|
|
1140
1140
|
|
|
1141
|
-
**
|
|
1142
|
-
- **
|
|
1143
|
-
- **
|
|
1144
|
-
- **
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
**DiskSet**
|
|
1148
|
-
- **BackupType** (str) - 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
1149
|
-
- **DiskId** (str) - 磁盘长ID
|
|
1150
|
-
- **DiskType** (str) - LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
1151
|
-
- **Drive** (str) - 磁盘盘符
|
|
1152
|
-
- **Encrypted** (str) - Yes: 加密 No: 非加密
|
|
1153
|
-
- **IOPS** (int) - 当前主机的IOPS值
|
|
1154
|
-
- **IsBoot** (str) - True| False
|
|
1155
|
-
- **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回)
|
|
1156
|
-
- **Size** (int) - 磁盘大小,单位: GB
|
|
1157
|
-
- **Type** (str) - 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
1141
|
+
**EvictionCondition**
|
|
1142
|
+
- **ImagefsAvailable** (str) - 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
1143
|
+
- **MemoryAvailable** (str) - 内存相关驱逐条件或宽限时间。
|
|
1144
|
+
- **NodefsAvailable** (str) - 节点存储余量相关驱逐条件或宽限时间。
|
|
1145
|
+
- **NodefsInodesFree** (str) - 节点剩余inodes驱逐条件或宽限时间。
|
|
1158
1146
|
|
|
1159
1147
|
|
|
1160
1148
|
**ReservedResource**
|
|
@@ -1164,13 +1152,6 @@ class UK8SClient(Client):
|
|
|
1164
1152
|
- **Pid** (str) - Pid
|
|
1165
1153
|
|
|
1166
1154
|
|
|
1167
|
-
**EvictionCondition**
|
|
1168
|
-
- **ImagefsAvailable** (str) - 镜像文件系统存储相关驱逐条件或宽限时间。
|
|
1169
|
-
- **MemoryAvailable** (str) - 内存相关驱逐条件或宽限时间。
|
|
1170
|
-
- **NodefsAvailable** (str) - 节点存储余量相关驱逐条件或宽限时间。
|
|
1171
|
-
- **NodefsInodesFree** (str) - 节点剩余inodes驱逐条件或宽限时间。
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
1155
|
**KubeletConfiguration**
|
|
1175
1156
|
- **ContainerLogMaxFiles** (int) - 最大日志文件数量
|
|
1176
1157
|
- **ContainerLogMaxSize** (str) - 最大日志文件大小
|
|
@@ -1192,10 +1173,29 @@ class UK8SClient(Client):
|
|
|
1192
1173
|
- **ShareBandwidthId** (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
1193
1174
|
|
|
1194
1175
|
|
|
1176
|
+
**DiskSet**
|
|
1177
|
+
- **BackupType** (str) - 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
1178
|
+
- **DiskId** (str) - 磁盘长ID
|
|
1179
|
+
- **DiskType** (str) - LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
1180
|
+
- **Drive** (str) - 磁盘盘符
|
|
1181
|
+
- **Encrypted** (str) - Yes: 加密 No: 非加密
|
|
1182
|
+
- **IOPS** (int) - 当前主机的IOPS值
|
|
1183
|
+
- **IsBoot** (str) - True| False
|
|
1184
|
+
- **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回)
|
|
1185
|
+
- **Size** (int) - 磁盘大小,单位: GB
|
|
1186
|
+
- **Type** (str) - 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
1187
|
+
|
|
1188
|
+
|
|
1195
1189
|
**NetworkInterface**
|
|
1196
1190
|
- **EIP** (dict) - 见 **EIP** 模型定义
|
|
1197
1191
|
|
|
1198
1192
|
|
|
1193
|
+
**SecGroupId**
|
|
1194
|
+
- **Id** (str) - 安全组名称
|
|
1195
|
+
- **Name** (str) - 安全组id
|
|
1196
|
+
- **Priority** (str) - 安全组优先级
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
1199
|
**NodeGroupSet**
|
|
1200
1200
|
- **BootDiskSize** (int) - 系统盘大小
|
|
1201
1201
|
- **BootDiskType** (str) - 系统盘类型
|
|
@@ -1277,18 +1277,18 @@ class UK8SClient(Client):
|
|
|
1277
1277
|
- **ValueOperator** (str) - 标签值的匹配操作符。可选值: in, notin。
|
|
1278
1278
|
|
|
1279
1279
|
|
|
1280
|
-
**ULSWorkloadMatch**
|
|
1281
|
-
- **Name** (str) - 工作负载的名称。
|
|
1282
|
-
- **Namespace** (str) - 工作负载所在的命名空间。
|
|
1283
|
-
- **Type** (str) - 工作负载的类型,例如 deployment, statefulset, daemonset,cronjob,job。
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
1280
|
**ULSPodLabelsMatch**
|
|
1287
1281
|
- **Labels** (list) - 见 **ULSLabels** 模型定义
|
|
1288
1282
|
- **Namespace** (str) - 要匹配的命名空间。namespaceOperator 存在时必需。
|
|
1289
1283
|
- **NamespaceOperator** (str) - 命名空间名称的匹配操作符。可选值: in, notin。
|
|
1290
1284
|
|
|
1291
1285
|
|
|
1286
|
+
**ULSWorkloadMatch**
|
|
1287
|
+
- **Name** (str) - 工作负载的名称。
|
|
1288
|
+
- **Namespace** (str) - 工作负载所在的命名空间。
|
|
1289
|
+
- **Type** (str) - 工作负载的类型,例如 deployment, statefulset, daemonset,cronjob,job。
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
1292
|
**ULSMatchRule**
|
|
1293
1293
|
- **Container** (str) - 要匹配的容器名称,*表示所有容器,用逗号分隔
|
|
1294
1294
|
- **ContainerOperator** (str) - 容器名称匹配操作符。支持:in(包含),notin(不包含)
|
|
@@ -1296,23 +1296,11 @@ class UK8SClient(Client):
|
|
|
1296
1296
|
- **Workloads** (list) - 见 **ULSWorkloadMatch** 模型定义
|
|
1297
1297
|
|
|
1298
1298
|
|
|
1299
|
-
**ULSFilePaths**
|
|
1300
|
-
- **File** (str) - 采集文件
|
|
1301
|
-
- **Path** (str) - 定义采集路径
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
1299
|
**ULSInputMetadata**
|
|
1305
1300
|
- **Container** (str) - 指定具体要采集元数据的容器名。如果留空,则不采集容器的元数据,可选字段:container_name,namespace,pod_name,pod_ip,pod_uid,container_id,image_name。Pod Label 元数据通过指定 InputDetail.Metadata.Labels 字段。
|
|
1306
1301
|
- **Labels** (str) - 定义要采集哪些 Pod 的标签 (Labels)。可选值:*:采集所有标签。app,version:仅采集 app 和 version 这两个标签。""(空字符串):不采集任何标签。
|
|
1307
1302
|
|
|
1308
1303
|
|
|
1309
|
-
**ULSInputDetail**
|
|
1310
|
-
- **FilePaths** (list) - 见 **ULSFilePaths** 模型定义
|
|
1311
|
-
- **InputMetadata** (dict) - 见 **ULSInputMetadata** 模型定义
|
|
1312
|
-
- **Stream** (str) - 容器标准输出流类型。仅适用于 container_stdout,可选值:all、stdout、stderr,默认为 all。
|
|
1313
|
-
- **Type** (str) - 日志输入类型。可选值:container_file、container_stdout。
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
1304
|
**ULSExtractRule**
|
|
1317
1305
|
- **BeginningRegex** (str) - 行首正则表达式。在 multi_line、multi_line_full_regex 或 multi_line_delimiter 模式下,BeginningRegex 和 BeginningRegexBase64 必须至少填写一个。
|
|
1318
1306
|
- **BeginningRegexBase64** (str) - Base64 编码的行首正则表达式。填写时优先于 BeginningRegex。
|
|
@@ -1330,6 +1318,18 @@ class UK8SClient(Client):
|
|
|
1330
1318
|
- **UnMatchUpload** (str) - 是否上传解析失败的日志。字符串 true 表示上传,false 表示丢弃。默认为 false。
|
|
1331
1319
|
|
|
1332
1320
|
|
|
1321
|
+
**ULSFilePaths**
|
|
1322
|
+
- **File** (str) - 采集文件
|
|
1323
|
+
- **Path** (str) - 定义采集路径
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
**ULSInputDetail**
|
|
1327
|
+
- **FilePaths** (list) - 见 **ULSFilePaths** 模型定义
|
|
1328
|
+
- **InputMetadata** (dict) - 见 **ULSInputMetadata** 模型定义
|
|
1329
|
+
- **Stream** (str) - 容器标准输出流类型。仅适用于 container_stdout,可选值:all、stdout、stderr,默认为 all。
|
|
1330
|
+
- **Type** (str) - 日志输入类型。可选值:container_file、container_stdout。
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
1333
|
**ULSLogConfig**
|
|
1334
1334
|
- **ClusterId** (str) - uk8s集群id
|
|
1335
1335
|
- **ExtractRule** (dict) - 见 **ULSExtractRule** 模型定义
|
|
@@ -1457,10 +1457,8 @@ class UK8SClient(Client):
|
|
|
1457
1457
|
|
|
1458
1458
|
**Request Model**
|
|
1459
1459
|
|
|
1460
|
-
**
|
|
1461
|
-
- **
|
|
1462
|
-
- **Name** (str) - 安全组名称。
|
|
1463
|
-
- **Priority** (str) - 安全组优先级。取值范围[1, 5]
|
|
1460
|
+
**UpdateUK8SNodeGroupParamKubeletConfiguration**
|
|
1461
|
+
- **ContainerLogMaxFiles** (int) - 全量KubeletConfiguration.XXX定义参考AddUK8SNodeGroup接口: https://uxiao.ucloudadmin.com/#/api-manager/api/detail/UK8S/AddUK8SNodeGroup
|
|
1464
1462
|
|
|
1465
1463
|
|
|
1466
1464
|
**UpdateUK8SNodeGroupParamNetworkInterfaceEIP**
|
|
@@ -1475,8 +1473,10 @@ class UK8SClient(Client):
|
|
|
1475
1473
|
- **EIP** (dict) - 见 **UpdateUK8SNodeGroupParamNetworkInterfaceEIP** 模型定义
|
|
1476
1474
|
|
|
1477
1475
|
|
|
1478
|
-
**
|
|
1479
|
-
- **
|
|
1476
|
+
**UpdateUK8SNodeGroupParamSecGroupId**
|
|
1477
|
+
- **Id** (str) - 安全组 ID。至多可以同时绑定5个安全组。
|
|
1478
|
+
- **Name** (str) - 安全组名称。
|
|
1479
|
+
- **Priority** (str) - 安全组优先级。取值范围[1, 5]
|
|
1480
1480
|
|
|
1481
1481
|
|
|
1482
1482
|
"""
|
|
@@ -1514,11 +1514,6 @@ class UK8SClient(Client):
|
|
|
1514
1514
|
|
|
1515
1515
|
**Request Model**
|
|
1516
1516
|
|
|
1517
|
-
**UpdateUK8SULSConfigParamInputDetailMetadata**
|
|
1518
|
-
- **Container** (str) - 要附加到日志中的容器元数据字段,多个字段使用逗号分隔。可选字段:container_name、namespace、pod_name、pod_ip、pod_uid、container_id、image_name。留空表示不采集容器元数据。
|
|
1519
|
-
- **Labels** (str) - 要采集的Pod标签。*表示采集所有标签,app,version表示仅采集指定标签,空字符串表示不采集标签。
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
1517
|
**UpdateUK8SULSConfigParamMatchRulePodLabelsLabels**
|
|
1523
1518
|
- **Key** (str) - 按Pod标签匹配时,要匹配的标签Key。
|
|
1524
1519
|
- **Value** (str) - 要匹配的标签值。
|
|
@@ -1537,6 +1532,30 @@ class UK8SClient(Client):
|
|
|
1537
1532
|
- **Type** (str) - 工作负载类型。可选值:deployment、statefulset、daemonset、job、cronjob。
|
|
1538
1533
|
|
|
1539
1534
|
|
|
1535
|
+
**UpdateUK8SULSConfigParamMatchRule**
|
|
1536
|
+
- **Container** (str) - 要匹配的容器名称,*表示所有容器,多个名称使用逗号分隔。
|
|
1537
|
+
- **ContainerOperator** (str) - 容器名称匹配操作符。可选值:in、notin。填写该参数时必须同时填写MatchRule.Container。
|
|
1538
|
+
- **PodLabels** (dict) - 见 **UpdateUK8SULSConfigParamMatchRulePodLabels** 模型定义
|
|
1539
|
+
- **Workloads** (list) - 见 **UpdateUK8SULSConfigParamMatchRuleWorkloads** 模型定义
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
**UpdateUK8SULSConfigParamInputDetailFilePaths**
|
|
1543
|
+
- **File** (str) - 要采集的文件名。仅适用于container_file。
|
|
1544
|
+
- **Path** (str) - 日志采集路径。仅适用于container_file。
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
**UpdateUK8SULSConfigParamInputDetailMetadata**
|
|
1548
|
+
- **Container** (str) - 要附加到日志中的容器元数据字段,多个字段使用逗号分隔。可选字段:container_name、namespace、pod_name、pod_ip、pod_uid、container_id、image_name。留空表示不采集容器元数据。
|
|
1549
|
+
- **Labels** (str) - 要采集的Pod标签。*表示采集所有标签,app,version表示仅采集指定标签,空字符串表示不采集标签。
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
**UpdateUK8SULSConfigParamInputDetail**
|
|
1553
|
+
- **FilePaths** (list) - 见 **UpdateUK8SULSConfigParamInputDetailFilePaths** 模型定义
|
|
1554
|
+
- **Metadata** (dict) - 见 **UpdateUK8SULSConfigParamInputDetailMetadata** 模型定义
|
|
1555
|
+
- **Stream** (str) - 容器标准输出流类型。仅适用于container_stdout,可选值:all、stdout、stderr,默认为all。
|
|
1556
|
+
- **Type** (str) - 日志输入类型。可选值:container_file、container_stdout。
|
|
1557
|
+
|
|
1558
|
+
|
|
1540
1559
|
**UpdateUK8SULSConfigParamExtractRule**
|
|
1541
1560
|
- **BeginningRegex** (str) - 行首正则表达式。multi_line、multi_line_full_regex或multi_line_delimiter模式下,BeginningRegex和BeginningRegexBase64必须至少填写一个。
|
|
1542
1561
|
- **BeginningRegexBase64** (str) - Base64编码的行首正则表达式。填写时优先于BeginningRegex。
|
|
@@ -1554,25 +1573,6 @@ class UK8SClient(Client):
|
|
|
1554
1573
|
- **UnMatchUpload** (str) - 是否上传解析失败的日志。字符串true表示上传,false表示丢弃。默认为false。
|
|
1555
1574
|
|
|
1556
1575
|
|
|
1557
|
-
**UpdateUK8SULSConfigParamInputDetailFilePaths**
|
|
1558
|
-
- **File** (str) - 要采集的文件名。仅适用于container_file。
|
|
1559
|
-
- **Path** (str) - 日志采集路径。仅适用于container_file。
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
**UpdateUK8SULSConfigParamInputDetail**
|
|
1563
|
-
- **FilePaths** (list) - 见 **UpdateUK8SULSConfigParamInputDetailFilePaths** 模型定义
|
|
1564
|
-
- **Metadata** (dict) - 见 **UpdateUK8SULSConfigParamInputDetailMetadata** 模型定义
|
|
1565
|
-
- **Stream** (str) - 容器标准输出流类型。仅适用于container_stdout,可选值:all、stdout、stderr,默认为all。
|
|
1566
|
-
- **Type** (str) - 日志输入类型。可选值:container_file、container_stdout。
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
**UpdateUK8SULSConfigParamMatchRule**
|
|
1570
|
-
- **Container** (str) - 要匹配的容器名称,*表示所有容器,多个名称使用逗号分隔。
|
|
1571
|
-
- **ContainerOperator** (str) - 容器名称匹配操作符。可选值:in、notin。填写该参数时必须同时填写MatchRule.Container。
|
|
1572
|
-
- **PodLabels** (dict) - 见 **UpdateUK8SULSConfigParamMatchRulePodLabels** 模型定义
|
|
1573
|
-
- **Workloads** (list) - 见 **UpdateUK8SULSConfigParamMatchRuleWorkloads** 模型定义
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
1576
|
"""
|
|
1577
1577
|
# build request
|
|
1578
1578
|
d = {
|