kubeadm

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kubelet           = "kubelet"
	Apiserver         = "apiserver"
	Scheduler         = "scheduler"
	ControllerManager = "controller-manager"
)

These are the components that can be configured through the "extra-config"

Variables

This section is empty.

Functions

func DefaultOptionsForComponentAndVersion added in v0.22.3

func DefaultOptionsForComponentAndVersion(component string, version semver.Version) (map[string]string, error)

func ExtraConfigForComponent added in v0.22.3

func ExtraConfigForComponent(component string, opts util.ExtraOptionSlice, version semver.Version) (map[string]string, error)

ExtraConfigForComponent generates a map of flagname-value pairs for a k8s component.

func NewKubeletConfig added in v0.22.3

func NewKubeletConfig(k8s bootstrapper.KubernetesConfig) (string, error)

func ParseKubernetesVersion added in v0.22.3

func ParseKubernetesVersion(version string) (semver.Version, error)

func VersionIsBetween added in v0.22.3

func VersionIsBetween(version, gte, lte semver.Version) bool

Types

type ComponentExtraArgs added in v0.22.3

type ComponentExtraArgs struct {
	Component string
	Options   map[string]string
}

func NewComponentExtraArgs added in v0.22.3

func NewComponentExtraArgs(opts util.ExtraOptionSlice, version semver.Version) ([]ComponentExtraArgs, error)

type KubeadmBootstrapper

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

func NewKubeadmBootstrapper

func NewKubeadmBootstrapper(api libmachine.API) (*KubeadmBootstrapper, error)

func (*KubeadmBootstrapper) GetClusterLogs

func (k *KubeadmBootstrapper) GetClusterLogs(follow bool) (string, error)

TODO(r2d4): Should this aggregate all the logs from the control plane? Maybe subcommands for each component? minikube logs apiserver?

func (*KubeadmBootstrapper) GetClusterStatus

func (k *KubeadmBootstrapper) GetClusterStatus() (string, error)

TODO(r2d4): This should most likely check the health of the apiserver

func (*KubeadmBootstrapper) RestartCluster

func (k *KubeadmBootstrapper) RestartCluster(k8s bootstrapper.KubernetesConfig) error

func (*KubeadmBootstrapper) SetupCerts

func (*KubeadmBootstrapper) StartCluster

func (*KubeadmBootstrapper) UpdateCluster

type VersionedExtraOption added in v0.22.3

type VersionedExtraOption struct {

	// The flag and component that will be set
	Option util.ExtraOption

	// This flag will only be applied to versions before or equal to this version
	// If it is the default value, it will have no upper bound on versions the
	// flag is applied to
	LessThanOrEqual semver.Version

	// The flag will only be applied to versions after or equal to this version
	// If it is the default value, it will have no lower bound on versions the
	// flag is applied to
	GreaterThanOrEqual semver.Version
}

VersionedExtraOption holds information on flags to apply to a specific range of versions

Jump to

Keyboard shortcuts

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