Documentation ¶
Index ¶
- type KubernetesClient
- func (c *KubernetesClient) AbortUpgrade(request *kubernetes.AbortUpgradeRequest) (*kubernetes.AbortUpgradeResponse, error)
- func (c *KubernetesClient) CreateCluster(request *kubernetes.CreateClusterRequest) (*kubernetes.CreateClusterResponse, error)
- func (c *KubernetesClient) CreateNodeGroup(request *kubernetes.CreateNodeGroupRequest) (*kubernetes.CreateNodeGroupResponse, error)
- func (c *KubernetesClient) DeleteCluster(request *kubernetes.DeleteClusterRequest) (*kubernetes.DeleteClusterResponse, error)
- func (c *KubernetesClient) DeleteNodeGroup(request *kubernetes.DeleteNodeGroupRequest) (*kubernetes.DeleteNodeGroupResponse, error)
- func (c *KubernetesClient) DeleteNodeInstances(request *kubernetes.DeleteNodeInstancesRequest) (*kubernetes.DeleteNodeInstancesResponse, error)
- func (c *KubernetesClient) DescribeCluster(request *kubernetes.DescribeClusterRequest) (*kubernetes.DescribeClusterResponse, error)
- func (c *KubernetesClient) DescribeClusters(request *kubernetes.DescribeClustersRequest) (*kubernetes.DescribeClustersResponse, error)
- func (c *KubernetesClient) DescribeNodeGroup(request *kubernetes.DescribeNodeGroupRequest) (*kubernetes.DescribeNodeGroupResponse, error)
- func (c *KubernetesClient) DescribeNodeGroups(request *kubernetes.DescribeNodeGroupsRequest) (*kubernetes.DescribeNodeGroupsResponse, error)
- func (c *KubernetesClient) DescribeNodeVersion(request *kubernetes.DescribeNodeVersionRequest) (*kubernetes.DescribeNodeVersionResponse, error)
- func (c *KubernetesClient) DescribeProgress(request *kubernetes.DescribeProgressRequest) (*kubernetes.DescribeProgressResponse, error)
- func (c *KubernetesClient) DescribeQuotas(request *kubernetes.DescribeQuotasRequest) (*kubernetes.DescribeQuotasResponse, error)
- func (c *KubernetesClient) DescribeServerConfig(request *kubernetes.DescribeServerConfigRequest) (*kubernetes.DescribeServerConfigResponse, error)
- func (c *KubernetesClient) DescribeUpgradableMasterVersions(request *kubernetes.DescribeUpgradableMasterVersionsRequest) (*kubernetes.DescribeUpgradableMasterVersionsResponse, error)
- func (c *KubernetesClient) DescribeUpgradableNodeVersions(request *kubernetes.DescribeUpgradableNodeVersionsRequest) (*kubernetes.DescribeUpgradableNodeVersionsResponse, error)
- func (c *KubernetesClient) DescribeVersions(request *kubernetes.DescribeVersionsRequest) (*kubernetes.DescribeVersionsResponse, error)
- func (c *KubernetesClient) DisableLogger()
- func (c *KubernetesClient) ModifyCluster(request *kubernetes.ModifyClusterRequest) (*kubernetes.ModifyClusterResponse, error)
- func (c *KubernetesClient) ModifyNodeGroup(request *kubernetes.ModifyNodeGroupRequest) (*kubernetes.ModifyNodeGroupResponse, error)
- func (c *KubernetesClient) RollbackNodeGroupUpgrade(request *kubernetes.RollbackNodeGroupUpgradeRequest) (*kubernetes.RollbackNodeGroupUpgradeResponse, error)
- func (c *KubernetesClient) SetAddons(request *kubernetes.SetAddonsRequest) (*kubernetes.SetAddonsResponse, error)
- func (c *KubernetesClient) SetAutoRepair(request *kubernetes.SetAutoRepairRequest) (*kubernetes.SetAutoRepairResponse, error)
- func (c *KubernetesClient) SetAutoUpgrade(request *kubernetes.SetAutoUpgradeRequest) (*kubernetes.SetAutoUpgradeResponse, error)
- func (c *KubernetesClient) SetConfig(config *core.Config)
- func (c *KubernetesClient) SetLogger(logger core.Logger)
- func (c *KubernetesClient) SetNodeGroupCA(request *kubernetes.SetNodeGroupCARequest) (*kubernetes.SetNodeGroupCAResponse, error)
- func (c *KubernetesClient) SetNodeGroupSize(request *kubernetes.SetNodeGroupSizeRequest) (*kubernetes.SetNodeGroupSizeResponse, error)
- func (c *KubernetesClient) SetUserMetrics(request *kubernetes.SetUserMetricsRequest) (*kubernetes.SetUserMetricsResponse, error)
- func (c *KubernetesClient) UpgradeCluster(request *kubernetes.UpgradeClusterRequest) (*kubernetes.UpgradeClusterResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesClient ¶
type KubernetesClient struct {
core.JDCloudClient
}
func NewKubernetesClient ¶
func NewKubernetesClient(credential *core.Credential) *KubernetesClient
func (*KubernetesClient) AbortUpgrade ¶ added in v1.8.0
func (c *KubernetesClient) AbortUpgrade(request *kubernetes.AbortUpgradeRequest) (*kubernetes.AbortUpgradeResponse, error)
终止升级
func (*KubernetesClient) CreateCluster ¶
func (c *KubernetesClient) CreateCluster(request *kubernetes.CreateClusterRequest) (*kubernetes.CreateClusterResponse, error)
- 创建集群
- 证书
- 关于kubernetes的证书,默认生成,不需要用户传入。
- nodegroup
- cluster必须与nodeGroup进行绑定
- cluster支持多nodegroup
- 状态
- pending,reconciling,deleting状态不可以操作更新接口
- running,running_with_error状态可以操作nodegroup所有接口
- error状态只可以查询,删除
- delete状态的cluster在十五分钟内可以查询,十五分钟后无法查询到
- 状态限制
- pending,reconciling,deleting状态不可以操作更新接口
- running状态可以操作cluster所有接口
- error状态只可以查询,删除
- delete状态的cluster在十五分钟内可以查询,十五分钟后无法查询到
func (*KubernetesClient) CreateNodeGroup ¶
func (c *KubernetesClient) CreateNodeGroup(request *kubernetes.CreateNodeGroupRequest) (*kubernetes.CreateNodeGroupResponse, error)
创建工作节点组<br>
- 要求集群状态为running
func (*KubernetesClient) DeleteCluster ¶
func (c *KubernetesClient) DeleteCluster(request *kubernetes.DeleteClusterRequest) (*kubernetes.DeleteClusterResponse, error)
删除集群,以及集群的所有node节点,网络,云盘等所有资源。
func (*KubernetesClient) DeleteNodeGroup ¶
func (c *KubernetesClient) DeleteNodeGroup(request *kubernetes.DeleteNodeGroupRequest) (*kubernetes.DeleteNodeGroupResponse, error)
集群摘除工作节点组并删除工作节点组
func (*KubernetesClient) DeleteNodeInstances ¶ added in v1.15.0
func (c *KubernetesClient) DeleteNodeInstances(request *kubernetes.DeleteNodeInstancesRequest) (*kubernetes.DeleteNodeInstancesResponse, error)
从工作节点组中删除指定实例
func (*KubernetesClient) DescribeCluster ¶
func (c *KubernetesClient) DescribeCluster(request *kubernetes.DescribeClusterRequest) (*kubernetes.DescribeClusterResponse, error)
查询单个集群详情。
func (*KubernetesClient) DescribeClusters ¶
func (c *KubernetesClient) DescribeClusters(request *kubernetes.DescribeClustersRequest) (*kubernetes.DescribeClustersResponse, error)
查询集群列表
func (*KubernetesClient) DescribeNodeGroup ¶
func (c *KubernetesClient) DescribeNodeGroup(request *kubernetes.DescribeNodeGroupRequest) (*kubernetes.DescribeNodeGroupResponse, error)
查询单个工作节点组详情
func (*KubernetesClient) DescribeNodeGroups ¶
func (c *KubernetesClient) DescribeNodeGroups(request *kubernetes.DescribeNodeGroupsRequest) (*kubernetes.DescribeNodeGroupsResponse, error)
查询工作节点组列表
func (*KubernetesClient) DescribeNodeVersion ¶ added in v1.8.0
func (c *KubernetesClient) DescribeNodeVersion(request *kubernetes.DescribeNodeVersionRequest) (*kubernetes.DescribeNodeVersionResponse, error)
查询节点版本
func (*KubernetesClient) DescribeProgress ¶ added in v1.8.0
func (c *KubernetesClient) DescribeProgress(request *kubernetes.DescribeProgressRequest) (*kubernetes.DescribeProgressResponse, error)
查询集群操作进度
func (*KubernetesClient) DescribeQuotas ¶
func (c *KubernetesClient) DescribeQuotas(request *kubernetes.DescribeQuotasRequest) (*kubernetes.DescribeQuotasResponse, error)
查询 kubernetes 集群配额
func (*KubernetesClient) DescribeServerConfig ¶
func (c *KubernetesClient) DescribeServerConfig(request *kubernetes.DescribeServerConfigRequest) (*kubernetes.DescribeServerConfigResponse, error)
查询 kubernetes 集群服务配置信息
func (*KubernetesClient) DescribeUpgradableMasterVersions ¶ added in v1.8.0
func (c *KubernetesClient) DescribeUpgradableMasterVersions(request *kubernetes.DescribeUpgradableMasterVersionsRequest) (*kubernetes.DescribeUpgradableMasterVersionsResponse, error)
查询可升级的控制节点版本
func (*KubernetesClient) DescribeUpgradableNodeVersions ¶ added in v1.8.0
func (c *KubernetesClient) DescribeUpgradableNodeVersions(request *kubernetes.DescribeUpgradableNodeVersionsRequest) (*kubernetes.DescribeUpgradableNodeVersionsResponse, error)
查询可升级的节点版本
func (*KubernetesClient) DescribeVersions ¶
func (c *KubernetesClient) DescribeVersions(request *kubernetes.DescribeVersionsRequest) (*kubernetes.DescribeVersionsResponse, error)
查询版本信息
func (*KubernetesClient) DisableLogger ¶ added in v1.13.0
func (c *KubernetesClient) DisableLogger()
func (*KubernetesClient) ModifyCluster ¶
func (c *KubernetesClient) ModifyCluster(request *kubernetes.ModifyClusterRequest) (*kubernetes.ModifyClusterResponse, error)
修改集群的 名称 和 描述。<br>集群 name 和 description 必须要指定一个
func (*KubernetesClient) ModifyNodeGroup ¶
func (c *KubernetesClient) ModifyNodeGroup(request *kubernetes.ModifyNodeGroupRequest) (*kubernetes.ModifyNodeGroupResponse, error)
修改工作节点组的 名称 和 描述<br>name 和 description 必须要指定一个
func (*KubernetesClient) RollbackNodeGroupUpgrade ¶ added in v1.8.0
func (c *KubernetesClient) RollbackNodeGroupUpgrade(request *kubernetes.RollbackNodeGroupUpgradeRequest) (*kubernetes.RollbackNodeGroupUpgradeResponse, error)
回滚未升级完的工作节点组
func (*KubernetesClient) SetAddons ¶ added in v1.12.0
func (c *KubernetesClient) SetAddons(request *kubernetes.SetAddonsRequest) (*kubernetes.SetAddonsResponse, error)
设置集群组件
func (*KubernetesClient) SetAutoRepair ¶
func (c *KubernetesClient) SetAutoRepair(request *kubernetes.SetAutoRepairRequest) (*kubernetes.SetAutoRepairResponse, error)
设置工作节点组的自动修复
func (*KubernetesClient) SetAutoUpgrade ¶ added in v1.8.0
func (c *KubernetesClient) SetAutoUpgrade(request *kubernetes.SetAutoUpgradeRequest) (*kubernetes.SetAutoUpgradeResponse, error)
设置自动升级
func (*KubernetesClient) SetConfig ¶
func (c *KubernetesClient) SetConfig(config *core.Config)
func (*KubernetesClient) SetLogger ¶
func (c *KubernetesClient) SetLogger(logger core.Logger)
func (*KubernetesClient) SetNodeGroupCA ¶ added in v1.15.0
func (c *KubernetesClient) SetNodeGroupCA(request *kubernetes.SetNodeGroupCARequest) (*kubernetes.SetNodeGroupCAResponse, error)
设置工作节点组自动扩容
func (*KubernetesClient) SetNodeGroupSize ¶
func (c *KubernetesClient) SetNodeGroupSize(request *kubernetes.SetNodeGroupSizeRequest) (*kubernetes.SetNodeGroupSizeResponse, error)
调整工作节点组实例数量
func (*KubernetesClient) SetUserMetrics ¶
func (c *KubernetesClient) SetUserMetrics(request *kubernetes.SetUserMetricsRequest) (*kubernetes.SetUserMetricsResponse, error)
Deprecated 建议使用 setAddons 接口 <br>设置用户自定义监控状态
func (*KubernetesClient) UpgradeCluster ¶ added in v1.8.0
func (c *KubernetesClient) UpgradeCluster(request *kubernetes.UpgradeClusterRequest) (*kubernetes.UpgradeClusterResponse, error)
触发升级
Click to show internal directories.
Click to hide internal directories.