cluster

package
v0.0.0-...-96b04c8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxNodePodNumMap = map[int]int{
	24: 110,
	25: 64,
	26: 32,
	27: 16,
}

Functions

func GenerateKubeadmToken

func GenerateKubeadmToken() string

func GetClusterToken

func GetClusterToken(client ssh.Interface) (string, error)

func GetClusterTokenWithoutRetry

func GetClusterTokenWithoutRetry(client ssh.Interface) (string, error)

func GetNodeCIDRMaskSize

func GetNodeCIDRMaskSize(maxNodePodNum int) int

func LoadAvailableHost

func LoadAvailableHost(cluster *model.Cluster) (string, error)

func LoadConnConf

func LoadConnConf(cluster *model.Cluster, availableHost string) (*rest.Config, error)

func NewClusterClient

func NewClusterClient(cluster *model.Cluster) (*kubernetes.Clientset, error)

func NewClusterExtensionClient

func NewClusterExtensionClient(cluster *model.Cluster) (*extensionClientSet.Clientset, error)

func PauseConfigApi

func PauseConfigApi(conf *string) (*api.Config, error)

func SelectAliveHost

func SelectAliveHost(hosts []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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