Documentation
¶
Index ¶
- type AddonConfig
- type AddonConfigSpec
- type ApiServerWhiteList
- type AutoClusterNetworkSpec
- type CAClusterConfig
- type CAClusterConfigSpec
- type CAConfig
- type CAConfigSpec
- type ChargeConfigSpec
- type Check
- type CheckConfigSpec
- type CheckItem
- type ChildOperationSummary
- type CidrConfig
- type Cluster
- type ClusterAddon
- type ClusterAddonInfo
- type ClusterAddonRespStatus
- type ClusterAddonSpec
- type ClusterAddonVersion
- type ClusterAddonVersionInfo
- type ClusterDnsPlugin
- type ClusterDnsServerSpec
- type ClusterDnsSpec
- type ClusterDnsZoneSpec
- type ClusterNetwork
- type ClusterNetworkPodSubnet
- type ClusterNetworkSpec
- type ClusterNetworkSubnet
- type ClusterOperationMeta
- type ClusterPodSubnet
- type ClusterSubnet
- type CustomizedClusterNetworkSpec
- type DataDiskSpec
- type DiskInitializeSpec
- type DiskSpec
- type ExtensionSpec
- type GpuInstaller
- type HpcNodeConfig
- type HpcNodeConfigSpec
- type HpcNodeGroup
- type HpcNodeGroupSpec
- type HpcNodeOsVersion
- type InstanceSpec
- type InstanceTypeImage
- type Label
- type LabelSpec
- type LbConfig
- type LbElasticIpSpec
- type MaintenanceWindow
- type MaintenanceWindowSpec
- type MasterAuth
- type MasterProgress
- type MasterVersion
- type NatGateway
- type NatGatewaySpec
- type NodeChargeConfig
- type NodeCondition
- type NodeConfig
- type NodeConfigSpec
- type NodeDiskSpec
- type NodeElasticIpSpec
- type NodeFilter
- type NodeGroup
- type NodeGroupDataDiskSpec
- type NodeGroupNetworkSpec
- type NodeGroupProgress
- type NodeGroupSpec
- type NodeGroupSystemDiskSpec
- type NodeMeta
- type NodeNetwork
- type NodeVersion
- type Operation
- type OperationCapabilities
- type OperationDetailItem
- type OperationError
- type OperationLatestSummary
- type OperationMetric
- type OperationNode
- type OperationResource
- type OperationResourceKey
- type OperationStage
- type OperationStep
- type OperationSummary
- type Param
- type ParamSpec
- type Quota
- type RecommendNetConfig
- type ScaleDownPolicySpec
- type ScaleUpPolicySpec
- type ServerlessCluster
- type ServerlessClusterNetworkConfig
- type ServerlessClusterNetworkSpec
- type ServerlessMasterVersion
- type StringKeyValuePair
- type Summary
- type Tag
- type TagFilter
- type TaintSpec
- type UpgradeConfigSpec
- type UpgradeHistory
- type UpgradePlan
- type UserScriptSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddonConfig ¶ added in v1.12.0
type AddonConfig struct {
/* 组件名称 (Optional) */
Name string `json:"name"`
/* 组件版本,非必须,未安装时填充为默认版本号 (Optional) */
Version string `json:"version"`
/* 组件是否开启 (Optional) */
Enabled bool `json:"enabled"`
/* 组件安装状态 not_installed,installed,installing,uninstalling,error_installed (Optional) */
State string `json:"state"`
/* 组件的额外参数(deprecated) (Optional) */
Params interface{} `json:"params"`
/* 组件的额外参数(新) (Optional) */
Parameters []StringKeyValuePair `json:"parameters"`
/* 可安装的addons (Optional) */
AddonDetail ClusterAddon `json:"addonDetail"`
}
type AddonConfigSpec ¶ added in v1.12.0
type AddonConfigSpec struct {
/* 组件名称,目前支持customMetrics、logging */
Name string `json:"name"`
/* 组件版本,非必须 (Optional) */
Version *string `json:"version"`
/* 是否开启该组件,默认为false。 (Optional) */
Enabled *bool `json:"enabled"`
/* 组件参数(deprecated) (Optional) */
Params *interface{} `json:"params"`
/* 组件的额外参数(新) (Optional) */
Parameters []StringKeyValuePair `json:"parameters"`
}
type ApiServerWhiteList ¶
type AutoClusterNetworkSpec ¶ added in v1.59.0
type AutoClusterNetworkSpec struct {
/* kube-apiserver是否可公网访问,false则kube-apiserver不绑定公网地址,true绑定公网地址 */
PublicApiServer bool `json:"publicApiServer"`
/* master网络的cidr;isCreditNic为true时,自动生成;isCreditNic为false,此参数值如果为空则自动生成 (Optional) */
MasterCidr *string `json:"masterCidr"`
/* node网络的cidr,自动切分;vpcId不为空时,此参数必传 (Optional) */
NodeNetworkCidr *string `json:"nodeNetworkCidr"`
/* 用户侧承载node和pod的vpc id,此参数为空则自动创建 (Optional) */
VpcId *string `json:"vpcId"`
/* 是否双栈支持,开启后,kube-apiserver将拥有ipv6地址,默认不开启 (Optional) */
DualStack *bool `json:"dualStack"`
/* 是否开启master访问公网的能力,如果需要引入公网OIDC认证时需要开启,默认不开启 (Optional) */
MasterNatEnabled *bool `json:"masterNatEnabled"`
/* nat网关配置,如果clusterNetworkType为auto,当natGateway和nodeElasticIpSpec都为空时会自动创建nat虚机 (Optional) */
NatGateway *NatGatewaySpec `json:"natGateway"`
/* 节点公网IP的配置,与nat网关配置互斥,不可同时设置 (Optional) */
NodeElasticIpSpec *NodeElasticIpSpec `json:"nodeElasticIpSpec"`
}
type CAClusterConfig ¶
type CAClusterConfig struct {
/* 扩容策略 (Optional) */
ScaleUpPolicy interface{} `json:"scaleUpPolicy"`
/* 缩容策略 (Optional) */
ScaleDownPolicy interface{} `json:"scaleDownPolicy"`
}
type CAClusterConfigSpec ¶
type CAClusterConfigSpec struct {
/* 扩容策略 (Optional) */
ScaleUpPolicy ScaleUpPolicySpec `json:"scaleUpPolicy"`
/* 缩容策略 (Optional) */
ScaleDownPolicy ScaleDownPolicySpec `json:"scaleDownPolicy"`
}
type CAConfigSpec ¶ added in v1.15.0
type ChargeConfigSpec ¶
type ChargeConfigSpec struct {
/* 计费类型:按配置(postpaid_by_duration)/包年包月(prepaid_by_duration) (Optional) */
ChargeMode *string `json:"chargeMode"`
/* 包年包月付费单位。仅chargeMode=prepaid_by_duration时此参数有效。取值为:month、year,默认为month (Optional) */
ChargeUnit *string `json:"chargeUnit"`
/* 包年包月付费时长。chargeMode=prepaid_by_duration时此参数有效。当chargeUnit为month时取值为:1~9,当chargeUnit为year时取值为:1、2、3、4、5 (Optional) */
ChargeDuration *int `json:"chargeDuration"`
/* 自动续费。true为开通自动续费,false为不开通自动续费,默认为false,仅对包年包月资源有效 (Optional) */
AutoRenew *bool `json:"autoRenew"`
}
type Check ¶
type Check struct {
/* 检查id (Optional) */
CheckId string `json:"checkId"`
/* 检查状态,running,failed,finished (Optional) */
State string `json:"state"`
/* 检查类型 (Optional) */
Type string `json:"type"`
/* 开始时间 (Optional) */
StartTime string `json:"startTime"`
/* 完成时间 (Optional) */
FinishTime string `json:"finishTime"`
/* 检查结果总结 (Optional) */
Summary Summary `json:"summary"`
/* (Optional) */
CheckItemResults []CheckItem `json:"checkItemResults"`
}
type CheckConfigSpec ¶
type CheckConfigSpec struct {
/* 升级版本 (Optional) */
UpgradeVersion string `json:"upgradeVersion"`
}
type CheckItem ¶
type CheckItem struct {
/* 检查项名称 (Optional) */
Name string `json:"name"`
/* 检查项分组(cluster,nodegroup,master) (Optional) */
Group string `json:"group"`
/* 检查项分类,(集群资源,集群配置,系统组件,拓展组件) (Optional) */
Category string `json:"category"`
/* 检查问题描述 (Optional) */
Description string `json:"description"`
/* 修复建议 (Optional) */
RepairSuggestion string `json:"repairSuggestion"`
/* 检查资源 (Optional) */
Resource []string `json:"resource"`
/* 问题级别(fatal:阻塞,warning:高危,info:低危,unknown:未知,normal:正常) (Optional) */
Level string `json:"level"`
/* 拓展项 (Optional) */
Extension []ExtensionSpec `json:"extension"`
}
type ChildOperationSummary ¶
type ChildOperationSummary struct {
/* 操作 ID (Optional) */
OperationId string `json:"operationId"`
/* 操作类型 (Optional) */
OperationType string `json:"operationType"`
/* 操作状态 (Optional) */
Status string `json:"status"`
/* (Optional) */
Target OperationResource `json:"target"`
/* (Optional) */
Progress OperationMetric `json:"progress"`
}
type CidrConfig ¶
type CidrConfig struct {
/* 工作节点cidr (Optional) */
Cidr string `json:"cidr"`
/* 可创建的node数量 (Optional) */
NodeCount int `json:"nodeCount"`
/* 可创建的service数量 (Optional) */
ServiceCount string `json:"serviceCount"`
/* 可创建的service lb 数量 (Optional) */
ServiceLbCount string `json:"serviceLbCount"`
/* 可创建的pod数量 (Optional) */
PodCount string `json:"podCount"`
}
type Cluster ¶
type Cluster struct {
/* 集群id (Optional) */
ClusterId string `json:"clusterId"`
/* 名称 (Optional) */
Name string `json:"name"`
/* 描述 (Optional) */
Description string `json:"description"`
/* kubernetes的版本 (Optional) */
Version string `json:"version"`
/* k8s可升级的版本 (Optional) */
UpgradeVersion []string `json:"upgradeVersion"`
/* 集群所在的az (Optional) */
Azs []string `json:"azs"`
/* 节点组列表 (Optional) */
NodeGroups []NodeGroup `json:"nodeGroups"`
/* k8s的cluster的cidr (Optional) */
ClusterCidr string `json:"clusterCidr"`
/* 认证信息 (Optional) */
MasterAuth MasterAuth `json:"masterAuth"`
/* 状态 [pending,running,upgrading(升级中), deleting, deleted, error] (Optional) */
ClusterState string `json:"clusterState"`
/* 状态变更原因 (Optional) */
StateMessage string `json:"stateMessage"`
/* 更新时间 (Optional) */
UpdateTime string `json:"updateTime"`
/* 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 用户的AccessKey,插件调用open-api时的认证凭证 (Optional) */
AccessKey string `json:"accessKey"`
/* 基本验证方式 (Optional) */
BasicAuth bool `json:"basicAuth"`
/* 证书验证方式 (Optional) */
ClientCertificate bool `json:"clientCertificate"`
/* 用户访问的内网ip (Optional) */
PrivateEndpoint string `json:"privateEndpoint"`
/* 用户访问的ip (Optional) */
Endpoint string `json:"endpoint"`
/* IPv6地址 (Optional) */
EndpointIPV6 string `json:"endpointIPV6"`
/* endpoint的port (Optional) */
EndpointPort string `json:"endpointPort"`
/* endpoint的dashboard port (Optional) */
DashboardPort string `json:"dashboardPort"`
/* deprecated 优先以addonsConfig中的配置为准 <br>用户是否启用集群自定义监控,true 表示开启用,false 表示未开启用 (Optional) */
UserMetrics bool `json:"userMetrics"`
/* 集群组件配置信息 (Optional) */
AddonsConfig []AddonConfig `json:"addonsConfig"`
/* 是否开启集群自动升级,true 表示开启,false 表示未开启 (Optional) */
AutoUpgrade bool `json:"autoUpgrade"`
/* 配置集群维护策略 (Optional) */
MaintenanceWindow MaintenanceWindow `json:"maintenanceWindow"`
/* 集群升级计划信息, 仅展示最新一条升级计划信息 (Optional) */
UpgradePlan UpgradePlan `json:"upgradePlan"`
/* 控制节点操作进度 (Optional) */
MasterProgress MaintenanceWindow `json:"masterProgress"`
/* 网络配置信息 (Optional) */
ClusterNetwork ClusterNetwork `json:"clusterNetwork"`
/* 集群网络类型,可取值为auto和customized (Optional) */
NetworkMode string `json:"networkMode"`
/* 用户自定义的集群的环境信息,会影响到创建集群时的组件模版的渲染 (Optional) */
ClusterEnvironments []StringKeyValuePair `json:"clusterEnvironments"`
/* 是否是边缘计算集群 (Optional) */
IsEdge bool `json:"isEdge"`
/* 是否开启集群删除保护 (Optional) */
DeleteProtected bool `json:"deleteProtected"`
/* 资源标签 (Optional) */
Tags []Tag `json:"tags"`
/* 资源组id (Optional) */
ResourceGroupId string `json:"resourceGroupId"`
/* 是否开启集群授权网卡, true表示开启, false表示未开启 (Optional) */
IsCreditNic bool `json:"isCreditNic"`
/* 集群DNS的定制化配置,可以配置自定义的hosts和域名解析 (Optional) */
ClusterDnsSpec ClusterDnsSpec `json:"clusterDnsSpec"`
/* kube-apiserver的自定义域名,会自动签名到证书里 (Optional) */
KubeApiserverDomains []string `json:"kubeApiserverDomains"`
/* 集群级自动伸缩策略,独立于各节点池的 caConfig (Optional) */
CaClusterConfig CAClusterConfig `json:"caClusterConfig"`
}
type ClusterAddon ¶ added in v1.59.0
type ClusterAddon struct {
/* 组件名称 (Optional) */
Name string `json:"name"`
/* 组件是否必需开启 (Optional) */
Required bool `json:"required"`
/* 组件说明 (Optional) */
Description string `json:"description"`
/* (Optional) */
AvailableVersions []ClusterAddonVersion `json:"availableVersions"`
}
type ClusterAddonInfo ¶
type ClusterAddonInfo struct {
/* 组件名称 */
Name string `json:"name"`
/* 组件显示名称 (Optional) */
DisplayName string `json:"displayName"`
/* 组件分类 (Optional) */
Catalog string `json:"catalog"`
/* 描述说明 (Optional) */
Description string `json:"description"`
/* 组件类型 (Optional) */
Type string `json:"type"`
/* 组件的额外参数 (Optional) */
Params interface{} `json:"params"`
/* 组件安装状态 (Optional) */
Status ClusterAddonRespStatus `json:"status"`
}
type ClusterAddonRespStatus ¶
type ClusterAddonRespStatus struct {
/* 组件状态 (installing:安装中,installed:已安装,uninstalled:未安装,installFailed:安装失败,uninstalling:卸载中,uninstallFailed:卸载失败 //针对卸载组件失败状态) (Optional) */
Phase string `json:"phase"`
/* 组件版本 (Optional) */
Version string `json:"version"`
/* 组件可安装最新版本 (Optional) */
LastAddonVersion string `json:"lastAddonVersion"`
}
type ClusterAddonSpec ¶
type ClusterAddonSpec struct {
/* 组件版本 (Optional) */
Version string `json:"version"`
/* 组件的额外参数
- jke-gpu-driver(GPU驱动安装), 格式示例为{"image_gpu_installer_version":"20250310175736","installer_name":"V100-515.65.01-419-11.7"}
- jke-descheduler(二次调度),格式示例为
{"LowNodeUtilization": "{\"enabled\":true,\"params\":{\"nodeResourceUtilizationThresholds\":{\"targetThresholds\":{\"cpu\":75,\"memory\":75,\"pods\":20},\"thresholds\":{\"cpu\":35,\"memory\":35,\"pods\":10}}}}",
"RemoveDuplicates": "{\"enabled\":true}",
"RemovePodsViolatingNodeAffinity": "{\"enabled\":true}",
"RemovePodsViolatingNodeTaints": "{\"enabled\":true}",
"gpu": "{}"}
(Optional) */
Params interface{} `json:"params"`
}
type ClusterAddonVersion ¶ added in v1.59.0
type ClusterAddonVersion struct {
/* 组件名称 (Optional) */
Name string `json:"name"`
/* 组件版本,非必须 (Optional) */
Version string `json:"version"`
/* 组件版本简要说明 (Optional) */
Description string `json:"description"`
/* 组件版本发布说明 (Optional) */
ReleaseNote string `json:"releaseNote"`
/* 适配的k8s最低版本,如 1.18 (Optional) */
MinAdaptedK8sVersion string `json:"minAdaptedK8sVersion"`
/* 适配的k8s最高版本,如 1.30 (Optional) */
MaxAdaptedK8sVersion string `json:"maxAdaptedK8sVersion"`
}
type ClusterAddonVersionInfo ¶
type ClusterAddonVersionInfo struct {
/* 组件名称 */
Name string `json:"name"`
/* 组件版本 (Optional) */
Version string `json:"version"`
/* 兼容的 Kubernetes 版本限制,规则见 https://github.com/Masterminds/semver (Optional) */
KubeVersion string `json:"kubeVersion"`
}
type ClusterDnsPlugin ¶
type ClusterDnsServerSpec ¶
type ClusterDnsServerSpec struct {
/* 端口 (Optional) */
Port *int `json:"port"`
/* DNS搜索域名列表 (Optional) */
Zones []ClusterDnsZoneSpec `json:"zones"`
/* CoreDNS Plugin 自定义列表 (Optional) */
Plugins []ClusterDnsPlugin `json:"plugins"`
}
type ClusterDnsSpec ¶
type ClusterDnsSpec struct {
/* 自定义Hosts配置 (Optional) */
Hosts *interface{} `json:"hosts"`
/* 自定义DNS域名解析 (Optional) */
CustomizedZones []ClusterDnsServerSpec `json:"customizedZones"`
}
type ClusterDnsZoneSpec ¶
type ClusterDnsZoneSpec struct {
/* 域名 (Optional) */
Zone *string `json:"zone"`
}
type ClusterNetwork ¶ added in v1.21.0
type ClusterNetwork struct {
/* kube-apiserver是否可公网访问,false则kube-apiserver不绑定公网地址,true绑定公网地址 (Optional) */
PublicApiServer bool `json:"publicApiServer"`
/* master网络的cidr (Optional) */
MasterCidr string `json:"masterCidr"`
/* service网络的cidr (Optional) */
ServiceCidr string `json:"serviceCidr"`
/* 用户侧承载node和pod的vpc id (Optional) */
VpcId string `json:"vpcId"`
/* 集群Pod子网信息 (Optional) */
PodSubnets []ClusterNetworkPodSubnet `json:"podSubnets"`
/* 集群子网信息 (Optional) */
ClusterSubnets []ClusterNetworkSubnet `json:"clusterSubnets"`
/* nat网关配置 (Optional) */
NatGateway []NatGateway `json:"natGateway"`
/* 节点公网IP的配置,如果设置了节点公网IP,此项不为空 (Optional) */
NodeElasticIpSpec NodeElasticIpSpec `json:"nodeElasticIpSpec"`
}
type ClusterNetworkPodSubnet ¶ added in v1.59.0
type ClusterNetworkPodSubnet struct {
/* 子网 ID (Optional) */
SubnetId string `json:"subnetId"`
/* 子网类型,可取值为:pod_subnet/lb_subnet/node_subnet/pod_subnet_with_namespace (Optional) */
SubnetType string `json:"subnetType"`
/* 子网是否启用,仅pod子网可用 (Optional) */
Enabled bool `json:"enabled"`
/* 是否允许自动删除 (Optional) */
AutoDelete bool `json:"autoDelete"`
/* ip mask of subnet view (Optional) */
IpMaskLen int `json:"ipMaskLen"`
/* 可用的node数量 (Optional) */
AvailableCidrCount int `json:"availableCidrCount"`
/* ip count of each cidr. defined by user (Optional) */
EniLen int `json:"eniLen"`
/* ipam policy. defined by user (Optional) */
IpamPolicy string `json:"ipamPolicy"`
/* tell if runtime subnet has error (Optional) */
RuntimeError string `json:"runtimeError"`
/* pod子网关联的命名空间 (Optional) */
Namespace string `json:"namespace"`
}
type ClusterNetworkSpec ¶ added in v1.21.0
type ClusterNetworkSpec struct {
/* kube-apiserver是否可公网访问,false则kube-apiserver不绑定公网地址,true绑定公网地址 */
PublicApiServer bool `json:"publicApiServer"`
/* master网络的cidr */
MasterCidr string `json:"masterCidr"`
/* service网络的cidr */
ServiceCidr string `json:"serviceCidr"`
/* 用户侧承载node和pod的vpc id */
VpcId string `json:"vpcId"`
/* 初始pod的子网id */
PodSubnetId string `json:"podSubnetId"`
/* 初始loadbalancer类型的service所创建的lb所在的subnet */
LbSubnetId string `json:"lbSubnetId"`
/* 初始的node子网ID */
NodeSubnetId string `json:"nodeSubnetId"`
/* nat网关配置 */
NatGateway NatGatewaySpec `json:"natGateway"`
}
type ClusterNetworkSubnet ¶ added in v1.21.0
type ClusterOperationMeta ¶
type ClusterPodSubnet ¶ added in v1.59.0
type ClusterPodSubnet struct {
/* 子网 ID (Optional) */
SubnetId string `json:"subnetId"`
/* 子网类型,可取值为:pod_subnet/lb_subnet/node_subnet (Optional) */
SubnetType string `json:"subnetType"`
/* 子网是否启用,仅pod子网可用 (Optional) */
Enabled bool `json:"enabled"`
/* 是否允许自动删除 (Optional) */
AutoDelete bool `json:"autoDelete"`
/* ip mask of subnet view (Optional) */
IpMaskLen int `json:"ipMaskLen"`
/* 可用的node数量 (Optional) */
AvailableCidrCount int `json:"availableCidrCount"`
/* ip count of each cidr. defined by user (Optional) */
EniLen int `json:"eniLen"`
/* ipam policy. defined by user (Optional) */
IpamPolicy string `json:"ipamPolicy"`
/* tell if runtime subnet has error (Optional) */
RuntimeError string `json:"runtimeError"`
/* 子网CIDR (Optional) */
Cidr string `json:"cidr"`
/* 子网中可用的IP数量 (Optional) */
AvailableIpNum int `json:"availableIpNum"`
/* 子网名称 (Optional) */
SubnetName string `json:"subnetName"`
/* pod子网关联的命名空间 (Optional) */
Namespace string `json:"namespace"`
}
type ClusterSubnet ¶ added in v1.21.0
type ClusterSubnet struct {
/* 子网 ID (Optional) */
SubnetId string `json:"subnetId"`
/* 子网类型,可取值为:pod_subnet/lb_subnet/node_subnet (Optional) */
SubnetType string `json:"subnetType"`
/* 子网是否启用,仅pod子网可用。 (Optional) */
Enabled bool `json:"enabled"`
/* 子网是否自动删除,用户自定义子网不会自动删除 (Optional) */
AutoDelete bool `json:"autoDelete"`
/* 子网CIDR (Optional) */
Cidr string `json:"cidr"`
/* 子网中可用的IP数量 (Optional) */
AvailableIpNum int `json:"availableIpNum"`
/* 子网名称 (Optional) */
SubnetName string `json:"subnetName"`
}
type CustomizedClusterNetworkSpec ¶ added in v1.59.0
type CustomizedClusterNetworkSpec struct {
/* kube-apiserver是否可公网访问,false则kube-apiserver不绑定公网地址,true绑定公网地址 */
PublicApiServer bool `json:"publicApiServer"`
/* master网络的cidr;isCreditNic为true时,自动生成;isCreditNic为false,此参数值必填 (Optional) */
MasterCidr *string `json:"masterCidr"`
/* service网络的cidr */
ServiceCidr string `json:"serviceCidr"`
/* 用户侧承载node和pod的vpc id */
VpcId string `json:"vpcId"`
/* 初始pod的子网id */
PodSubnetId string `json:"podSubnetId"`
/* 初始loadbalancer类型的service所创建的lb所在的subnet */
LbSubnetId string `json:"lbSubnetId"`
/* 初始的vm node子网ID (Optional) */
NodeSubnetId *string `json:"nodeSubnetId"`
/* 是否双栈支持,开启后,kube-apiserver将拥有ipv6地址,默认不开启 (Optional) */
DualStack *bool `json:"dualStack"`
/* 是否开启master访问公网的能力,如果需要引入公网OIDC认证时需要开启,默认不开启 (Optional) */
MasterNatEnabled *bool `json:"masterNatEnabled"`
/* nat网关配置 (Optional) */
NatGateway *NatGatewaySpec `json:"natGateway"`
/* 节点公网IP的配置,与nat网关配置互斥,不可同时设置 (Optional) */
NodeElasticIpSpec *NodeElasticIpSpec `json:"nodeElasticIpSpec"`
/* 负载均衡配置,仅对集群isCreditNic:true生效, 如果isCreditNic设置true,lbConfig对象必须设置 (Optional) */
LbConfig *LbConfig `json:"lbConfig"`
/* 异构节点子网id,如果创建集群时选择了异构节点组,此字段需必传 (Optional) */
HpcNodeSubnetId *string `json:"hpcNodeSubnetId"`
}
type DataDiskSpec ¶ added in v1.59.0
type DataDiskSpec struct {
/* 云硬盘类型,取值为ssd、premium-hdd、ssd.gp1、ssd.io1、hdd.std1之一 */
DiskType string `json:"diskType"`
/* 云硬盘大小,单位为 GiB,ssd 类型取值范围[20,1000]GB,步长为10G,premium-hdd 类型取值范围[20,3000]GB,步长为10G, ssd.gp1, ssd.io1, hdd.std1 类型取值均是范围[20,16000]GB,步长为10G */
DiskSizeGB int `json:"diskSizeGB"`
/* 云硬盘IOPS的大小,当且仅当云盘类型是ssd.io1型的云盘有效,步长是10. (Optional) */
Iops *int `json:"iops"`
/* 用于创建云硬盘的快照ID (Optional) */
SnapshotId *string `json:"snapshotId"`
/* 随虚机删除,默认true (Optional) */
AutoDelete *bool `json:"autoDelete"`
/* 自动format,默认true (Optional) */
AutoFormat *bool `json:"autoFormat"`
/* 支持ext4,xfs */
FsType string `json:"fsType"`
/* 挂载点,默认 /var/lib/docker (Optional) */
MountPoint *string `json:"mountPoint"`
}
type DiskInitializeSpec ¶
type DiskInitializeSpec struct {
/* 布局模式;首次创建默认 legacy;all_disks_lvm 将全部非系统数据盘加入 docker VG,并在其中创建 export LV (Optional) */
LayoutMode *string `json:"layoutMode"`
/* 仅 all_disks_lvm 使用;首次创建 export LV 后留给 CSI 的空闲容量,实际单位 GiB;默认 800,允许调小或调大;不支持调整已有布局,不是永久空闲下限 (Optional) */
CsiReservedCapGB *int64 `json:"csiReservedCapGB"`
/* 仅 legacy;local_first 或 capacity_first;默认 local_first;新模式禁止携带 (Optional) */
DiskPriority *string `json:"diskPriority"`
/* 仅 legacy;weighted 或 specifiedcap;默认 weighted;新模式禁止携带 (Optional) */
SplitStrategy *string `json:"splitStrategy"`
/* 仅 legacy weighted;/export 容量占比,默认 100;新模式禁止携带 (Optional) */
ContainerWeight *int `json:"containerWeight"`
/* 仅 legacy specifiedcap;/export 固定容量,默认 1000;不表示 CSI 容量;新模式禁止携带 (Optional) */
ContainerCapGB *int `json:"containerCapGB"`
/* 容器 rootfs quota;默认 0 表示不限制;两种布局均支持 (Optional) */
RootfsQuotaGB *int `json:"rootfsQuotaGB"`
}
type DiskSpec ¶ added in v1.13.0
type DiskSpec struct {
/* 磁盘类型,取值为cloud、local,默认为cloud (Optional) */
SystemDiskCategory *string `json:"systemDiskCategory"`
/* 云盘系统盘的大小 单位(GB) (Optional) */
SystemDiskSize *int `json:"systemDiskSize"`
/* 云盘系统盘的类型,支持 hdd.std1,ssd.gp1,ssd.io1 (Optional) */
SystemDiskType *string `json:"systemDiskType"`
/* 云盘 iops,仅限 ssd.io1 类型云盘有效 (Optional) */
SystemDiskIops *int `json:"systemDiskIops"`
}
type ExtensionSpec ¶
type GpuInstaller ¶ added in v1.59.0
type GpuInstaller struct {
/* 驱动安装器名称,驱动安装器名称格式:{GPU型号}-{驱动版本}-{CUDA版本} (Optional) */
InstallerName string `json:"installerName"`
/* 驱动安装器镜像名称 (Optional) */
ImageName string `json:"imageName"`
/* 驱动安装器镜像版本 (Optional) */
ImageVersion string `json:"imageVersion"`
/* 设备配型,例如v100/p40 (Optional) */
DeviceType string `json:"deviceType"`
/* 驱动版本 (Optional) */
DriverVersion string `json:"driverVersion"`
/* cuda版本 (Optional) */
CudaVersion string `json:"cudaVersion"`
/* Gpu驱动安装器状态,1 启动,0禁用 (Optional) */
Status int `json:"status"`
}
type HpcNodeConfig ¶
type HpcNodeConfig struct {
/* 实例类型 (Optional) */
InstanceType string `json:"instanceType"`
/* 镜像信息 (Optional) */
PackageId string `json:"packageId"`
/* kubernetes标签 (Optional) */
Labels []LabelSpec `json:"labels"`
/* hpc实例脚本,目前支持启动脚本,key为launch-script。 (Optional) */
UserScripts []UserScriptSpec `json:"userScripts"`
/* 工作节点组的计费配置 (Optional) */
ChargeConfig ChargeConfigSpec `json:"chargeConfig"`
}
type HpcNodeConfigSpec ¶
type HpcNodeConfigSpec struct {
/* 异构实例类型 */
InstanceType string `json:"instanceType"`
/* 异构节点密码,密码规范参考:[公共参数规范](https://docs.jdcloud.com/cn/virtual-machines/api/general_parameters) (Optional) */
Password *string `json:"password"`
/* SSH密钥对名称,当前仅支持一个。使用中的SSH密钥请勿删除。 (Optional) */
KeyNames []string `json:"keyNames"`
/* k8s节点标签,最多支持10个 (Optional) */
Labels []LabelSpec `json:"labels"`
/* k8s节点污点,最多支持20个 (Optional) */
Taints []TaintSpec `json:"taints"`
/* 暂定最多支持5个脚本,目前支持脚本类型为启动脚本,key为launch-script。 (Optional) */
UserScripts []UserScriptSpec `json:"userScripts"`
/* 异构节点的计费配置 (Optional) */
ChargeConfig *ChargeConfigSpec `json:"chargeConfig"`
/* 自定义异构节点镜像,为空则使用k8s release关联镜像 (Optional) */
CustomizedImageId *string `json:"customizedImageId"`
}
type HpcNodeGroup ¶
type HpcNodeGroup struct {
/* 新增节点数据盘初始化策略 (Optional) */
DiskInitialize DiskInitializeSpec `json:"diskInitialize"`
/* 集群 id (Optional) */
ClusterId string `json:"clusterId"`
/* 工作节点组 id (Optional) */
NodeGroupId string `json:"nodeGroupId"`
/* 工作节点组名称 (Optional) */
Name string `json:"name"`
/* 工作节点组描述 (Optional) */
Description string `json:"description"`
/* 工作节点组节点配置信息 (Optional) */
NodeConfig HpcNodeConfig `json:"nodeConfig"`
/* 工作节点版本 (Optional) */
Version string `json:"version"`
/* 工作节点所属的网络信息 (Optional) */
NodeNetwork NodeNetwork `json:"nodeNetwork"`
/* 当前工作节点数量 (Optional) */
CurrentCount int `json:"currentCount"`
/* 期望的工作节点数量 (Optional) */
ExpectCount int `json:"expectCount"`
/* 工作节点组所在的 az (Optional) */
Azs []string `json:"azs"`
/* 状态 [pending,running,resizing,reconciling,deleting,deleted,error,running_with_error(部分节点有问题)] (Optional) */
State string `json:"state"`
/* 更新时间 (Optional) */
UpdateTime string `json:"updateTime"`
/* 状态变更原因 (Optional) */
StateMessage string `json:"stateMessage"`
/* 控制节点操作进度 (Optional) */
Progress NodeGroupProgress `json:"progress"`
/* 创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
/* 工作节点组中实例id列表 (Optional) */
InstanceIds []string `json:"instanceIds"`
}
type HpcNodeGroupSpec ¶
type HpcNodeGroupSpec struct {
/* 名称 */
Name string `json:"name"`
/* (Optional) */
Description *string `json:"description"`
/* 异构节点组的信息 */
NodeConfig *HpcNodeConfigSpec `json:"nodeConfig"`
/* 异构节点组的 az,仅支持单az */
Azs []string `json:"azs"`
/* 异构节点组初始化大小 */
InitialNodeCount int `json:"initialNodeCount"`
/* 创建异构节点时主网卡 secondary cidr 掩码长度,支持 24、25、26、27、28;不传时使用服务端默认值 (Optional) */
SecondaryIpMaskLen *int `json:"secondaryIpMaskLen"`
/* 工作节点数据盘初始化策略;创建后保存为节点组默认策略;不传时沿用 legacy 默认值;all_disks_lvm 的 CSI 初始预留默认 800 GiB (Optional) */
DiskInitialize *DiskInitializeSpec `json:"diskInitialize"`
/* 资源组id (Optional) */
ResourceGroupId *string `json:"resourceGroupId"`
/* 资源标签 (Optional) */
Tags []Tag `json:"tags"`
/* 实例物理集群Id */
HpcClusterId string `json:"hpcClusterId"`
}
type HpcNodeOsVersion ¶
type InstanceSpec ¶
type InstanceSpec struct {
/* 主机id (Optional) */
InstanceId string `json:"instanceId"`
/* 主机名称 (Optional) */
Name string `json:"name"`
/* 主机状态 (Optional) */
State string `json:"state"`
/* 主机可用区 (Optional) */
Az string `json:"az"`
/* 创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
/* 主机内网ip (Optional) */
PrivateIpAddress string `json:"privateIpAddress"`
/* 主机公网ip (Optional) */
ElasticIpAddress string `json:"elasticIpAddress"`
/* 节点版本 (Optional) */
Version string `json:"version"`
}
type InstanceTypeImage ¶
type InstanceTypeImage struct {
/* 服务代码 (Optional) */
ServiceCode string `json:"serviceCode"`
/* 镜像ID (Optional) */
ImageId string `json:"imageId"`
/* 镜像名称 (Optional) */
ImageName string `json:"imageName"`
/* 驱动版本 (Optional) */
DriverVersion string `json:"driverVersion"`
/* CUDA版本 (Optional) */
CudaVersion string `json:"cudaVersion"`
/* 磁盘类型,local/cloud (Optional) */
DiskCategory string `json:"diskCategory"`
/* 架构,x86_64/arm64 (Optional) */
Architecture string `json:"architecture"`
/* 操作系统类型,linux/windows (Optional) */
OsType string `json:"osType"`
/* 平台,CentOS/Ubuntu/OpenEuler/VesselOS (Optional) */
Platform string `json:"platform"`
/* 操作系统版本,如20.04/7.9/8.5/8.6 (Optional) */
OsVersion string `json:"osVersion"`
/* 内核版本,如4.19.126-1.jdcloud/jd_801 (Optional) */
KernelVersion string `json:"kernelVersion"`
/* 容器运行时,docker/containerd (Optional) */
ContainerRuntime string `json:"containerRuntime"`
/* 系统盘大小,单位GB (Optional) */
SystemDiskSizeGB int `json:"systemDiskSizeGB"`
}
type LabelSpec ¶
type LabelSpec struct {
/* key包含两个部分:prefix与name,name是必须的,prefix是可选的。prefix与name分隔用"/"。
name 可以是字母,数字,[-_.]。长度小于63。prefix:遵循DNS标准(例如:kubernetes.io/),长度不超过253。
[参照](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set)
*/
Key string `json:"key"`
/* 字母,数字,[-_.],长度不超过63 (Optional) */
Value *string `json:"value"`
}
type LbConfig ¶
type LbConfig struct {
/* 负载均衡的类型,alb/dnlb, 不设置默认(alb) (Optional) */
LbType *string `json:"lbType"`
/* 负载均衡创建所需子网id (Optional) */
LbSubnetId *string `json:"lbSubnetId"`
/* 负载均衡弹性公网IP规格配置 (Optional) */
ElasticIpSpec *LbElasticIpSpec `json:"elasticIpSpec"`
}
type LbElasticIpSpec ¶
type MaintenanceWindow ¶ added in v1.12.0
type MaintenanceWindow struct {
/* daily, weekly, monthly, 默认 weekly (Optional) */
PeriodType string `json:"periodType"`
/* 维护操作开始具体日期, 仅对 periodType 取值为 weekly 或 monthly 时有效, periodType 为 weekly 时可以取 1-7, periodType 为 monthly 时可取 1-28
(Optional) */
StartDay int `json:"startDay"`
/* 维护操作开始具体时间. 时间格式符合RFC3339,并使用 UTC 时间,精确到分钟,例如 23:27 (Optional) */
StartTime string `json:"startTime"`
/* 维护运行时长: 4-24 小时,步长 1 小时, 默认为: 4小时 (Optional) */
Duration int `json:"duration"`
}
type MaintenanceWindowSpec ¶ added in v1.8.0
type MaintenanceWindowSpec struct {
/* daily, weekly, monthly, 默认 weekly (Optional) */
PeriodType string `json:"periodType"`
/* 维护操作开始具体日期, 仅对 periodType 取值为 weekly 或 monthly 时有效, periodType 为 weekly 时可以取 1-7, periodType 为 monthly 时可取 1-28
(Optional) */
StartDay int `json:"startDay"`
/* 维护操作开始具体时间. 时间格式符合RFC3339,并使用 UTC 时间,精确到分钟,例如 23:27 */
StartTime string `json:"startTime"`
/* 时区,使用 IANA 数据格式,例如:"Asia/Shanghai" 或 "America/Los_Angeles",默认 "UTC" (Optional) */
TimeZone string `json:"timeZone"`
/* 维护运行时长: 4-24 小时,步长 1 小时, 默认为: 4小时 (Optional) */
Duration int `json:"duration"`
}
type MasterAuth ¶
type MasterAuth struct {
/* base64编码,集群的根的public certificate (Optional) */
ClusterCaCertificate string `json:"clusterCaCertificate"`
/* base64编码,客户端连接集群的public certificate (Optional) */
ClientCertificate string `json:"clientCertificate"`
/* base64编码, client的私钥 (Optional) */
ClientKey string `json:"clientKey"`
/* basic auth的user (Optional) */
User string `json:"user"`
/* basic auth的password (Optional) */
Password string `json:"password"`
}
type MasterProgress ¶ added in v1.8.0
type MasterVersion ¶
type MasterVersion struct {
/* 集群版本号 (Optional) */
Version string `json:"version"`
/* 是否为默认版本 (Optional) */
IsDefault bool `json:"isDefault"`
/* 默认工作节点版本号 (Optional) */
DefaultNodeVersion string `json:"defaultNodeVersion"`
/* 版本状态 (Optional) */
VersionStatus string `json:"versionStatus"`
/* node节点操作系统类型列表,以 "," 分割,目前支持 CentOS、Windows、OpenEuler等 (Optional) */
NodeOsTypes string `json:"nodeOsTypes"`
/* 异构节点操作系统版本,如OpenEuler 24.03等 (Optional) */
HpcNodeOsVersions []HpcNodeOsVersion `json:"hpcNodeOsVersions"`
/* 该版本可安装的addons (Optional) */
ClusterAddons []ClusterAddon `json:"clusterAddons"`
}
type NatGateway ¶ added in v1.21.0
type NatGatewaySpec ¶ added in v1.21.0
type NatGatewaySpec struct {
/* nat的类型,nat_vm/nat_gw/nat_none (Optional) */
NatType *string `json:"natType"`
/* nat虚机id,或者nat网关的实例id (Optional) */
NatId *string `json:"natId"`
/* Nat实例对应的公网IP的配置,只有nat_vm时才生效 (Optional) */
ElasticIpSpec *NodeElasticIpSpec `json:"elasticIpSpec"`
}
type NodeChargeConfig ¶
type NodeChargeConfig struct {
/* 计费类型:按配置(postpaid_by_duration)/包年包月(prepaid_by_duration) (Optional) */
ChargeMode string `json:"chargeMode"`
/* 包年包月付费单位,取值为 month、year (Optional) */
ChargeUnit string `json:"chargeUnit"`
/* 包年包月付费时长 (Optional) */
ChargeDuration int `json:"chargeDuration"`
/* 是否自动续费 (Optional) */
AutoRenew bool `json:"autoRenew"`
}
type NodeCondition ¶
type NodeCondition struct {
/* 条件类型,例如 ProvisioningFailed (Optional) */
Type string `json:"type"`
/* 条件状态,通常为 True/False/Unknown (Optional) */
Status string `json:"status"`
/* 条件原因 (Optional) */
Reason string `json:"reason"`
/* 条件详情信息 (Optional) */
Message string `json:"message"`
/* 条件最近一次状态变化时间,RFC3339 格式 (Optional) */
LastTransitionTime string `json:"lastTransitionTime"`
}
type NodeConfig ¶
type NodeConfig struct {
/* 实例类型 (Optional) */
InstanceType string `json:"instanceType"`
/* 镜像信息 (Optional) */
ImageId string `json:"imageId"`
/* 云主机SSH密钥对名称 (Optional) */
KeyNames []string `json:"keyNames"`
/* 云主机磁盘类型 (Optional) */
SystemDiskCategory string `json:"systemDiskCategory"`
/* 云主机云盘系统盘大小 单位(GB) (Optional) */
SystemDiskSize int `json:"systemDiskSize"`
/* 云主机云盘系统盘类型 (Optional) */
SystemDiskType string `json:"systemDiskType"`
/* 云主机云盘 iops,仅限 ssd 类型云盘有效 (Optional) */
SystemDiskIops int `json:"systemDiskIops"`
/* 工作节点组标签 (Optional) */
Labels []LabelSpec `json:"labels"`
/* 工作节点组污点 (Optional) */
Taints []TaintSpec `json:"taints"`
/* 变更是否对存量节点生效 (Optional) */
UpdateExistNode bool `json:"updateExistNode"`
/* 云主机脚本,目前支持启动脚本,key为launch-script。 (Optional) */
UserScripts []UserScriptSpec `json:"userScripts"`
/* 数据盘配置信息 (Optional) */
DataDiskSpec []DataDiskSpec `json:"dataDiskSpec"`
/* 数据盘配置信息 (Optional) */
SystemDiskSpec DiskSpec `json:"systemDiskSpec"`
/* 工作节点组的安全组配置,为空则使用默认安全组 (Optional) */
SecurityGroup string `json:"securityGroup"`
/* 工作节点组的计费配置 (Optional) */
ChargeConfig ChargeConfigSpec `json:"chargeConfig"`
}
type NodeConfigSpec ¶
type NodeConfigSpec struct {
/* 云主机实例类型 */
InstanceType string `json:"instanceType"`
/* 云主机密码,默认为集群密码,密码规范参考:[公共参数规范](https://docs.jdcloud.com/cn/virtual-machines/api/general_parameters) (Optional) */
Password *string `json:"password"`
/* 云主机SSH密钥对名称,当前仅支持一个。使用中的SSH密钥请勿删除。 (Optional) */
KeyNames []string `json:"keyNames"`
/* 是否允许SSH密码登录。yes:允许SSH密码登录。no:禁止SSH密码登录。仅在指定密钥时此参数有效,指定此参数后密码即使输入也将被忽略,同时会在系统内禁用SSH密码登录。 (Optional) */
PassWordAuth *string `json:"passWordAuth"`
/* 云主机系统盘配置信息 (Optional) */
SystemDisk *DiskSpec `json:"systemDisk"`
/* k8s节点标签,最多支持5个 (Optional) */
Labels []LabelSpec `json:"labels"`
/* k8s节点污点,最多支持20个 (Optional) */
Taints []TaintSpec `json:"taints"`
/* 云主机脚本,暂定最多支持5个脚本,目前支持脚本类型为启动脚本,key为launch-script。 (Optional) */
UserScripts []UserScriptSpec `json:"userScripts"`
/* 自定义云主机镜像,为空则使用k8s release关联镜像 (Optional) */
CustomizedImageId *string `json:"customizedImageId"`
/* 云主机数据盘配置信息 (Optional) */
DataDiskSpec []DataDiskSpec `json:"dataDiskSpec"`
/* 云主机节点的安全组配置,为空则使用默认安全组 (Optional) */
SecurityGroup *string `json:"securityGroup"`
/* 云主机节点的计费配置 (Optional) */
ChargeConfig *ChargeConfigSpec `json:"chargeConfig"`
}
type NodeDiskSpec ¶
type NodeDiskSpec struct {
/* 磁盘类型,如 ssd.gp1, ssd.io1, hdd.std1 等 (Optional) */
DiskType string `json:"diskType"`
/* 磁盘大小,单位GB (Optional) */
DiskSize int `json:"diskSize"`
/* 磁盘分类,取值为 cloud(云盘) 或 local(本地盘) (Optional) */
DiskCategory string `json:"diskCategory"`
/* 磁盘IOPS,仅 ssd.io1 类型云盘有效 (Optional) */
Iops int `json:"iops"`
/* 是否随实例删除 (Optional) */
AutoDelete bool `json:"autoDelete"`
/* 挂载点名称,例如 vda、vdb (Optional) */
DeviceName string `json:"deviceName"`
}
type NodeElasticIpSpec ¶ added in v1.59.0
type NodeFilter ¶
type NodeGroup ¶
type NodeGroup struct {
/* 新增节点数据盘初始化策略 (Optional) */
DiskInitialize DiskInitializeSpec `json:"diskInitialize"`
/* 集群 id (Optional) */
ClusterId string `json:"clusterId"`
/* 工作节点组 id (Optional) */
NodeGroupId string `json:"nodeGroupId"`
/* 工作节点组名称 (Optional) */
Name string `json:"name"`
/* 工作节点组描述 (Optional) */
Description string `json:"description"`
/* 工作节点组配置信息 (Optional) */
NodeConfig NodeConfig `json:"nodeConfig"`
/* 工作节点版本 (Optional) */
Version string `json:"version"`
/* 工作节点组可升级版本 (Optional) */
UpgradeVersion []string `json:"upgradeVersion"`
/* 工作节点所属的网络信息 (Optional) */
NodeNetwork NodeNetwork `json:"nodeNetwork"`
/* 当前工作节点数量 (Optional) */
CurrentCount int `json:"currentCount"`
/* 期望的工作节点数量 (Optional) */
ExpectCount int `json:"expectCount"`
/* 工作节点组的ag id ,通过agid可以查询该工作节点组下的实例 (Optional) */
AgId string `json:"agId"`
/* 工作节点组所在的 az (Optional) */
Azs []string `json:"azs"`
/* 工作节点组的 ag 对应的实例模板 (Optional) */
InstanceTemplateId string `json:"instanceTemplateId"`
/* 状态 [pending,running,resizing,upgrading(升级中),deleting,deleted,error,running_with_error(部分节点有问题)] (Optional) */
State string `json:"state"`
/* (Optional) */
Tags []Tag `json:"tags"`
/* 资源组id (Optional) */
ResourceGroupId string `json:"resourceGroupId"`
/* 更新时间 (Optional) */
UpdateTime string `json:"updateTime"`
/* 状态变更原因 (Optional) */
StateMessage string `json:"stateMessage"`
/* 控制节点操作进度 (Optional) */
Progress NodeGroupProgress `json:"progress"`
/* 自动伸缩配置 (Optional) */
CaConfig CAConfig `json:"caConfig"`
/* 创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
/* (Optional) */
InstanceIds []string `json:"instanceIds"`
/* 工作节点组的类型 (Optional) */
NodeGroupType string `json:"nodeGroupType"`
/* 异构节点组关联的实例物理集群Id (Optional) */
HpcClusterId string `json:"hpcClusterId"`
}
type NodeGroupDataDiskSpec ¶
type NodeGroupNetworkSpec ¶ added in v1.21.0
type NodeGroupNetworkSpec struct {
/* node所在子网id (Optional) */
SubnetId *string `json:"subnetId"`
}
type NodeGroupProgress ¶ added in v1.8.0
type NodeGroupSpec ¶
type NodeGroupSpec struct {
/* 名称 */
Name string `json:"name"`
/* 描述 (Optional) */
Description *string `json:"description"`
/* 云主机节点组的信息 */
NodeConfig *NodeConfigSpec `json:"nodeConfig"`
/* 云主机节点组的 az (Optional) */
Azs []string `json:"azs"`
/* 云主机节点组初始化大小 */
InitialNodeCount int `json:"initialNodeCount"`
/* 自动伸缩配置 (Optional) */
CaConfig *CAConfigSpec `json:"caConfig"`
/* 资源组id (Optional) */
ResourceGroupId *string `json:"resourceGroupId"`
/* 工作节点数据盘初始化策略;创建后保存为节点组默认策略;不传时沿用 legacy 默认值;all_disks_lvm 的 CSI 初始预留默认 800 GiB (Optional) */
DiskInitialize *DiskInitializeSpec `json:"diskInitialize"`
/* 资源标签 (Optional) */
Tags []Tag `json:"tags"`
/* 容器运行时,默认为空字符。仅支持空字符或者kata-container (Optional) */
ContainerRuntime *string `json:"containerRuntime"`
}
type NodeGroupSystemDiskSpec ¶
type NodeGroupSystemDiskSpec struct {
/* 磁盘类型,如 ssd.gp1, ssd.io1, hdd.std1 等 */
DiskType string `json:"diskType"`
}
type NodeMeta ¶
type NodeMeta struct {
/* 节点名称 (Optional) */
Name string `json:"name"`
/* 云主机实例ID (Optional) */
InstanceId string `json:"instanceId"`
/* 实例规格类型 (Optional) */
InstanceType string `json:"instanceType"`
/* 节点状态,透传云主机状态;占位节点可能返回 pending 或 failed (Optional) */
Status string `json:"status"`
/* 节点条件列表,包含节点创建失败等状态信息 (Optional) */
NodeConditions []NodeCondition `json:"nodeConditions"`
/* 内网IP地址 (Optional) */
PrivateIpAddress string `json:"privateIpAddress"`
/* 子网ID (Optional) */
SubnetId string `json:"subnetId"`
/* 可用区 (Optional) */
Az string `json:"az"`
/* 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 镜像ID (Optional) */
ImageId string `json:"imageId"`
/* 系统盘配置 (Optional) */
SystemDisk NodeDiskSpec `json:"systemDisk"`
/* 数据盘配置列表 (Optional) */
DataDisk []NodeDiskSpec `json:"dataDisk"`
/* 计费配置 (Optional) */
ChargeConfig NodeChargeConfig `json:"chargeConfig"`
/* 节点标签(Key-Value形式) (Optional) */
Tags interface{} `json:"tags"`
/* 密钥对名称列表 (Optional) */
KeyNames []string `json:"keyNames"`
/* 安全组ID/名称 (Optional) */
SecurityGroup string `json:"securityGroup"`
}
type NodeNetwork ¶
type NodeNetwork struct {
/* node子网的id (Optional) */
NodeSubnetId string `json:"nodeSubnetId"`
}
type NodeVersion ¶
type Operation ¶
type Operation struct {
/* 操作 ID (Optional) */
OperationId string `json:"operationId"`
/* 操作类型,例如 cluster_create、nodegroup_create、scale_out、scale_in (Optional) */
OperationType string `json:"operationType"`
/* 操作状态,例如 pending、running、completed、failed、cancelled (Optional) */
Status string `json:"status"`
/* (Optional) */
Target OperationResource `json:"target"`
/* (Optional) */
Progress OperationMetric `json:"progress"`
/* 当前业务阶段 ID (Optional) */
CurrentStageId string `json:"currentStageId"`
/* 开始时间(RFC3339) (Optional) */
StartedTime string `json:"startedTime"`
/* 最近更新时间(RFC3339) (Optional) */
UpdatedTime string `json:"updatedTime"`
/* 结束时间(RFC3339) (Optional) */
FinishedTime string `json:"finishedTime"`
/* (Optional) */
Error OperationError `json:"error"`
/* (Optional) */
Capabilities OperationCapabilities `json:"capabilities"`
}
type OperationCapabilities ¶
type OperationDetailItem ¶
type OperationDetailItem struct {
/* (Optional) */
OperationId string `json:"operationId"`
/* (Optional) */
Operation Operation `json:"operation"`
/* (Optional) */
Stages []OperationStage `json:"stages"`
/* (Optional) */
ChildOperations []ChildOperationSummary `json:"childOperations"`
/* (Optional) */
Revision string `json:"revision"`
/* (Optional) */
NextPollIntervalSeconds int `json:"nextPollIntervalSeconds"`
/* 单项失败时的错误码,例如 INTERNAL (Optional) */
ErrorCode string `json:"errorCode"`
/* (Optional) */
ErrorMessage string `json:"errorMessage"`
}
type OperationError ¶
type OperationError struct {
/* 错误码 (Optional) */
Code string `json:"code"`
/* 用户可见错误信息 (Optional) */
Message string `json:"message"`
/* 失败原因 (Optional) */
Reason string `json:"reason"`
/* 建议处理方式 (Optional) */
Suggestion string `json:"suggestion"`
/* 下游请求 ID (Optional) */
RequestId string `json:"requestId"`
}
type OperationLatestSummary ¶
type OperationLatestSummary struct {
/* (Optional) */
ClusterId string `json:"clusterId"`
/* cluster 或 nodegroup (Optional) */
ResourceType string `json:"resourceType"`
/* 集群 ID 或节点组 ID (Optional) */
ResourceId string `json:"resourceId"`
/* 最新操作 ID;单条查询无匹配记录时为空字符串 (Optional) */
OperationId string `json:"operationId"`
/* 操作类型;单条查询无匹配记录时为空字符串 (Optional) */
OperationType string `json:"operationType"`
/* 仅投影成功时返回:pending、running、succeeded、failed (Optional) */
Status string `json:"status"`
/* (Optional) */
Progress OperationMetric `json:"progress"`
/* 当前业务阶段 ID;投影成功但无当前阶段时为空字符串。阶段明细需调用 describeOperation 或 describeOperations,latest 不返回 stages 或 steps。 (Optional) */
CurrentStageId string `json:"currentStageId"`
/* (Optional) */
Error OperationError `json:"error"`
/* 仅投影失败时返回 INTERNAL;不表示业务执行失败 (Optional) */
ErrorCode string `json:"errorCode"`
/* 投影失败的通用文案;失败时省略 status、progress、currentStageId、error (Optional) */
ErrorMessage string `json:"errorMessage"`
}
type OperationMetric ¶
type OperationMetric struct {
/* 总数 (Optional) */
Total int `json:"total"`
/* 已完成数量 (Optional) */
Completed int `json:"completed"`
/* 进行中数量 (Optional) */
Running int `json:"running"`
/* 失败数量 (Optional) */
Failed int `json:"failed"`
/* 等待中数量 (Optional) */
Pending int `json:"pending"`
/* 已跳过数量 (Optional) */
Skipped int `json:"skipped"`
/* 完成百分比,取值范围 [0, 100] (Optional) */
Percent int `json:"percent"`
}
type OperationNode ¶
type OperationResource ¶
type OperationResource struct {
/* 资源类型,例如 cluster、nodegroup、node (Optional) */
ResourceType string `json:"resourceType"`
/* 资源 ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 资源数量 (Optional) */
Quantity int `json:"quantity"`
}
type OperationResourceKey ¶
type OperationStage ¶
type OperationStage struct {
/* 业务阶段 ID (Optional) */
StageId string `json:"stageId"`
/* 业务阶段名称 (Optional) */
Title string `json:"title"`
/* 阶段状态,例如 pending、running、completed、failed、skipped (Optional) */
Status string `json:"status"`
/* (Optional) */
Progress OperationMetric `json:"progress"`
/* 阶段中的业务步骤 (Optional) */
Steps []OperationStep `json:"steps"`
}
type OperationStep ¶
type OperationStep struct {
/* 业务步骤 ID (Optional) */
StepId string `json:"stepId"`
/* 业务步骤名称 (Optional) */
Title string `json:"title"`
/* 步骤状态,例如 pending、running、completed、failed、skipped (Optional) */
Status string `json:"status"`
/* (Optional) */
Progress OperationMetric `json:"progress"`
/* 该步骤关联的资源 (Optional) */
Resources []OperationResource `json:"resources"`
/* (Optional) */
Error OperationError `json:"error"`
}
type OperationSummary ¶
type OperationSummary struct {
/* 操作ID (Optional) */
OperationId string `json:"operationId"`
/* 操作类型 [scale_out,nodegroup_create] (Optional) */
OperationType string `json:"operationType"`
/* 操作状态 [pending,running,completed,failed] (Optional) */
OperationStatus string `json:"operationStatus"`
/* 预期新增节点数 (Optional) */
ExpectedAdd int `json:"expectedAdd"`
/* 已捕获节点数 (Optional) */
CapturedCount int `json:"capturedCount"`
/* 创建时间(RFC3339) (Optional) */
CreatedTime string `json:"createdTime"`
/* 结束时间(RFC3339) (Optional) */
FinishedAt string `json:"finishedAt"`
}
type RecommendNetConfig ¶
type ScaleDownPolicySpec ¶
type ScaleDownPolicySpec struct {
/* 是否启用自动缩容,默认 true;保留显式 false;省略表示不修改 (Optional) */
Enabled bool `json:"enabled"`
/* 缩容阈值,百分数,取值范围[1, 100],默认 50;省略表示不修改 (Optional) */
UtilizationThreshold int `json:"utilizationThreshold"`
/* 节点空闲多久后触发缩容,单位分钟,取值范围[1, 1440],默认 10;省略表示不修改 (Optional) */
UnneededTimeMinutes int `json:"unneededTimeMinutes"`
}
type ScaleUpPolicySpec ¶
type ScaleUpPolicySpec struct {
/* 扩容扫描周期,单位秒,取值范围[10, 300],默认 10;省略表示不修改 (Optional) */
ScanIntervalSeconds int `json:"scanIntervalSeconds"`
}
type ServerlessCluster ¶ added in v1.59.0
type ServerlessCluster struct {
/* 集群id (Optional) */
ClusterId string `json:"clusterId"`
/* 名称 (Optional) */
Name string `json:"name"`
/* 描述 (Optional) */
Description string `json:"description"`
/* kubernetes的版本 (Optional) */
Version string `json:"version"`
/* 集群所在的az (Optional) */
Azs []string `json:"azs"`
/* k8s的cluster的cidr (Optional) */
ClusterCidr string `json:"clusterCidr"`
/* 认证信息 (Optional) */
MasterAuth MasterAuth `json:"masterAuth"`
/* 状态 [pending,running,reconciling(升级时的状态), deleting, deleted, error] (Optional) */
ClusterState string `json:"clusterState"`
/* 状态变更原因 (Optional) */
StateMessage string `json:"stateMessage"`
/* 用户的AccessKey,插件调用open-api时的认证凭证 (Optional) */
AccessKey string `json:"accessKey"`
/* 基本验证方式 (Optional) */
BasicAuth bool `json:"basicAuth"`
/* 证书验证方式 (Optional) */
ClientCertificate bool `json:"clientCertificate"`
/* 用户访问的内网ip (Optional) */
PrivateEndpoint string `json:"privateEndpoint"`
/* 用户访问的ip (Optional) */
Endpoint string `json:"endpoint"`
/* IPv6地址 (Optional) */
EndpointIPV6 string `json:"endpointIPV6"`
/* endpoint的port (Optional) */
EndpointPort string `json:"endpointPort"`
/* endpoint的dashboard port (Optional) */
DashboardPort string `json:"dashboardPort"`
/* deprecated 优先以addonsConfig中的配置为准 <br>用户是否启用集群自定义监控,true 表示开启用,false 表示未开启用 (Optional) */
UserMetrics bool `json:"userMetrics"`
/* 集群组件配置信息 (Optional) */
AddonsConfig []AddonConfig `json:"addonsConfig"`
/* 控制节点操作进度 (Optional) */
MasterProgress MaintenanceWindow `json:"masterProgress"`
/* 网络配置信息 (Optional) */
ClusterNetwork ServerlessClusterNetworkConfig `json:"clusterNetwork"`
/* 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 集群网络类型,可取值为auto和customized (Optional) */
NetworkMode string `json:"networkMode"`
/* 用户自定义的集群的环境信息,会影响到创建集群时的组件模版的渲染 (Optional) */
ClusterEnvironments []StringKeyValuePair `json:"clusterEnvironments"`
/* 是否是边缘计算集群 (Optional) */
IsEdge bool `json:"isEdge"`
}
type ServerlessClusterNetworkConfig ¶ added in v1.59.0
type ServerlessClusterNetworkConfig struct {
/* kube-apiserver是否可公网访问,false则kube-apiserver不绑定公网地址,true绑定公网地址 (Optional) */
PublicApiServer bool `json:"publicApiServer"`
/* master网络的cidr (Optional) */
MasterCidr string `json:"masterCidr"`
/* service网络的cidr (Optional) */
ServiceCidr string `json:"serviceCidr"`
/* 用户侧承载node和pod的vpc id (Optional) */
VpcId string `json:"vpcId"`
/* 集群Pod子网信息 (Optional) */
PodSubnets []ClusterNetworkPodSubnet `json:"podSubnets"`
/* 集群lb子网信息 (Optional) */
LbSubnets []ClusterNetworkSubnet `json:"lbSubnets"`
/* nat网关配置 (Optional) */
NatGateways []NatGateway `json:"natGateways"`
}
type ServerlessClusterNetworkSpec ¶ added in v1.59.0
type ServerlessClusterNetworkSpec struct {
/* kube-apiserver是否可公网访问,false则kube-apiserver不绑定公网地址,true绑定公网地址 (Optional) */
PublicApiServer *bool `json:"publicApiServer"`
/* master子网CIDR (Optional) */
MasterCidr *string `json:"masterCidr"`
/* Pod所在VPC (Optional) */
VpcId *string `json:"vpcId"`
/* (Optional) */
NatGateway *NatGatewaySpec `json:"natGateway"`
/* service所在子网CIDR (Optional) */
ServiceCidr *string `json:"serviceCidr"`
/* pod所在子网ID (Optional) */
PodSubnetId *string `json:"podSubnetId"`
/* lb所在子网ID (Optional) */
LbSubnetId *string `json:"lbSubnetId"`
/* 是否双栈支持,开启后,kube-apiserver将拥有ipv6地址,默认不开启 (Optional) */
DualStack *bool `json:"dualStack"`
/* 是否开启master访问公网的能力,如果需要引入公网OIDC认证时需要开启,默认不开启 (Optional) */
MasterNatEnabled *bool `json:"masterNatEnabled"`
}
type ServerlessMasterVersion ¶ added in v1.59.0
type ServerlessMasterVersion struct {
/* 版本号 (Optional) */
Version string `json:"version"`
/* 是否默认版本 (Optional) */
IsDefault bool `json:"isDefault"`
/* 版本状态 (Optional) */
VersionStatus string `json:"versionStatus"`
/* 该版本可以安装的组件列表 (Optional) */
ClusterAddons []ClusterAddon `json:"clusterAddons"`
}
type StringKeyValuePair ¶ added in v1.59.0
type Summary ¶
type Summary struct {
/* 检查结果 (Optional) */
Code string `json:"code"`
/* (Optional) */
NormalCount int `json:"normalCount"`
/* (Optional) */
InfoCount int `json:"infoCount"`
/* (Optional) */
WarningCount int `json:"warningCount"`
/* (Optional) */
FatalCount int `json:"fatalCount"`
/* (Optional) */
UnknownCount int `json:"unknownCount"`
}
type TaintSpec ¶
type TaintSpec struct {
/* key包含两个部分:prefix与name,name是必须的,prefix是可选的。prefix与name分隔用"/"。
name 可以是字母,数字,[-_.]。长度小于63。prefix:遵循DNS标准(例如:kubernetes.io/),长度不超过253。
系统污点不支持配置,系统污点包含:node.kubernetes.io/not-ready,node.kubernetes.io/unreachable,node.kubernetes.io/memory-pressure,node.kubernetes.io/disk-pressure,node.kubernetes.io/pid-pressure,node.kubernetes.io/network-unavailable,node.kubernetes.io/unschedulable,node.cloudprovider.kubernetes.io/uninitialized
*/
Key string `json:"key"`
/* 字母,数字,[-_.],长度不超过63 (Optional) */
Value *string `json:"value"`
/* 允许的字段:NoExecute,NoSchedule,PreferNoSchedule */
Effect string `json:"effect"`
}
type UpgradeConfigSpec ¶
type UpgradeConfigSpec struct {
/* 升级定制参数 (Optional) */
Options interface{} `json:"options"`
}
type UpgradeHistory ¶
type UpgradeHistory struct {
/* 集群id (Optional) */
ClusterId string `json:"clusterId"`
/* 工作节点组 id (Optional) */
NodeGroupId string `json:"nodeGroupId"`
/* 升级版本 (Optional) */
UpgradeVersion string `json:"upgradeVersion"`
/* 总节点个数 (Optional) */
TotalCount int `json:"totalCount"`
/* 升级完成节点个数 (Optional) */
UpdatedCount int `json:"updatedCount"`
/* 升级结果,succeed:成功,failed:失败 (Optional) */
UpgradeResult string `json:"upgradeResult"`
/* 开始时间 (Optional) */
StartTime string `json:"startTime"`
/* 结束时间 (Optional) */
FinishTime string `json:"finishTime"`
}
type UpgradePlan ¶ added in v1.12.0
type UpgradePlan struct {
/* 升级方式 auto, manual (Optional) */
Mode string `json:"mode"`
/* 升级范围 cluster, master, nodegroup (Optional) */
Scope string `json:"scope"`
/* 升级计划状态 waiting, upgrading (Optional) */
State string `json:"state"`
/* master 期望版本 (Optional) */
MasterExpectedVersion string `json:"masterExpectedVersion"`
/* node 期望版本 (Optional) */
NodeExpectedVersion string `json:"nodeExpectedVersion"`
/* 升级启动时间 (Optional) */
StartTime string `json:"startTime"`
/* 持续时长 (Optional) */
Duration int `json:"duration"`
/* 集群升级定制选项 (Optional) */
Options interface{} `json:"options"`
}
type UserScriptSpec ¶ added in v1.59.0
type UserScriptSpec struct {
/* 脚本名称,最大长度暂定为100 byte,目前支持值为 launch-script,表示云主机启动脚本。 (Optional) */
Key *string `json:"key"`
/* 脚本详情,启动脚本(key为launch-script时对应的value)内容经过base64编码,编码前数据不能大于2KB(2048 byte),编码后数据不大于2768 byte,只支持bash脚本,编码前内容必须以 "#!/bin/bash" 作为首行。 (Optional) */
Value *string `json:"value"`
}
Source Files
¶
- AddonConfig.go
- AddonConfigSpec.go
- ApiServerWhiteList.go
- AutoClusterNetworkSpec.go
- CAClusterConfig.go
- CAClusterConfigSpec.go
- CAConfig.go
- CAConfigSpec.go
- ChargeConfigSpec.go
- Check.go
- CheckConfigSpec.go
- CheckItem.go
- ChildOperationSummary.go
- CidrConfig.go
- Cluster.go
- ClusterAddon.go
- ClusterAddonInfo.go
- ClusterAddonRespStatus.go
- ClusterAddonSpec.go
- ClusterAddonVersion.go
- ClusterAddonVersionInfo.go
- ClusterDnsPlugin.go
- ClusterDnsServerSpec.go
- ClusterDnsSpec.go
- ClusterDnsZoneSpec.go
- ClusterNetwork.go
- ClusterNetworkPodSubnet.go
- ClusterNetworkSpec.go
- ClusterNetworkSubnet.go
- ClusterOperationMeta.go
- ClusterPodSubnet.go
- ClusterSubnet.go
- CustomizedClusterNetworkSpec.go
- DataDiskSpec.go
- DiskInitializeSpec.go
- DiskSpec.go
- ExtensionSpec.go
- GpuInstaller.go
- HpcNodeConfig.go
- HpcNodeConfigSpec.go
- HpcNodeGroup.go
- HpcNodeGroupSpec.go
- HpcNodeOsVersion.go
- InstanceSpec.go
- InstanceTypeImage.go
- Label.go
- LabelSpec.go
- LbConfig.go
- LbElasticIpSpec.go
- MaintenanceWindow.go
- MaintenanceWindowSpec.go
- MasterAuth.go
- MasterProgress.go
- MasterVersion.go
- NatGateway.go
- NatGatewaySpec.go
- NodeChargeConfig.go
- NodeCondition.go
- NodeConfig.go
- NodeConfigSpec.go
- NodeDiskSpec.go
- NodeElasticIpSpec.go
- NodeFilter.go
- NodeGroup.go
- NodeGroupDataDiskSpec.go
- NodeGroupNetworkSpec.go
- NodeGroupProgress.go
- NodeGroupSpec.go
- NodeGroupSystemDiskSpec.go
- NodeMeta.go
- NodeNetwork.go
- NodeVersion.go
- Operation.go
- OperationCapabilities.go
- OperationDetailItem.go
- OperationError.go
- OperationLatestSummary.go
- OperationMetric.go
- OperationNode.go
- OperationResource.go
- OperationResourceKey.go
- OperationStage.go
- OperationStep.go
- OperationSummary.go
- Param.go
- ParamSpec.go
- Quota.go
- RecommendNetConfig.go
- ScaleDownPolicySpec.go
- ScaleUpPolicySpec.go
- ServerlessCluster.go
- ServerlessClusterNetworkConfig.go
- ServerlessClusterNetworkSpec.go
- ServerlessMasterVersion.go
- StringKeyValuePair.go
- Summary.go
- Tag.go
- TagFilter.go
- TaintSpec.go
- UpgradeConfigSpec.go
- UpgradeHistory.go
- UpgradePlan.go
- UserScriptSpec.go
Click to show internal directories.
Click to hide internal directories.