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
GetCachedBinaryList returns the list of binaries
func GetCachedImageList ¶ added in v0.22.2
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 RestartCluster(config.KubernetesConfig) error DeleteCluster(config.KubernetesConfig) error WaitForPods(config.KubernetesConfig, time.Duration, []string) 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
Click to show internal directories.
Click to hide internal directories.