kubeadm

package
v1.10.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 40 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrapper added in v1.0.0

type Bootstrapper struct {
	// contains filtered or unexported fields
}

Bootstrapper is a bootstrapper using kubeadm

func NewBootstrapper added in v1.7.0

func NewBootstrapper(api libmachine.API, cc config.ClusterConfig, r command.Runner) (*Bootstrapper, error)

NewBootstrapper creates a new kubeadm.Bootstrapper

func (*Bootstrapper) DeleteCluster added in v1.0.0

func (k *Bootstrapper) DeleteCluster(k8s config.KubernetesConfig) error

DeleteCluster removes the components that were started earlier

func (*Bootstrapper) GenerateToken added in v1.9.0

func (k *Bootstrapper) GenerateToken(cc config.ClusterConfig) (string, error)

GenerateToken creates a token and returns the appropriate kubeadm join command to run

func (*Bootstrapper) GetAPIServerStatus added in v1.0.0

func (k *Bootstrapper) GetAPIServerStatus(hostname string, port int) (string, error)

GetAPIServerStatus returns the api-server status

func (*Bootstrapper) JoinCluster added in v1.9.0

func (k *Bootstrapper) JoinCluster(cc config.ClusterConfig, n config.Node, joinCmd string) error

JoinCluster adds a node to an existing cluster

func (*Bootstrapper) LogCommands added in v1.0.0

LogCommands returns a map of log type to a command which will display that log.

func (*Bootstrapper) SetupCerts added in v1.0.0

func (k *Bootstrapper) SetupCerts(k8s config.KubernetesConfig, n config.Node) error

SetupCerts sets up certificates within the cluster.

func (*Bootstrapper) StartCluster added in v1.0.0

func (k *Bootstrapper) StartCluster(cfg config.ClusterConfig) error

StartCluster starts the cluster

func (*Bootstrapper) UpdateCluster added in v1.0.0

func (k *Bootstrapper) UpdateCluster(cfg config.ClusterConfig) error

UpdateCluster updates the cluster.

func (*Bootstrapper) UpdateNode added in v1.9.0

func (k *Bootstrapper) UpdateNode(cfg config.ClusterConfig, n config.Node, r cruntime.Manager) error

UpdateNode updates a node.

func (*Bootstrapper) WaitForNode added in v1.9.0

func (k *Bootstrapper) WaitForNode(cfg config.ClusterConfig, n config.Node, timeout time.Duration) (waitErr error)

WaitForNode blocks until the node appears to be healthy

Jump to

Keyboard shortcuts

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