client

package
v1.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (*KubernetesClient) CreateCluster

  • 创建集群

- 证书

  • 关于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

创建工作节点组<br>

- 要求集群状态为running

func (*KubernetesClient) DeleteCluster

删除集群,以及集群的所有node节点,网络,云盘等所有资源。

func (*KubernetesClient) DeleteNodeGroup

集群摘除工作节点组并删除工作节点组

func (*KubernetesClient) DeleteNodeInstances added in v1.15.0

从工作节点组中删除指定实例

func (*KubernetesClient) DescribeCluster

查询单个集群详情。

func (*KubernetesClient) DescribeClusters

查询集群列表

func (*KubernetesClient) DescribeNodeGroup

查询单个工作节点组详情

func (*KubernetesClient) DescribeNodeGroups

查询工作节点组列表

func (*KubernetesClient) DescribeNodeVersion added in v1.8.0

查询节点版本

func (*KubernetesClient) DescribeProgress added in v1.8.0

查询集群操作进度

func (*KubernetesClient) DescribeQuotas

查询 kubernetes 集群配额

func (*KubernetesClient) DescribeServerConfig

查询 kubernetes 集群服务配置信息

func (*KubernetesClient) DescribeUpgradableMasterVersions added in v1.8.0

查询可升级的控制节点版本

func (*KubernetesClient) DescribeUpgradableNodeVersions added in v1.8.0

查询可升级的节点版本

func (*KubernetesClient) DescribeVersions

查询版本信息

func (*KubernetesClient) DisableLogger added in v1.13.0

func (c *KubernetesClient) DisableLogger()

func (*KubernetesClient) ModifyCluster

修改集群的 名称 和 描述。<br>集群 name 和 description 必须要指定一个

func (*KubernetesClient) ModifyNodeGroup

修改工作节点组的 名称 和 描述<br>name 和 description 必须要指定一个

func (*KubernetesClient) RollbackNodeGroupUpgrade added in v1.8.0

回滚未升级完的工作节点组

func (*KubernetesClient) SetAddons added in v1.12.0

设置集群组件

func (*KubernetesClient) SetAutoRepair

设置工作节点组的自动修复

func (*KubernetesClient) SetAutoUpgrade added in v1.8.0

设置自动升级

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 (*KubernetesClient) SetNodeGroupSize

调整工作节点组实例数量

func (*KubernetesClient) SetUserMetrics

Deprecated 建议使用 setAddons 接口 <br>设置用户自定义监控状态

func (*KubernetesClient) UpgradeCluster added in v1.8.0

触发升级

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL