@ucloud-sdks/ucloud-sdk-js 0.2.51 → 0.2.52
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/uk8s/index.d.ts +70 -28
- package/package.json +1 -1
|
@@ -816,6 +816,18 @@ export interface CreateUK8SClusterV2Request {
|
|
|
816
816
|
* 集群节点密码,包括Master和Node。密码需包含最少一个大写字母,请使用base64进行编码,举例如下:# echo -n Password1 | base64
|
|
817
817
|
*/
|
|
818
818
|
Password: string;
|
|
819
|
+
/**
|
|
820
|
+
* Master节点的云主机机型(V2.0),如["N", "C", "O", "OS"],具体请参照云主机机型。
|
|
821
|
+
*/
|
|
822
|
+
MasterMachineType: string;
|
|
823
|
+
/**
|
|
824
|
+
* Master节点的虚拟CPU核数。可选参数:2-64(具体机型与CPU的对应关系参照控制台)。
|
|
825
|
+
*/
|
|
826
|
+
MasterCPU: number;
|
|
827
|
+
/**
|
|
828
|
+
* Master节点的内存大小。单位:MB。范围 :[4096, 262144],取值为1024的倍数(可选范围参考控制台)。
|
|
829
|
+
*/
|
|
830
|
+
MasterMem: number;
|
|
819
831
|
/**
|
|
820
832
|
*
|
|
821
833
|
*/
|
|
@@ -842,18 +854,6 @@ export interface CreateUK8SClusterV2Request {
|
|
|
842
854
|
Name?: string;
|
|
843
855
|
}[];
|
|
844
856
|
}[];
|
|
845
|
-
/**
|
|
846
|
-
* Master节点的云主机机型(V2.0),如["N", "C", "O", "OS"],具体请参照云主机机型。
|
|
847
|
-
*/
|
|
848
|
-
MasterMachineType: string;
|
|
849
|
-
/**
|
|
850
|
-
* Master节点的虚拟CPU核数。可选参数:2-64(具体机型与CPU的对应关系参照控制台)。
|
|
851
|
-
*/
|
|
852
|
-
MasterCPU: number;
|
|
853
|
-
/**
|
|
854
|
-
* Master节点的内存大小。单位:MB。范围 :[4096, 262144],取值为1024的倍数(可选范围参考控制台)。
|
|
855
|
-
*/
|
|
856
|
-
MasterMem: number;
|
|
857
857
|
/**
|
|
858
858
|
*
|
|
859
859
|
*/
|
|
@@ -897,11 +897,15 @@ export interface CreateUK8SClusterV2Request {
|
|
|
897
897
|
/**
|
|
898
898
|
* Node节点的系统盘大小,单位GB,默认为40。范围:[40, 500]。注意SSD本地盘无法调整。
|
|
899
899
|
*/
|
|
900
|
-
|
|
900
|
+
BootDiskSize?: number;
|
|
901
901
|
/**
|
|
902
902
|
* 一组Node节点的数据盘类型,请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘
|
|
903
903
|
*/
|
|
904
904
|
DataDiskType?: string;
|
|
905
|
+
/**
|
|
906
|
+
* 数据磁盘大小,单位GB。默认0。范围 :[20, 1000]
|
|
907
|
+
*/
|
|
908
|
+
DataDiskSize?: number;
|
|
905
909
|
/**
|
|
906
910
|
* 一组Node节点的GPU类型,枚举值["K80", "P40", "V100"],最新值参考Console。
|
|
907
911
|
*/
|
|
@@ -910,10 +914,6 @@ export interface CreateUK8SClusterV2Request {
|
|
|
910
914
|
* 一组Node节点的GPU卡核心数,仅GPU机型支持此字段。
|
|
911
915
|
*/
|
|
912
916
|
GPU?: number;
|
|
913
|
-
/**
|
|
914
|
-
* 数据磁盘大小,单位GB。默认0。范围 :[20, 1000]
|
|
915
|
-
*/
|
|
916
|
-
DataDiskSize?: number;
|
|
917
917
|
/**
|
|
918
918
|
* Node节点的最低cpu平台,不选则随机。枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"。
|
|
919
919
|
*/
|
|
@@ -959,7 +959,7 @@ export interface CreateUK8SClusterV2Request {
|
|
|
959
959
|
*/
|
|
960
960
|
ShareBandwidthId?: string;
|
|
961
961
|
/**
|
|
962
|
-
* 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International
|
|
962
|
+
* 【若绑定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
|
|
963
963
|
*/
|
|
964
964
|
OperatorName?: string;
|
|
965
965
|
/**
|
|
@@ -989,7 +989,32 @@ export interface CreateUK8SClusterV2Request {
|
|
|
989
989
|
*/
|
|
990
990
|
Name?: string;
|
|
991
991
|
}[];
|
|
992
|
+
/**
|
|
993
|
+
* Node节点规格族
|
|
994
|
+
*/
|
|
995
|
+
UHostFamily?: string;
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
*/
|
|
999
|
+
KubeletConfiguration?: {
|
|
1000
|
+
/**
|
|
1001
|
+
* 全量KubeletConfiguration.XXX定义参考AddUK8SNodeGroup接口: https://uxiao.ucloudadmin.com/#/api-manager/api/detail/UK8S/AddUK8SNodeGroup
|
|
1002
|
+
*/
|
|
1003
|
+
ContainerLogMaxFiles?: string;
|
|
1004
|
+
};
|
|
1005
|
+
/**
|
|
1006
|
+
* 节点数据盘加密使用的 key id
|
|
1007
|
+
*/
|
|
1008
|
+
DataDiskKmsKeyId?: string;
|
|
992
1009
|
}[];
|
|
1010
|
+
/**
|
|
1011
|
+
* k8s集群的版本,版本信息请参考UK8S集群创建页。
|
|
1012
|
+
*/
|
|
1013
|
+
K8sVersion: string;
|
|
1014
|
+
/**
|
|
1015
|
+
* Master节点和Node节点的镜像 ID,不填则随机选择可用的基础镜像。支持用户自定义镜像。
|
|
1016
|
+
*/
|
|
1017
|
+
ImageId: string;
|
|
993
1018
|
/**
|
|
994
1019
|
* Master节点系统盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘
|
|
995
1020
|
*/
|
|
@@ -1010,10 +1035,6 @@ export interface CreateUK8SClusterV2Request {
|
|
|
1010
1035
|
* 集群所有节点的付费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限),默认按月。
|
|
1011
1036
|
*/
|
|
1012
1037
|
ChargeType?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* k8s集群的版本,版本信息请参考UK8S集群创建页,不指定的话默认为当前支持的最高版本。
|
|
1015
|
-
*/
|
|
1016
|
-
K8sVersion?: string;
|
|
1017
1038
|
/**
|
|
1018
1039
|
* 购买时长。默认为1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
|
|
1019
1040
|
*/
|
|
@@ -1035,10 +1056,6 @@ export interface CreateUK8SClusterV2Request {
|
|
|
1035
1056
|
*/
|
|
1036
1057
|
Mode?: string;
|
|
1037
1058
|
};
|
|
1038
|
-
/**
|
|
1039
|
-
* Master节点和Node节点的镜像 ID,不填则随机选择可用的基础镜像。支持用户自定义镜像。
|
|
1040
|
-
*/
|
|
1041
|
-
ImageId?: string;
|
|
1042
1059
|
/**
|
|
1043
1060
|
* 用户自定义数据。注意:1、总数据量大小不超多16K;2、使用base64编码。
|
|
1044
1061
|
*/
|
|
@@ -1072,9 +1089,34 @@ export interface CreateUK8SClusterV2Request {
|
|
|
1072
1089
|
*/
|
|
1073
1090
|
ForwardSrcIPMethod?: string;
|
|
1074
1091
|
/**
|
|
1075
|
-
*
|
|
1092
|
+
* Master节点规格族,如o1a, o1i
|
|
1076
1093
|
*/
|
|
1077
|
-
|
|
1094
|
+
MasterUHostFamily?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* 开启 kms 插件的 key id
|
|
1097
|
+
*/
|
|
1098
|
+
KmsPluginKeyId?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* master 节点数据盘使用的 kms key id
|
|
1101
|
+
*/
|
|
1102
|
+
MasterDataDiskKmsKeyId?: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* kms 加密的资源
|
|
1105
|
+
*/
|
|
1106
|
+
KmsPluginResource?: string[];
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
*/
|
|
1110
|
+
UserLabels?: {
|
|
1111
|
+
/**
|
|
1112
|
+
* UK8S用户资源标签的键值
|
|
1113
|
+
*/
|
|
1114
|
+
Key?: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* UK8S用户资源标签的值
|
|
1117
|
+
*/
|
|
1118
|
+
Value?: string;
|
|
1119
|
+
}[];
|
|
1078
1120
|
}
|
|
1079
1121
|
/**
|
|
1080
1122
|
* CreateUK8SClusterV2 - 创建UK8S集群
|