Documentation ¶
Index ¶
- Constants
- func GCETagForRole(clusterName string, role kops.InstanceGroupRole) string
- func Image(component string, clusterSpec *kops.ClusterSpec, ...) (string, error)
- func IsBaseURL(kubernetesVersion string) bool
- func UsesCNI(networking *kops.NetworkingSpec) bool
- func UsesKubenet(networking *kops.NetworkingSpec) bool
- func WellKnownServiceIP(clusterSpec *kops.ClusterSpec, id int) (net.IP, error)
- type CiliumOptionsBuilder
- type ClusterAutoscalerOptionsBuilder
- type ContainerdOptionsBuilder
- type DefaultsOptionsBuilder
- type DiscoveryOptionsBuilder
- type DockerOptionsBuilder
- type EtcdOptionsBuilder
- type KubeAPIServerOptionsBuilder
- type KubeControllerManagerOptionsBuilder
- type KubeDnsOptionsBuilder
- type KubeProxyOptionsBuilder
- type KubeSchedulerOptionsBuilder
- type KubeletOptionsBuilder
- type NetworkingOptionsBuilder
- type NodeTerminationHandlerOptionsBuilder
- type OpenStackOptionsBulder
- type OptionsContext
Constants ¶
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" DefaultEtcd3Version_1_17 = "3.4.3" DefaultEtcd3Version_1_19 = "3.4.13" )
const DefaultBackupImage = "kopeio/etcd-backup:3.0.20201117"
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 UsesCNI ¶ added in v1.18.0
func UsesCNI(networking *kops.NetworkingSpec) bool
UsesCNI returns true if the networking provider is a CNI plugin
func UsesKubenet ¶
func UsesKubenet(networking *kops.NetworkingSpec) bool
UsesKubenet returns true if our networking is derived from kubenet
func WellKnownServiceIP ¶
Types ¶
type CiliumOptionsBuilder ¶ added in v1.19.0
type CiliumOptionsBuilder struct {
Context *OptionsContext
}
CiliumOptionsBuilder adds options for the cilium to the model
func (*CiliumOptionsBuilder) BuildOptions ¶ added in v1.19.0
func (b *CiliumOptionsBuilder) BuildOptions(o interface{}) error
type ClusterAutoscalerOptionsBuilder ¶ added in v1.19.0
type ClusterAutoscalerOptionsBuilder struct {
*OptionsContext
}
ClusterAutoscalerOptionsBuilder adds options for cluster autoscaler to the model
func (*ClusterAutoscalerOptionsBuilder) BuildOptions ¶ added in v1.19.0
func (b *ClusterAutoscalerOptionsBuilder) BuildOptions(o interface{}) error
type ContainerdOptionsBuilder ¶ added in v1.18.0
type ContainerdOptionsBuilder struct {
*OptionsContext
}
ContainerdOptionsBuilder adds options for containerd to the model
func (*ContainerdOptionsBuilder) BuildOptions ¶ added in v1.18.0
func (b *ContainerdOptionsBuilder) BuildOptions(o interface{}) error
BuildOptions is responsible for filling in the default setting for containerd daemon
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 DiscoveryOptionsBuilder ¶ added in v1.19.0
type DiscoveryOptionsBuilder struct {
*OptionsContext
}
DiscoveryOptionsBuilder adds options for identity discovery to the model (mostly kube-apiserver)
func (*DiscoveryOptionsBuilder) BuildOptions ¶ added in v1.19.0
func (b *DiscoveryOptionsBuilder) BuildOptions(o interface{}) error
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 {
*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 {
*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 NodeTerminationHandlerOptionsBuilder ¶ added in v1.19.0
type NodeTerminationHandlerOptionsBuilder struct {
*OptionsContext
}
NodeTerminationHandlerOptionsBuilder adds options for the node termination handler to the model.
func (*NodeTerminationHandlerOptionsBuilder) BuildOptions ¶ added in v1.19.0
func (b *NodeTerminationHandlerOptionsBuilder) BuildOptions(o interface{}) error
type OpenStackOptionsBulder ¶ added in v1.19.0
type OpenStackOptionsBulder struct {
Context *OptionsContext
}
OpenStackOptionsBulder adds options for OpenStack to the model
func (*OpenStackOptionsBulder) BuildOptions ¶ added in v1.19.0
func (b *OpenStackOptionsBulder) 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