apis

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 3 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 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"`
}

InitConfiguration specifies the configuration used by the init command

type JoinConfiguration

type JoinConfiguration struct {
	Networking Networking `json:"networking"`
}

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