kubeadm

package
v0.0.0-...-1a511a4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// HostnameLookup uses the instance metadata service to lookup its own hostname.
	HostnameLookup = "{{ ds.meta_data.hostname }}"

	// ContainerdSocket is the expected path to containerd socket.
	ContainerdSocket = "/var/run/containerd/containerd.sock"

	// APIServerBindPort is the default port for the kube-apiserver to bind to.
	APIServerBindPort = 6443

	// CloudProvider is the name of the cloud provider passed to various
	// kubernetes components.
	CloudProvider = "external"
)

Variables

This section is empty.

Functions

func ConfigurationToYAML

func ConfigurationToYAML(obj runtime.Object) (string, error)

ConfigurationToYAML converts a kubeadm configuration type to its YAML representation.

func GetCodecs

func GetCodecs() serializer.CodecFactory

GetCodecs returns a type that can be used to deserialize most kubeadm configuration types.

func GetControlplaneInitScript

func GetControlplaneInitScript() string

func GetControlplaneJoinScript

func GetControlplaneJoinScript() string

func GetKubeProxyCodecs

func GetKubeProxyCodecs() serializer.CodecFactory

func GetNodeJoinScript

func GetNodeJoinScript() string

func KubeProxyConfigurationToYAML

func KubeProxyConfigurationToYAML(obj runtime.Object) (string, error)

func SetClusterConfigurationOverrides

func SetClusterConfigurationOverrides(cluster ICluster, base *kubeadmv1beta1.ClusterConfiguration, interalIP, eIP string) (*kubeadmv1beta1.ClusterConfiguration, error)

SetClusterConfigurationOverrides will modify the supplied configuration with certain values

func SetControlPlaneJoinConfigurationOverrides

func SetControlPlaneJoinConfigurationOverrides(base *kubeadmv1beta1.JoinConfiguration, localIP string) *kubeadmv1beta1.JoinConfiguration

SetControlPlaneJoinConfigurationOverrides user input for kubeadm join configuration during a control plane join action.

func SetDefaultClusterConfiguration

func SetDefaultClusterConfiguration(cluster ICluster, base *kubeadmv1beta1.ClusterConfiguration, internalIP, eIP string) (*kubeadmv1beta1.ClusterConfiguration, error)

SetDefaultClusterConfiguration sets default dynamic values without overriding user specified values.

func SetInitConfigurationOverrides

func SetInitConfigurationOverrides(base *kubeadmv1beta1.InitConfiguration, hostName string) *kubeadmv1beta1.InitConfiguration

SetInitConfigurationOverrides overrides user input on particular fields for the kubeadm InitConfiguration.

func SetJoinNodeConfigurationOverrides

func SetJoinNodeConfigurationOverrides(
	caCertHash, bootstrapToken, apiServerEndpoint string,
	base *kubeadmv1beta1.JoinConfiguration,
	hostName string,
) *kubeadmv1beta1.JoinConfiguration

SetJoinNodeConfigurationOverrides overrides user input for certain fields of the kubeadm JoinConfiguration during a worker node join.

func SetKubeProxyConfigurationOverrides

func SetKubeProxyConfigurationOverrides(base *kubeproxyconfigv1alpha1.KubeProxyConfiguration, clusterCIDR string) *kubeproxyconfigv1alpha1.KubeProxyConfiguration

SetKubeProxyConfigurationOverrides overrides user input on particular fields for the kubeadm KubeProxyConfiguration

Types

type ICluster

type ICluster interface {
	GetAPIServerPublicEndpoint() (string, error)
	GetAPIServerInternalEndpoint() (string, error)
	GetName() string
	GetServiceDomain() string
	GetServiceCidr() string
	GetVersion() string
	GetPodCidr() string
}

Jump to

Keyboard shortcuts

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