kubeadm

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeadm

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

Kubeadm manages joining of new nodes.

func New

func New(apiServerEndpoint string, log *logger.Logger) (*Kubeadm, error)

New creates a new Kubeadm instance.

func (*Kubeadm) GetControlPlaneCertificatesAndKeys

func (k *Kubeadm) GetControlPlaneCertificatesAndKeys() (map[string][]byte, error)

GetControlPlaneCertificatesAndKeys loads the Kubernetes CA certificates and keys.

func (*Kubeadm) GetJoinToken

func (k *Kubeadm) GetJoinToken(ttl time.Duration) (*kubeadm.BootstrapTokenDiscovery, error)

GetJoinToken creates a new bootstrap (join) token, which a node can use to join the cluster.

Jump to

Keyboard shortcuts

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