Documentation ¶
Index ¶
- Constants
- type Annotation
- type AutoUpgradeOptions
- type AutoscalingAdded
- type Client
- func (c *Client) CreateNodePool(request *CreateNodePoolRequest) (response *CreateNodePoolResponse, err error)
- func (c *Client) CreateNodePoolWithContext(ctx context.Context, request *CreateNodePoolRequest) (response *CreateNodePoolResponse, err error)
- func (c *Client) DeleteNodePool(request *DeleteNodePoolRequest) (response *DeleteNodePoolResponse, err error)
- func (c *Client) DeleteNodePoolWithContext(ctx context.Context, request *DeleteNodePoolRequest) (response *DeleteNodePoolResponse, err error)
- func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
- func (c *Client) DescribeClusterInstancesWithContext(ctx context.Context, request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
- func (c *Client) DescribeNodePools(request *DescribeNodePoolsRequest) (response *DescribeNodePoolsResponse, err error)
- func (c *Client) DescribeNodePoolsWithContext(ctx context.Context, request *DescribeNodePoolsRequest) (response *DescribeNodePoolsResponse, err error)
- func (c *Client) ModifyNodePool(request *ModifyNodePoolRequest) (response *ModifyNodePoolResponse, err error)
- func (c *Client) ModifyNodePoolWithContext(ctx context.Context, request *ModifyNodePoolRequest) (response *ModifyNodePoolResponse, err error)
- type CreateNativeNodePoolParam
- type CreateNodePoolRequest
- type CreateNodePoolRequestParams
- type CreateNodePoolResponse
- type CreateNodePoolResponseParams
- type DataDisk
- type DeleteNodePoolRequest
- type DeleteNodePoolRequestParams
- type DeleteNodePoolResponse
- type DeleteNodePoolResponseParams
- type DescribeClusterInstancesRequest
- type DescribeClusterInstancesRequestParams
- type DescribeClusterInstancesResponse
- type DescribeClusterInstancesResponseParams
- type DescribeNodePoolsRequest
- type DescribeNodePoolsRequestParams
- type DescribeNodePoolsResponse
- type DescribeNodePoolsResponseParams
- type Disk
- type ExternalNodeInfo
- type ExternalNodePoolInfo
- type Filter
- type Instance
- type InstanceAdvancedSettings
- type InstanceChargePrepaid
- type InstanceExtraArgs
- type IntOrString
- type InternetAccessible
- type Label
- type LifecycleConfig
- type MachineSetScaling
- type MachineUpgradeSettings
- type ManagementConfig
- type ManuallyAdded
- type ModifyNodePoolRequest
- type ModifyNodePoolRequestParams
- type ModifyNodePoolResponse
- type ModifyNodePoolResponseParams
- type NativeNodeInfo
- type NativeNodePoolInfo
- type NodeCountSummary
- type NodePool
- type RegularNodeInfo
- type RegularNodePoolInfo
- type RuntimeConfig
- type SortBy
- type SuperNodeInfo
- type SuperNodePoolInfo
- type Tag
- type TagSpecification
- type Taint
- type UpdateNativeNodePoolParam
Constants ¶
const ( // 操作失败。 FAILEDOPERATION = "FailedOperation" // 内部错误。 INTERNALERROR = "InternalError" // db错误。 INTERNALERROR_DB = "InternalError.Db" // DB错误。 INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" // 记录未找到。 INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" // 初始化master失败。 INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" // Param。 INTERNALERROR_PARAM = "InternalError.Param" // 公共集群不支持扩展节点。 INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" // 内部错误。 INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" // 未知的内部错误。 INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 集群ID不存在。 INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" // 参数错误。 INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // 操作被拒绝。 OPERATIONDENIED = "OperationDenied" // 资源被占用。 RESOURCEINUSE = "ResourceInUse" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 集群不存在。 RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" // 集群状态不支持该操作。 RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" )
const APIVersion = "2022-05-01"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type AutoUpgradeOptions ¶ added in v1.0.918
type AutoUpgradeOptions struct { // 自动升级开始时间 // 注意:此字段可能返回 null,表示取不到有效值。 AutoUpgradeStartTime *string `json:"AutoUpgradeStartTime,omitnil,omitempty" name:"AutoUpgradeStartTime"` // 自动升级持续时间 // 注意:此字段可能返回 null,表示取不到有效值。 Duration *string `json:"Duration,omitnil,omitempty" name:"Duration"` // 运维日期 // 注意:此字段可能返回 null,表示取不到有效值。 WeeklyPeriod []*string `json:"WeeklyPeriod,omitnil,omitempty" name:"WeeklyPeriod"` }
type AutoscalingAdded ¶
type AutoscalingAdded struct { // 正在加入中的节点数量 Joining *int64 `json:"Joining,omitnil,omitempty" name:"Joining"` // 初始化中的节点数量 Initializing *int64 `json:"Initializing,omitnil,omitempty" name:"Initializing"` // 正常的节点数量 Normal *int64 `json:"Normal,omitnil,omitempty" name:"Normal"` // 节点总数 Total *int64 `json:"Total,omitnil,omitempty" name:"Total"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateNodePool ¶ added in v1.0.918
func (c *Client) CreateNodePool(request *CreateNodePoolRequest) (response *CreateNodePoolResponse, err error)
CreateNodePool 创建 TKE 节点池
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) CreateNodePoolWithContext ¶ added in v1.0.918
func (c *Client) CreateNodePoolWithContext(ctx context.Context, request *CreateNodePoolRequest) (response *CreateNodePoolResponse, err error)
CreateNodePool 创建 TKE 节点池
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) DeleteNodePool ¶ added in v1.0.918
func (c *Client) DeleteNodePool(request *DeleteNodePoolRequest) (response *DeleteNodePoolResponse, err error)
DeleteNodePool 删除 TKE 节点池
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) DeleteNodePoolWithContext ¶ added in v1.0.918
func (c *Client) DeleteNodePoolWithContext(ctx context.Context, request *DeleteNodePoolRequest) (response *DeleteNodePoolResponse, err error)
DeleteNodePool 删除 TKE 节点池
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) DescribeClusterInstances ¶
func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
DescribeClusterInstances 查询集群下节点实例信息
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) DescribeClusterInstancesWithContext ¶
func (c *Client) DescribeClusterInstancesWithContext(ctx context.Context, request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
DescribeClusterInstances 查询集群下节点实例信息
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) DescribeNodePools ¶
func (c *Client) DescribeNodePools(request *DescribeNodePoolsRequest) (response *DescribeNodePoolsResponse, err error)
DescribeNodePools 查询 TKE 节点池列表
可能返回的错误码:
INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) DescribeNodePoolsWithContext ¶
func (c *Client) DescribeNodePoolsWithContext(ctx context.Context, request *DescribeNodePoolsRequest) (response *DescribeNodePoolsResponse, err error)
DescribeNodePools 查询 TKE 节点池列表
可能返回的错误码:
INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) ModifyNodePool ¶ added in v1.0.918
func (c *Client) ModifyNodePool(request *ModifyNodePoolRequest) (response *ModifyNodePoolResponse, err error)
ModifyNodePool 更新 TKE 节点池
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) ModifyNodePoolWithContext ¶ added in v1.0.918
func (c *Client) ModifyNodePoolWithContext(ctx context.Context, request *ModifyNodePoolRequest) (response *ModifyNodePoolResponse, err error)
ModifyNodePool 更新 TKE 节点池
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND = "ResourceNotFound"
type CreateNativeNodePoolParam ¶ added in v1.0.918
type CreateNativeNodePoolParam struct { // 节点池伸缩配置 Scaling *MachineSetScaling `json:"Scaling,omitnil,omitempty" name:"Scaling"` // 子网列表 SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"` // 节点计费类型。PREPAID:包年包月;POSTPAID_BY_HOUR:按量计费(默认); InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 系统盘配置 SystemDisk *Disk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 机型列表 InstanceTypes []*string `json:"InstanceTypes,omitnil,omitempty" name:"InstanceTypes"` // 安全组列表 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 自动升级配置 UpgradeSettings *MachineUpgradeSettings `json:"UpgradeSettings,omitnil,omitempty" name:"UpgradeSettings"` // 是否开启自愈能力 AutoRepair *bool `json:"AutoRepair,omitnil,omitempty" name:"AutoRepair"` // 包年包月机型计费配置 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点池 Management 参数设置 Management *ManagementConfig `json:"Management,omitnil,omitempty" name:"Management"` // 故障自愈规则名称 HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"` // 原生节点池hostName模式串 HostNamePattern *string `json:"HostNamePattern,omitnil,omitempty" name:"HostNamePattern"` // kubelet 自定义参数 KubeletArgs []*string `json:"KubeletArgs,omitnil,omitempty" name:"KubeletArgs"` // 预定义脚本 Lifecycle *LifecycleConfig `json:"Lifecycle,omitnil,omitempty" name:"Lifecycle"` // 运行时根目录 RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"` // 是否开启弹性伸缩 EnableAutoscaling *bool `json:"EnableAutoscaling,omitnil,omitempty" name:"EnableAutoscaling"` // 期望节点数 Replicas *int64 `json:"Replicas,omitnil,omitempty" name:"Replicas"` // 公网带宽设置 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 原生节点池数据盘列表 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 节点池ssh公钥id数组 KeyIds []*string `json:"KeyIds,omitnil,omitempty" name:"KeyIds"` }
type CreateNodePoolRequest ¶ added in v1.0.918
type CreateNodePoolRequest struct { *tchttp.BaseRequest // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 节点池类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 节点 Labels Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"` // 节点污点 Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"` // 节点标签 Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"` // 是否开启删除保护 DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"` // 节点是否默认不可调度 Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"` // 原生节点池创建参数 Native *CreateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"` // 节点 Annotation 列表 Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"` }
func NewCreateNodePoolRequest ¶ added in v1.0.918
func NewCreateNodePoolRequest() (request *CreateNodePoolRequest)
func (*CreateNodePoolRequest) FromJsonString ¶ added in v1.0.918
func (r *CreateNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateNodePoolRequest) ToJsonString ¶ added in v1.0.918
func (r *CreateNodePoolRequest) ToJsonString() string
type CreateNodePoolRequestParams ¶ added in v1.0.918
type CreateNodePoolRequestParams struct { // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 节点池类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 节点 Labels Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"` // 节点污点 Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"` // 节点标签 Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"` // 是否开启删除保护 DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"` // 节点是否默认不可调度 Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"` // 原生节点池创建参数 Native *CreateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"` // 节点 Annotation 列表 Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"` }
Predefined struct for user
type CreateNodePoolResponse ¶ added in v1.0.918
type CreateNodePoolResponse struct { *tchttp.BaseResponse Response *CreateNodePoolResponseParams `json:"Response"` }
func NewCreateNodePoolResponse ¶ added in v1.0.918
func NewCreateNodePoolResponse() (response *CreateNodePoolResponse)
func (*CreateNodePoolResponse) FromJsonString ¶ added in v1.0.918
func (r *CreateNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateNodePoolResponse) ToJsonString ¶ added in v1.0.918
func (r *CreateNodePoolResponse) ToJsonString() string
type CreateNodePoolResponseParams ¶ added in v1.0.918
type CreateNodePoolResponseParams struct { // 节点池 ID NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DataDisk ¶ added in v1.0.918
type DataDisk struct { // 云盘类型 // 注意:此字段可能返回 null,表示取不到有效值。 DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"` // 文件系统(ext3/ext4/xfs) // 注意:此字段可能返回 null,表示取不到有效值。 FileSystem *string `json:"FileSystem,omitnil,omitempty" name:"FileSystem"` // 云盘大小(G) // 注意:此字段可能返回 null,表示取不到有效值。 DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"` // 是否自动化格式盘并挂载 // 注意:此字段可能返回 null,表示取不到有效值。 AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitnil,omitempty" name:"AutoFormatAndMount"` // 挂载设备名或分区名 // 注意:此字段可能返回 null,表示取不到有效值。 DiskPartition *string `json:"DiskPartition,omitnil,omitempty" name:"DiskPartition"` // 挂载目录 // 注意:此字段可能返回 null,表示取不到有效值。 MountTarget *string `json:"MountTarget,omitnil,omitempty" name:"MountTarget"` // 传入该参数用于创建加密云盘,取值固定为ENCRYPT // 注意:此字段可能返回 null,表示取不到有效值。 Encrypt *string `json:"Encrypt,omitnil,omitempty" name:"Encrypt"` // 购买加密盘时自定义密钥,当传入该参数时, Encrypt入参不为空 // 注意:此字段可能返回 null,表示取不到有效值。 KmsKeyId *string `json:"KmsKeyId,omitnil,omitempty" name:"KmsKeyId"` // 快照ID,如果传入则根据此快照创建云硬盘,快照类型必须为数据盘快照 // 注意:此字段可能返回 null,表示取不到有效值。 SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"` // 云硬盘性能,单位:MB/s。使用此参数可给云硬盘购买额外的性能 // 注意:此字段可能返回 null,表示取不到有效值。 ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil,omitempty" name:"ThroughputPerformance"` }
type DeleteNodePoolRequest ¶ added in v1.0.918
type DeleteNodePoolRequest struct { *tchttp.BaseRequest // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池 ID NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` }
func NewDeleteNodePoolRequest ¶ added in v1.0.918
func NewDeleteNodePoolRequest() (request *DeleteNodePoolRequest)
func (*DeleteNodePoolRequest) FromJsonString ¶ added in v1.0.918
func (r *DeleteNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNodePoolRequest) ToJsonString ¶ added in v1.0.918
func (r *DeleteNodePoolRequest) ToJsonString() string
type DeleteNodePoolRequestParams ¶ added in v1.0.918
type DeleteNodePoolRequestParams struct { // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池 ID NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` }
Predefined struct for user
type DeleteNodePoolResponse ¶ added in v1.0.918
type DeleteNodePoolResponse struct { *tchttp.BaseResponse Response *DeleteNodePoolResponseParams `json:"Response"` }
func NewDeleteNodePoolResponse ¶ added in v1.0.918
func NewDeleteNodePoolResponse() (response *DeleteNodePoolResponse)
func (*DeleteNodePoolResponse) FromJsonString ¶ added in v1.0.918
func (r *DeleteNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNodePoolResponse) ToJsonString ¶ added in v1.0.918
func (r *DeleteNodePoolResponse) ToJsonString() string
type DeleteNodePoolResponseParams ¶ added in v1.0.918
type DeleteNodePoolResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeClusterInstancesRequest ¶
type DescribeClusterInstancesRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 过滤条件列表: // InstanceIds(实例ID),InstanceType(实例类型:Regular,Native,Virtual,External),VagueIpAddress(模糊匹配IP),Labels(k8s节点label),NodePoolNames(节点池名称),VagueInstanceName(模糊匹配节点名),InstanceStates(节点状态),Unschedulable(是否封锁),NodePoolIds(节点池ID) Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` // 排序信息 SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` }
func NewDescribeClusterInstancesRequest ¶
func NewDescribeClusterInstancesRequest() (request *DescribeClusterInstancesRequest)
func (*DescribeClusterInstancesRequest) FromJsonString ¶
func (r *DescribeClusterInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterInstancesRequest) ToJsonString ¶
func (r *DescribeClusterInstancesRequest) ToJsonString() string
type DescribeClusterInstancesRequestParams ¶
type DescribeClusterInstancesRequestParams struct { // 集群ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 过滤条件列表: // InstanceIds(实例ID),InstanceType(实例类型:Regular,Native,Virtual,External),VagueIpAddress(模糊匹配IP),Labels(k8s节点label),NodePoolNames(节点池名称),VagueInstanceName(模糊匹配节点名),InstanceStates(节点状态),Unschedulable(是否封锁),NodePoolIds(节点池ID) Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` // 排序信息 SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` }
Predefined struct for user
type DescribeClusterInstancesResponse ¶
type DescribeClusterInstancesResponse struct { *tchttp.BaseResponse Response *DescribeClusterInstancesResponseParams `json:"Response"` }
func NewDescribeClusterInstancesResponse ¶
func NewDescribeClusterInstancesResponse() (response *DescribeClusterInstancesResponse)
func (*DescribeClusterInstancesResponse) FromJsonString ¶
func (r *DescribeClusterInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterInstancesResponse) ToJsonString ¶
func (r *DescribeClusterInstancesResponse) ToJsonString() string
type DescribeClusterInstancesResponseParams ¶
type DescribeClusterInstancesResponseParams struct { // 集群中实例总数 TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 集群中实例列表 InstanceSet []*Instance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"` // 错误信息集合 // 注意:此字段可能返回 null,表示取不到有效值。 Errors []*string `json:"Errors,omitnil,omitempty" name:"Errors"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeNodePoolsRequest ¶
type DescribeNodePoolsRequest struct { *tchttp.BaseRequest // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 查询过滤条件: // · NodePoolsName // 按照【节点池名】进行过滤。 // 类型:String // 必选:否 // // · NodePoolsId // 按照【节点池id】进行过滤。 // 类型:String // 必选:否 // // · tags // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 // // · tag:tag-key // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` // 偏移量,默认0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 最大输出条数,默认20,最大为100 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
func NewDescribeNodePoolsRequest ¶
func NewDescribeNodePoolsRequest() (request *DescribeNodePoolsRequest)
func (*DescribeNodePoolsRequest) FromJsonString ¶
func (r *DescribeNodePoolsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNodePoolsRequest) ToJsonString ¶
func (r *DescribeNodePoolsRequest) ToJsonString() string
type DescribeNodePoolsRequestParams ¶
type DescribeNodePoolsRequestParams struct { // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 查询过滤条件: // · NodePoolsName // 按照【节点池名】进行过滤。 // 类型:String // 必选:否 // // · NodePoolsId // 按照【节点池id】进行过滤。 // 类型:String // 必选:否 // // · tags // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 // // · tag:tag-key // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` // 偏移量,默认0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 最大输出条数,默认20,最大为100 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeNodePoolsResponse ¶
type DescribeNodePoolsResponse struct { *tchttp.BaseResponse Response *DescribeNodePoolsResponseParams `json:"Response"` }
func NewDescribeNodePoolsResponse ¶
func NewDescribeNodePoolsResponse() (response *DescribeNodePoolsResponse)
func (*DescribeNodePoolsResponse) FromJsonString ¶
func (r *DescribeNodePoolsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNodePoolsResponse) ToJsonString ¶
func (r *DescribeNodePoolsResponse) ToJsonString() string
type DescribeNodePoolsResponseParams ¶
type DescribeNodePoolsResponseParams struct { // 节点池列表 // 注意:此字段可能返回 null,表示取不到有效值。 NodePools []*NodePool `json:"NodePools,omitnil,omitempty" name:"NodePools"` // 资源总数 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type Disk ¶ added in v1.0.918
type Disk struct { // 云盘类型 DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"` // 云盘大小(G) DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"` // 是否自动化格式盘并挂载 AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitnil,omitempty" name:"AutoFormatAndMount"` // 文件系统 FileSystem *string `json:"FileSystem,omitnil,omitempty" name:"FileSystem"` // 挂载目录 MountTarget *string `json:"MountTarget,omitnil,omitempty" name:"MountTarget"` }
type ExternalNodeInfo ¶
type ExternalNodeInfo struct { // 第三方节点名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // CPU核数,单位:核 // 注意:此字段可能返回 null,表示取不到有效值。 CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"` // 节点内存容量,单位:`GB` // 注意:此字段可能返回 null,表示取不到有效值。 Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"` // 第三方节点kubelet版本信息 // 注意:此字段可能返回 null,表示取不到有效值。 K8SVersion *string `json:"K8SVersion,omitnil,omitempty" name:"K8SVersion"` }
type ExternalNodePoolInfo ¶
type ExternalNodePoolInfo struct { // 第三方节点Runtime配置 RuntimeConfig *RuntimeConfig `json:"RuntimeConfig,omitnil,omitempty" name:"RuntimeConfig"` // 节点数 // 注意:此字段可能返回 null,表示取不到有效值。 NodesNum *uint64 `json:"NodesNum,omitnil,omitempty" name:"NodesNum"` }
type Instance ¶
type Instance struct { // 实例ID InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"` // 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER InstanceRole *string `json:"InstanceRole,omitnil,omitempty" name:"InstanceRole"` // 实例异常(或者处于初始化中)的原因 // 注意:此字段可能返回 null,表示取不到有效值。 FailedReason *string `json:"FailedReason,omitnil,omitempty" name:"FailedReason"` // 实例的状态 // - initializing创建中 // - running 运行中 // - failed 异常 InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` // 是否不可调度 // 注意:此字段可能返回 null,表示取不到有效值。 Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"` // 添加时间 CreatedTime *string `json:"CreatedTime,omitnil,omitempty" name:"CreatedTime"` // 节点内网IP // 注意:此字段可能返回 null,表示取不到有效值。 LanIP *string `json:"LanIP,omitnil,omitempty" name:"LanIP"` // 资源池ID // 注意:此字段可能返回 null,表示取不到有效值。 NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` // 原生节点参数 // 注意:此字段可能返回 null,表示取不到有效值。 Native *NativeNodeInfo `json:"Native,omitnil,omitempty" name:"Native"` // 普通节点参数 // 注意:此字段可能返回 null,表示取不到有效值。 Regular *RegularNodeInfo `json:"Regular,omitnil,omitempty" name:"Regular"` // 超级节点参数 // 注意:此字段可能返回 null,表示取不到有效值。 Super *SuperNodeInfo `json:"Super,omitnil,omitempty" name:"Super"` // 第三方节点参数 // 注意:此字段可能返回 null,表示取不到有效值。 External *ExternalNodeInfo `json:"External,omitnil,omitempty" name:"External"` // 节点类型 // 注意:此字段可能返回 null,表示取不到有效值。 NodeType *string `json:"NodeType,omitnil,omitempty" name:"NodeType"` }
type InstanceAdvancedSettings ¶
type InstanceAdvancedSettings struct { // 该节点属于podCIDR大小自定义模式时,可指定节点上运行的pod数量上限 // 注意:此字段可能返回 null,表示取不到有效值。 DesiredPodNumber *int64 `json:"DesiredPodNumber,omitnil,omitempty" name:"DesiredPodNumber"` // base64 编码的用户脚本,在初始化节点之前执行,目前只对添加已有节点生效 // 注意:此字段可能返回 null,表示取不到有效值。 PreStartUserScript *string `json:"PreStartUserScript,omitnil,omitempty" name:"PreStartUserScript"` // 运行时描述 // 注意:此字段可能返回 null,表示取不到有效值。 RuntimeConfig *RuntimeConfig `json:"RuntimeConfig,omitnil,omitempty" name:"RuntimeConfig"` // base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度 // 注意:此字段可能返回 null,表示取不到有效值。 UserScript *string `json:"UserScript,omitnil,omitempty" name:"UserScript"` // 节点相关的自定义参数信息 // 注意:此字段可能返回 null,表示取不到有效值。 ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitnil,omitempty" name:"ExtraArgs"` }
type InstanceChargePrepaid ¶ added in v1.0.918
type InstanceChargePrepaid struct { // 后付费计费周期,单位(月): // 1,2,3,4,5,,6,7, 8,9,10,11,12,24,36,48,60 Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"` // 预付费续费方式: // - NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费 (默认) // - NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费 // - DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费 RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"` }
type InstanceExtraArgs ¶
type InstanceExtraArgs struct { // kubelet自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"] // 注意:此字段可能返回 null,表示取不到有效值。 Kubelet []*string `json:"Kubelet,omitnil,omitempty" name:"Kubelet"` }
type IntOrString ¶ added in v1.0.918
type IntOrString struct { // 数值类型,0是int, 1是字符串 // 注意:此字段可能返回 null,表示取不到有效值。 Type *int64 `json:"Type,omitnil,omitempty" name:"Type"` // 整数 // 注意:此字段可能返回 null,表示取不到有效值。 IntVal *int64 `json:"IntVal,omitnil,omitempty" name:"IntVal"` // 字符串 // 注意:此字段可能返回 null,表示取不到有效值。 StrVal *string `json:"StrVal,omitnil,omitempty" name:"StrVal"` }
type InternetAccessible ¶
type InternetAccessible struct { // 带宽 MaxBandwidthOut *int64 `json:"MaxBandwidthOut,omitnil,omitempty" name:"MaxBandwidthOut"` // 网络计费方式 ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"` // 带宽包 ID BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"` }
type LifecycleConfig ¶ added in v1.0.918
type MachineSetScaling ¶ added in v1.0.918
type MachineSetScaling struct { // 节点池最小副本数 // 注意:此字段可能返回 null,表示取不到有效值。 MinReplicas *int64 `json:"MinReplicas,omitnil,omitempty" name:"MinReplicas"` // 节点池最大副本数 // 注意:此字段可能返回 null,表示取不到有效值。 MaxReplicas *int64 `json:"MaxReplicas,omitnil,omitempty" name:"MaxReplicas"` // 节点池扩容策略。ZoneEquality:多可用区打散;ZonePriority:首选可用区优先; // 注意:此字段可能返回 null,表示取不到有效值。 CreatePolicy *string `json:"CreatePolicy,omitnil,omitempty" name:"CreatePolicy"` }
type MachineUpgradeSettings ¶ added in v1.0.918
type MachineUpgradeSettings struct { // 是否开启自动升级 // 注意:此字段可能返回 null,表示取不到有效值。 AutoUpgrade *bool `json:"AutoUpgrade,omitnil,omitempty" name:"AutoUpgrade"` // 运维窗口 // 注意:此字段可能返回 null,表示取不到有效值。 UpgradeOptions *AutoUpgradeOptions `json:"UpgradeOptions,omitnil,omitempty" name:"UpgradeOptions"` // 升级项 // 注意:此字段可能返回 null,表示取不到有效值。 Components []*string `json:"Components,omitnil,omitempty" name:"Components"` // 注意:此字段可能返回 null,表示取不到有效值。 MaxUnavailable *IntOrString `json:"MaxUnavailable,omitnil,omitempty" name:"MaxUnavailable"` }
type ManagementConfig ¶ added in v1.0.918
type ManagementConfig struct { // dns 配置 // 注意:此字段可能返回 null,表示取不到有效值。 Nameservers []*string `json:"Nameservers,omitnil,omitempty" name:"Nameservers"` // hosts 配置 // 注意:此字段可能返回 null,表示取不到有效值。 Hosts []*string `json:"Hosts,omitnil,omitempty" name:"Hosts"` // 内核参数配置 // 注意:此字段可能返回 null,表示取不到有效值。 KernelArgs []*string `json:"KernelArgs,omitnil,omitempty" name:"KernelArgs"` }
type ManuallyAdded ¶
type ManuallyAdded struct { // 加入中的节点数量 Joining *int64 `json:"Joining,omitnil,omitempty" name:"Joining"` // 初始化中的节点数量 Initializing *int64 `json:"Initializing,omitnil,omitempty" name:"Initializing"` // 正常的节点数量 Normal *int64 `json:"Normal,omitnil,omitempty" name:"Normal"` // 节点总数 Total *int64 `json:"Total,omitnil,omitempty" name:"Total"` }
type ModifyNodePoolRequest ¶ added in v1.0.918
type ModifyNodePoolRequest struct { *tchttp.BaseRequest // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池 ID NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` // 节点池名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 节点 Labels Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"` // 节点污点 Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"` // 节点标签 Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"` // 是否开启删除保护 DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"` // 节点是否不可调度 Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"` // 原生节点池更新参数 Native *UpdateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"` // 节点 Annotation 列表 Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"` }
func NewModifyNodePoolRequest ¶ added in v1.0.918
func NewModifyNodePoolRequest() (request *ModifyNodePoolRequest)
func (*ModifyNodePoolRequest) FromJsonString ¶ added in v1.0.918
func (r *ModifyNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNodePoolRequest) ToJsonString ¶ added in v1.0.918
func (r *ModifyNodePoolRequest) ToJsonString() string
type ModifyNodePoolRequestParams ¶ added in v1.0.918
type ModifyNodePoolRequestParams struct { // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池 ID NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` // 节点池名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 节点 Labels Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"` // 节点污点 Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"` // 节点标签 Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"` // 是否开启删除保护 DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"` // 节点是否不可调度 Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"` // 原生节点池更新参数 Native *UpdateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"` // 节点 Annotation 列表 Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"` }
Predefined struct for user
type ModifyNodePoolResponse ¶ added in v1.0.918
type ModifyNodePoolResponse struct { *tchttp.BaseResponse Response *ModifyNodePoolResponseParams `json:"Response"` }
func NewModifyNodePoolResponse ¶ added in v1.0.918
func NewModifyNodePoolResponse() (response *ModifyNodePoolResponse)
func (*ModifyNodePoolResponse) FromJsonString ¶ added in v1.0.918
func (r *ModifyNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNodePoolResponse) ToJsonString ¶ added in v1.0.918
func (r *ModifyNodePoolResponse) ToJsonString() string
type ModifyNodePoolResponseParams ¶ added in v1.0.918
type ModifyNodePoolResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type NativeNodeInfo ¶
type NativeNodeInfo struct { // 节点名称 MachineName *string `json:"MachineName,omitnil,omitempty" name:"MachineName"` // Machine 状态 MachineState *string `json:"MachineState,omitnil,omitempty" name:"MachineState"` // Machine 所在可用区 Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"` // 节点计费类型。PREPAID:包年包月;POSTPAID_BY_HOUR:按量计费(默认); InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 创建时间 CreatedAt *string `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"` // Machine 登录状态 // 注意:此字段可能返回 null,表示取不到有效值。 LoginStatus *string `json:"LoginStatus,omitnil,omitempty" name:"LoginStatus"` // 是否开启缩容保护 // 注意:此字段可能返回 null,表示取不到有效值。 IsProtectedFromScaleIn *bool `json:"IsProtectedFromScaleIn,omitnil,omitempty" name:"IsProtectedFromScaleIn"` // Machine 名字 // 注意:此字段可能返回 null,表示取不到有效值。 DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` // CPU核数,单位:核 CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"` // GPU核数,单位:核 // 注意:此字段可能返回 null,表示取不到有效值。 GPU *uint64 `json:"GPU,omitnil,omitempty" name:"GPU"` // 自动续费标识 RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"` // 节点计费模式(已弃用) PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"` // 节点内存容量,单位:`GB` Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"` // 公网带宽相关信息设置 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 机型所属机型族 InstanceFamily *string `json:"InstanceFamily,omitnil,omitempty" name:"InstanceFamily"` // 节点内网 IP LanIp *string `json:"LanIp,omitnil,omitempty" name:"LanIp"` // 机型 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 包年包月节点计费过期时间 // 注意:此字段可能返回 null,表示取不到有效值。 ExpiredTime *string `json:"ExpiredTime,omitnil,omitempty" name:"ExpiredTime"` // 安全组列表 // 注意:此字段可能返回 null,表示取不到有效值。 SecurityGroupIDs []*string `json:"SecurityGroupIDs,omitnil,omitempty" name:"SecurityGroupIDs"` // VPC 唯一 ID // 注意:此字段可能返回 null,表示取不到有效值。 VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` // 子网唯一 ID // 注意:此字段可能返回 null,表示取不到有效值。 SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"` // OS的名称 // 注意:此字段可能返回 null,表示取不到有效值。 OsImage *string `json:"OsImage,omitnil,omitempty" name:"OsImage"` }
type NativeNodePoolInfo ¶
type NativeNodePoolInfo struct { // 伸缩配置 // 注意:此字段可能返回 null,表示取不到有效值。 Scaling *MachineSetScaling `json:"Scaling,omitnil,omitempty" name:"Scaling"` // 子网列表 SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"` // 安全组列表 // 注意:此字段可能返回 null,表示取不到有效值。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 自动升级配置 // 注意:此字段可能返回 null,表示取不到有效值。 UpgradeSettings *MachineUpgradeSettings `json:"UpgradeSettings,omitnil,omitempty" name:"UpgradeSettings"` // 是否开启自愈能力 // 注意:此字段可能返回 null,表示取不到有效值。 AutoRepair *bool `json:"AutoRepair,omitnil,omitempty" name:"AutoRepair"` // 节点计费类型 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 包年包月机型计费配置 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 系统盘配置 SystemDisk *Disk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 密钥 ID 列表 // 注意:此字段可能返回 null,表示取不到有效值。 KeyIds []*string `json:"KeyIds,omitnil,omitempty" name:"KeyIds"` // Machine 系统配置 // 注意:此字段可能返回 null,表示取不到有效值。 Management *ManagementConfig `json:"Management,omitnil,omitempty" name:"Management"` // 故障自愈规则名称 // 注意:此字段可能返回 null,表示取不到有效值。 HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"` // 原生节点池hostName模式串 // 注意:此字段可能返回 null,表示取不到有效值。 HostNamePattern *string `json:"HostNamePattern,omitnil,omitempty" name:"HostNamePattern"` // kubelet 自定义参数 // 注意:此字段可能返回 null,表示取不到有效值。 KubeletArgs []*string `json:"KubeletArgs,omitnil,omitempty" name:"KubeletArgs"` // 预定义脚本 // 注意:此字段可能返回 null,表示取不到有效值。 Lifecycle *LifecycleConfig `json:"Lifecycle,omitnil,omitempty" name:"Lifecycle"` // 运行时根目录 // 注意:此字段可能返回 null,表示取不到有效值。 RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"` // 是否开启弹性伸缩 // 注意:此字段可能返回 null,表示取不到有效值。 EnableAutoscaling *bool `json:"EnableAutoscaling,omitnil,omitempty" name:"EnableAutoscaling"` // 机型列表 InstanceTypes []*string `json:"InstanceTypes,omitnil,omitempty" name:"InstanceTypes"` // 期望节点数 // 注意:此字段可能返回 null,表示取不到有效值。 Replicas *int64 `json:"Replicas,omitnil,omitempty" name:"Replicas"` // 公网带宽设置 // 注意:此字段可能返回 null,表示取不到有效值。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 原生节点池数据盘 // 注意:此字段可能返回 null,表示取不到有效值。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` }
type NodeCountSummary ¶
type NodeCountSummary struct { // 手动管理的节点 // 注意:此字段可能返回 null,表示取不到有效值。 ManuallyAdded *ManuallyAdded `json:"ManuallyAdded,omitnil,omitempty" name:"ManuallyAdded"` // 自动管理的节点 // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingAdded *AutoscalingAdded `json:"AutoscalingAdded,omitnil,omitempty" name:"AutoscalingAdded"` }
type NodePool ¶
type NodePool struct { // 集群 ID ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点池 ID NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"` // 节点标签 // 注意:此字段可能返回 null,表示取不到有效值。 Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"` // 节点污点 // 注意:此字段可能返回 null,表示取不到有效值。 Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"` // 是否开启删除保护 // 注意:此字段可能返回 null,表示取不到有效值。 DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"` // 节点是否不可调度 // 注意:此字段可能返回 null,表示取不到有效值。 Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"` // 节点池类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 节点 Labels // 注意:此字段可能返回 null,表示取不到有效值。 Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"` // 节点池状态 LifeState *string `json:"LifeState,omitnil,omitempty" name:"LifeState"` // 创建时间 CreatedAt *string `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"` // 节点池名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 原生节点池参数 // 注意:此字段可能返回 null,表示取不到有效值。 Native *NativeNodePoolInfo `json:"Native,omitnil,omitempty" name:"Native"` // 节点 Annotation 列表 // 注意:此字段可能返回 null,表示取不到有效值。 Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"` // 超级节点池参数,在Type等于Super该字段才有值 // 注意:此字段可能返回 null,表示取不到有效值。 Super *SuperNodePoolInfo `json:"Super,omitnil,omitempty" name:"Super"` // 普通节点池参数,在Type等于Regular该字段才有值 // 注意:此字段可能返回 null,表示取不到有效值。 Regular *RegularNodePoolInfo `json:"Regular,omitnil,omitempty" name:"Regular"` // 第三方节点池参数,在Type等于External该字段才有值 // 注意:此字段可能返回 null,表示取不到有效值。 External *ExternalNodePoolInfo `json:"External,omitnil,omitempty" name:"External"` }
type RegularNodeInfo ¶
type RegularNodeInfo struct { // 节点配置 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitnil,omitempty" name:"InstanceAdvancedSettings"` // 自动伸缩组ID // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingGroupId *string `json:"AutoscalingGroupId,omitnil,omitempty" name:"AutoscalingGroupId"` }
type RegularNodePoolInfo ¶
type RegularNodePoolInfo struct { // LaunchConfigurationId 配置 LaunchConfigurationId *string `json:"LaunchConfigurationId,omitnil,omitempty" name:"LaunchConfigurationId"` // AutoscalingGroupId 分组id AutoscalingGroupId *string `json:"AutoscalingGroupId,omitnil,omitempty" name:"AutoscalingGroupId"` // NodeCountSummary 节点列表 NodeCountSummary *NodeCountSummary `json:"NodeCountSummary,omitnil,omitempty" name:"NodeCountSummary"` // 状态信息 // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingGroupStatus *string `json:"AutoscalingGroupStatus,omitnil,omitempty" name:"AutoscalingGroupStatus"` // 最大节点数量 // 注意:此字段可能返回 null,表示取不到有效值。 MaxNodesNum *int64 `json:"MaxNodesNum,omitnil,omitempty" name:"MaxNodesNum"` // 最小节点数量 // 注意:此字段可能返回 null,表示取不到有效值。 MinNodesNum *int64 `json:"MinNodesNum,omitnil,omitempty" name:"MinNodesNum"` // 期望的节点数量 // 注意:此字段可能返回 null,表示取不到有效值。 DesiredNodesNum *int64 `json:"DesiredNodesNum,omitnil,omitempty" name:"DesiredNodesNum"` // 节点池osName // 注意:此字段可能返回 null,表示取不到有效值。 NodePoolOs *string `json:"NodePoolOs,omitnil,omitempty" name:"NodePoolOs"` // 节点配置 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitnil,omitempty" name:"InstanceAdvancedSettings"` }
type RuntimeConfig ¶
type RuntimeConfig struct { // 运行时类型 // 注意:此字段可能返回 null,表示取不到有效值。 RuntimeType *string `json:"RuntimeType,omitnil,omitempty" name:"RuntimeType"` // 运行时版本 // 注意:此字段可能返回 null,表示取不到有效值。 RuntimeVersion *string `json:"RuntimeVersion,omitnil,omitempty" name:"RuntimeVersion"` // 运行时根目录 // 注意:此字段可能返回 null,表示取不到有效值。 RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"` }
type SuperNodeInfo ¶
type SuperNodeInfo struct { // 实例名称 // 注意:此字段可能返回 null,表示取不到有效值。 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 自动续费标识 // 注意:此字段可能返回 null,表示取不到有效值。 AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"` // 资源类型 // 注意:此字段可能返回 null,表示取不到有效值。 ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"` // 节点的 CPU 规格,单位:核。 // 注意:此字段可能返回 null,表示取不到有效值。 CPU *float64 `json:"CPU,omitnil,omitempty" name:"CPU"` // 节点上 Pod 的 CPU总和,单位:核。 // 注意:此字段可能返回 null,表示取不到有效值。 UsedCPU *float64 `json:"UsedCPU,omitnil,omitempty" name:"UsedCPU"` // 节点的内存规格,单位:Gi。 // 注意:此字段可能返回 null,表示取不到有效值。 Memory *float64 `json:"Memory,omitnil,omitempty" name:"Memory"` // 节点上 Pod 的内存总和,单位:Gi。 // 注意:此字段可能返回 null,表示取不到有效值。 UsedMemory *float64 `json:"UsedMemory,omitnil,omitempty" name:"UsedMemory"` // 可用区 // 注意:此字段可能返回 null,表示取不到有效值。 Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"` // VPC 唯一 ID // 注意:此字段可能返回 null,表示取不到有效值。 VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` // 子网唯一 ID // 注意:此字段可能返回 null,表示取不到有效值。 SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"` // 生效时间 // 注意:此字段可能返回 null,表示取不到有效值。 ActiveAt *string `json:"ActiveAt,omitnil,omitempty" name:"ActiveAt"` // 过期时间 // 注意:此字段可能返回 null,表示取不到有效值。 ExpireAt *string `json:"ExpireAt,omitnil,omitempty" name:"ExpireAt"` // 可调度的单 Pod 最大 CPU 规格 // 注意:此字段可能返回 null,表示取不到有效值。 MaxCPUScheduledPod *int64 `json:"MaxCPUScheduledPod,omitnil,omitempty" name:"MaxCPUScheduledPod"` // 实例属性 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceAttribute *string `json:"InstanceAttribute,omitnil,omitempty" name:"InstanceAttribute"` }
type SuperNodePoolInfo ¶
type TagSpecification ¶ added in v1.0.918
type UpdateNativeNodePoolParam ¶ added in v1.0.918
type UpdateNativeNodePoolParam struct { // 伸缩配置 Scaling *MachineSetScaling `json:"Scaling,omitnil,omitempty" name:"Scaling"` // 子网列表 SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"` // 安全组列表 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 自动升级配置 UpgradeSettings *MachineUpgradeSettings `json:"UpgradeSettings,omitnil,omitempty" name:"UpgradeSettings"` // 是否开启自愈能力 AutoRepair *bool `json:"AutoRepair,omitnil,omitempty" name:"AutoRepair"` // 节点计费类型变更 // 当前仅支持按量计费转包年包月: // - PREPAID InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 包年包月机型计费配置 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 系统盘配置 SystemDisk *Disk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // Machine 系统配置 Management *ManagementConfig `json:"Management,omitnil,omitempty" name:"Management"` // 故障自愈规则名称 HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"` // 原生节点池hostName模式串 HostNamePattern *string `json:"HostNamePattern,omitnil,omitempty" name:"HostNamePattern"` // kubelet 自定义参数 KubeletArgs []*string `json:"KubeletArgs,omitnil,omitempty" name:"KubeletArgs"` // 预定义脚本 Lifecycle *LifecycleConfig `json:"Lifecycle,omitnil,omitempty" name:"Lifecycle"` // 运行时根目录 RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"` // 是否开启弹性伸缩 EnableAutoscaling *bool `json:"EnableAutoscaling,omitnil,omitempty" name:"EnableAutoscaling"` // 机型列表 InstanceTypes []*string `json:"InstanceTypes,omitnil,omitempty" name:"InstanceTypes"` // 期望节点数 Replicas *int64 `json:"Replicas,omitnil,omitempty" name:"Replicas"` // 数据盘列表 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // ssh公钥id数组 KeyIds []*string `json:"KeyIds,omitnil,omitempty" name:"KeyIds"` }