kubeadm

package
v0.8.5-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCertificateKey

func ExtractCertificateKey(kubeadmJoinCmd string) (string, error)

ExtractCertificateKey extracts the certificate key from the provided kubeadm join command.

func ExtractDiscoveryTokenCaCertHash

func ExtractDiscoveryTokenCaCertHash(kubeadmJoinCmd string) (string, error)

ExtractDiscoveryTokenCaCertHash extracts the discover token CA cert hash from the provided kubeadm join command.

func ExtractJoinCmd

func ExtractJoinCmd(stdOut string) (string, error)

ExtractJoinCmd goes through the provided kubeadm init standard output and extracts the kubeadm join command printed.

func GenerateBootstrapSecret

func GenerateBootstrapSecret(namespace string) (*corev1.Secret, error)

GenerateBootstrapSecret creates a new bootstrap secret to be used with kubeadm join. This secret must be applied to the kubernetes cluster prior to trying to join a node to the cluster.

func GenerateBootstrapToken

func GenerateBootstrapToken() (*kubeadmapi.BootstrapTokenString, error)

GenerateBootstrapToken generates a new kubeadm bootstrap token, used by kubeadm init and kubeadm join to safely form clusters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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