apis

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetInitDefaults

func SetInitDefaults(config *InitConfiguration)

SetInitDefaults sets defaults on the configuration used by init

func SetInitDynamicDefaults

func SetInitDynamicDefaults(config *InitConfiguration) error

SetInitDynamicDefaults sets defaults derived at runtime

func SetJoinDefaults

func SetJoinDefaults(config *JoinConfiguration)

SetJoinDefaults sets defaults on the configuration used by join

func SetMasterConfigurationNetworkingDefaultsWithNetworking

func SetMasterConfigurationNetworkingDefaultsWithNetworking(config *InitConfiguration)

SetMasterConfigurationNetworkingDefaultsWithNetworking sets defaults with values from the top-level network configuration

func SetNetworkingDefaults

func SetNetworkingDefaults(netConfig *Networking)

SetNetworkingDefaults sets defaults for the network configuration

func ValidateInit

func ValidateInit(config *InitConfiguration) []error

ValidateInit validates the configuration used by the init verb

Types

type InitConfiguration

type InitConfiguration struct {
	Networking          Networking                                      `json:"networking"`
	VIPConfiguration    VIPConfiguration                                `json:"vipConfiguration"`
	MasterConfiguration kubeadmv1alpha1.MasterConfiguration             `json:"masterConfiguration"`
	KubeProxy           *kubeproxyconfigv1alpha1.KubeProxyConfiguration `json:"kubeProxy"`
	Kubelet             *kubeletconfigv1beta1.KubeletConfiguration      `json:"kubelet"`
	NetworkBackend      map[string]string                               `json:"networkBackend"`
	KeepAlived          map[string]string                               `json:"keepAlived"`
}

InitConfiguration specifies the configuration used by the init command

type JoinConfiguration

type JoinConfiguration struct {
	Networking Networking                                 `json:"networking"`
	Kubelet    *kubeletconfigv1beta1.KubeletConfiguration `json:"kubelet"`
}

JoinConfiguration specifies the configuration used by the join command

type Networking

type Networking struct {
	// ServiceSubnet is the subnet used by k8s services. Defaults to "10.96.0.0/12".
	ServiceSubnet string `json:"serviceSubnet"`
	// PodSubnet is the subnet used by pods.
	PodSubnet string `json:"podSubnet"`
	// DNSDomain is the dns domain used by k8s services. Defaults to "cluster.local".
	DNSDomain string `json:"dnsDomain"`
}

Networking contains elements describing cluster's networking configuration

type VIPConfiguration

type VIPConfiguration struct {
	// The virtual IP.
	IP string `json:"ip"`
	// The virtual router ID. Must be in the range [0, 254]. Must be unique within
	// a single L2 network domain.
	RouterID int `json:"routerID"`
	// Network interface chosen to create the virtual IP. If it is not specified,
	// the interface of the default gateway is chosen.
	NetworkInterface string `json:"networkInterface"`
}

VIPConfiguration specifies the parameters used to provision a virtual IP which API servers advertise and accept requests on.

Jump to

Keyboard shortcuts

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