client

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 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

创建k8s的nodeGroup

要求集群状态为running

func (*KubernetesClient) DeleteCluster

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

func (*KubernetesClient) DeleteNodeGroup

cluster 摘除 nodeGroup 并删除 nodeGroup

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

查询(k8s 集群)配额

func (*KubernetesClient) DescribeServerConfig

查询(k8s 集群)服务配置信息

func (*KubernetesClient) DescribeUpgradableMasterVersions added in v1.8.0

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

func (*KubernetesClient) DescribeUpgradableNodeVersions added in v1.8.0

查询可升级的节点版本

func (*KubernetesClient) DescribeVersions

查询版本信息

func (*KubernetesClient) ModifyCluster

修改集群的 名称 和 描述。

func (*KubernetesClient) ModifyNodeGroup

修改节点组的 名称 和 描述

func (*KubernetesClient) RollbackNodeGroupUpgrade added in v1.8.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) SetNodeGroupSize

调整节点组实例数量

func (*KubernetesClient) SetUserMetrics

设置用户自定义监控状态

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