components

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 19 Imported by: 170

Documentation

Index

Constants

View Source
const (
	DefaultEtcd2Version = "2.2.1"

	//  1.11 originally recommended 3.2.18, but there was an advisory to update to 3.2.24
	DefaultEtcd3Version_1_11 = "3.2.24"

	DefaultEtcd3Version_1_13 = "3.2.24"

	DefaultEtcd3Version_1_14 = "3.3.10"
)
View Source
const DefaultBackupImage = "kopeio/etcd-backup:3.0.20190816"

Variables

This section is empty.

Functions

func GCETagForRole

func GCETagForRole(clusterName string, role kops.InstanceGroupRole) string

func Image

func Image(component string, clusterSpec *kops.ClusterSpec, assetsBuilder *assets.AssetBuilder) (string, error)

Image returns the docker image name for the specified component

func IsBaseURL

func IsBaseURL(kubernetesVersion string) bool

func KubernetesVersion

func KubernetesVersion(clusterSpec *kops.ClusterSpec) (*semver.Version, error)

KubernetesVersion parses the semver version of kubernetes, from the cluster spec Deprecated: prefer using OptionsContext.KubernetesVersion

func UsesKubenet

func UsesKubenet(clusterSpec *kops.ClusterSpec) (bool, error)

UsesKubenet returns true if our networking is derived from kubenet

func WellKnownServiceIP

func WellKnownServiceIP(clusterSpec *kops.ClusterSpec, id int) (net.IP, error)

Types

type DefaultsOptionsBuilder

type DefaultsOptionsBuilder struct {
	Context *OptionsContext
}

DefaultsOptionsBuilder adds default options. This should come first!

func (*DefaultsOptionsBuilder) BuildOptions

func (b *DefaultsOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for cluster options

type DockerOptionsBuilder

type DockerOptionsBuilder struct {
	*OptionsContext
}

DockerOptionsBuilder adds options for docker to the model

func (*DockerOptionsBuilder) BuildOptions

func (b *DockerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the default setting for docker daemon

type EtcdOptionsBuilder

type EtcdOptionsBuilder struct {
	*OptionsContext
}

EtcdOptionsBuilder adds options for etcd to the model

func (*EtcdOptionsBuilder) BuildOptions

func (b *EtcdOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the defaults for the etcd cluster model

type KubeAPIServerOptionsBuilder

type KubeAPIServerOptionsBuilder struct {
	*OptionsContext
}

KubeAPIServerOptionsBuilder adds options for the apiserver to the model

func (*KubeAPIServerOptionsBuilder) BuildOptions

func (b *KubeAPIServerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling in the default settings for the kube apiserver

type KubeControllerManagerOptionsBuilder

type KubeControllerManagerOptionsBuilder struct {
	Context *OptionsContext
}

KubeControllerManagerOptionsBuilder adds options for the kubernetes controller manager to the model.

func (*KubeControllerManagerOptionsBuilder) BuildOptions

func (b *KubeControllerManagerOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions generates the configurations used to create kubernetes controller manager manifest

type KubeDnsOptionsBuilder

type KubeDnsOptionsBuilder struct {
	Context *OptionsContext
}

KubeDnsOptionsBuilder adds options for kube-dns

func (*KubeDnsOptionsBuilder) BuildOptions

func (b *KubeDnsOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions fills in the kubedns model

type KubeProxyOptionsBuilder

type KubeProxyOptionsBuilder struct {
	Context *OptionsContext
}

KubeProxyOptionsBuilder adds options for kube-proxy to the model

func (*KubeProxyOptionsBuilder) BuildOptions

func (b *KubeProxyOptionsBuilder) BuildOptions(o interface{}) error

type KubeSchedulerOptionsBuilder

type KubeSchedulerOptionsBuilder struct {
	*OptionsContext
}

KubeSchedulerOptionsBuilder adds options for kube-scheduler to the model

func (*KubeSchedulerOptionsBuilder) BuildOptions

func (b *KubeSchedulerOptionsBuilder) BuildOptions(o interface{}) error

type KubeletOptionsBuilder

type KubeletOptionsBuilder struct {
	Context *OptionsContext
}

KubeletOptionsBuilder adds options for kubelets

func (*KubeletOptionsBuilder) BuildOptions

func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error

BuildOptions is responsible for filling the defaults for the kubelet

type NetworkingOptionsBuilder

type NetworkingOptionsBuilder struct {
	Context *OptionsContext
}

NetworkingOptionsBuilder adds options for the kubelet to the model

func (*NetworkingOptionsBuilder) BuildOptions

func (b *NetworkingOptionsBuilder) BuildOptions(o interface{}) error

type OptionsContext

type OptionsContext struct {
	ClusterName string

	KubernetesVersion semver.Version

	AssetBuilder *assets.AssetBuilder
}

OptionsContext is the context object for options builders

func (*OptionsContext) IsKubernetesGTE

func (c *OptionsContext) IsKubernetesGTE(version string) bool

func (*OptionsContext) IsKubernetesLT

func (c *OptionsContext) IsKubernetesLT(version string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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