bootstrapper

package
v1.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 26 Imported by: 95

Documentation

Index

Constants

View Source
const (
	// CACertificatesDir contains CA certificates
	CACertificatesDir = "/usr/share/ca-certificates"
	// SSLCertStoreDir contains SSL certificates
	SSLCertStoreDir = "/etc/ssl/certs"
)
View Source
const (
	// BootstrapperTypeKubeadm is the kubeadm bootstrapper type
	BootstrapperTypeKubeadm = "kubeadm"
)

Variables

This section is empty.

Functions

func GetCachedBinaryList added in v1.0.1

func GetCachedBinaryList(bootstrapper string) []string

GetCachedBinaryList returns the list of binaries

func GetCachedImageList added in v0.22.2

func GetCachedImageList(imageRepository string, version string, bootstrapper string) []string

GetCachedImageList returns the list of images for a version

func SetupCerts

func SetupCerts(cmd command.Runner, k8s config.KubernetesConfig) error

SetupCerts gets the generated credentials required to talk to the APIServer.

Types

type Bootstrapper

type Bootstrapper interface {
	// PullImages pulls images necessary for a cluster. Success should not be required.
	PullImages(config.KubernetesConfig) error
	StartCluster(config.KubernetesConfig) error
	UpdateCluster(config.KubernetesConfig) error
	DeleteCluster(config.KubernetesConfig) error
	WaitForCluster(config.KubernetesConfig, time.Duration) error
	// LogCommands returns a map of log type to a command which will display that log.
	LogCommands(LogOptions) map[string]string
	SetupCerts(cfg config.KubernetesConfig) error
	GetKubeletStatus() (string, error)
	GetAPIServerStatus(net.IP, int) (string, error)
}

Bootstrapper contains all the methods needed to bootstrap a kubernetes cluster

type LogOptions added in v0.34.0

type LogOptions struct {
	// Lines is the number of recent log lines to include, as in tail -n.
	Lines int
	// Follow is whether or not to actively follow the logs, as in tail -f.
	Follow bool
}

LogOptions are options to be passed to LogCommands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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