kubeadm

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package kubeadm handles joining of new nodes by creating Kubernetes Join Tokens.

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 *slog.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