Documentation ¶
Index ¶
- func NewClusterConfiguration(params ClusterConfigurationParams) *kubeadmapi.ClusterConfiguration
- func NewInitConfiguration(params InitConfigurationParams) *kubeadmapi.InitConfiguration
- func NewJoinConfiguration(params JoinConfigurationParams) *kubeadmapi.JoinConfiguration
- type ClusterConfigurationParams
- type InitConfigurationParams
- type JoinConfigurationParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterConfiguration ¶
func NewClusterConfiguration(params ClusterConfigurationParams) *kubeadmapi.ClusterConfiguration
NewClusterConfiguration returns an ClusterConfiguration with appropriate defaults set for WKS.
func NewInitConfiguration ¶
func NewInitConfiguration(params InitConfigurationParams) *kubeadmapi.InitConfiguration
NewInitConfiguration returns an InitConfiguration with appropriate defaults set for WKS.
func NewJoinConfiguration ¶
func NewJoinConfiguration(params JoinConfigurationParams) *kubeadmapi.JoinConfiguration
NewJoinConfiguration returns an JoinConfiguration with appropriate defaults set for WKS.
Types ¶
type ClusterConfigurationParams ¶
type ClusterConfigurationParams struct { KubernetesVersion string NodeIPs []string // ControlPlaneEndpoint is the IP:port of the control plane load balancer. // Default: localhost:6443 // See also: https://kubernetes.io/docs/setup/independent/high-availability/#stacked-control-plane-and-etcd-nodes ControlPlaneEndpoint string // Used to configure kubeadm and kubelet with a cloud provider CloudProvider string ImageRepository string // AdditionalSANs can hold additional SANs to add to the API server certificate. AdditionalSANs []string // Additional arguments for auth, etc. ExtraArgs map[string]string // The IP range for services ServiceCIDRBlock string // PodCIDRBlock is the subnet used by pods. PodCIDRBlock string }
ClusterConfigurationParams groups the values to provide to NewClusterConfiguration to create a new ClusterConfiguration object.
type InitConfigurationParams ¶
type InitConfigurationParams struct { NodeName string // BootstrapToken is the token used by kubeadm init and kubeadm join to // safely form new clusters. BootstrapToken *kubeadmapi.BootstrapTokenString KubeletConfig config.KubeletConfig }
InitConfigurationParams groups the values to provide to NewInitConfiguration to create a new InitConfiguration object.
type JoinConfigurationParams ¶
type JoinConfigurationParams struct { // IsMaster should be true if this node should join as a master, or false otherwise. IsMaster bool // LocalMasterAdvertiseAddress is this master node's address. Default: localhost. LocalMasterAdvertiseAddress string // LocalMasterBindPort is this master node's port. Default: 6443. LocalMasterBindPort int32 // NodeIP is the IP that kubelet will use for this node. NodeIP string // APIServerEndpoint is the <IP/host>:<port> to use to connect to the API // server in order to join this node. APIServerEndpoint string // Token is used to ensure this node can safely join the Kubernetes cluster. Token string // CACertHash is used to ensure this node can safely join the Kubernetes cluster. CACertHash string }
JoinConfigurationParams groups the values to provide to NewJoinConfiguration to create a new JoinConfiguration object.
Click to show internal directories.
Click to hide internal directories.