kubeadm

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: Apache-2.0 Imports: 33 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)

NewKubeletConfig generates a new systemd unit containing a configured kubelet based on the options present in the KubernetesConfig.

func ParseKubernetesVersion added in v0.22.3

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

func SetContainerRuntime added in v0.23.0

func SetContainerRuntime(cfg map[string]string, runtime string) map[string]string

SetContainerRuntime possibly sets the container runtime, if it hasn't already been specified by the extra-config option. It has a set of defaults known to work for a particular runtime.

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, featureGates string) ([]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

func NewUnversionedOption added in v0.23.0

func NewUnversionedOption(component, k, v string) VersionedExtraOption

NewUnversionedOption returns a VersionedExtraOption that applies to all versions.

Jump to

Keyboard shortcuts

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