Documentation ¶
Index ¶
- func ApplyPatchesToConfig(cfg *kubeadmapi.ClusterConfiguration, patchesDir string) error
- func CreateConfigMap(cfg *kubeadmapi.ClusterConfiguration, client clientset.Interface) error
- func GetNodeNameAndHostname(cfg *kubeadmapi.NodeRegistrationOptions) (string, string, error)
- func TryRestartKubelet()
- func TryStartKubelet()
- func TryStopKubelet()
- func WriteConfigToDisk(cfg *kubeadmapi.ClusterConfiguration, kubeletDir, patchesDir string, ...) error
- func WriteKubeletDynamicEnvFile(cfg *kubeadmapi.ClusterConfiguration, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPatchesToConfig ¶ added in v1.30.4
func ApplyPatchesToConfig(cfg *kubeadmapi.ClusterConfiguration, patchesDir string) error
ApplyPatchesToConfig applies the patches located in patchesDir to the KubeletConfiguration stored in the ClusterConfiguration.ComponentConfigs map.
func CreateConfigMap ¶ added in v1.11.0
func CreateConfigMap(cfg *kubeadmapi.ClusterConfiguration, client clientset.Interface) error
CreateConfigMap creates a ConfigMap with the generic kubelet configuration. Used at "kubeadm init" and "kubeadm upgrade" time
func GetNodeNameAndHostname ¶ added in v1.18.0
func GetNodeNameAndHostname(cfg *kubeadmapi.NodeRegistrationOptions) (string, string, error)
GetNodeNameAndHostname obtains the name for this Node using the following precedence (from lower to higher): - actual hostname - NodeRegistrationOptions.Name (same as "--node-name" passed to "kubeadm init/join") - "hostname-override" flag in NodeRegistrationOptions.KubeletExtraArgs It also returns the hostname or an error if getting the hostname failed.
func TryRestartKubelet ¶ added in v1.17.0
func TryRestartKubelet()
TryRestartKubelet attempts to restart the kubelet service
func TryStartKubelet ¶ added in v1.12.0
func TryStartKubelet()
TryStartKubelet attempts to bring up kubelet service
func TryStopKubelet ¶ added in v1.12.0
func TryStopKubelet()
TryStopKubelet attempts to bring down the kubelet service momentarily
func WriteConfigToDisk ¶ added in v1.11.0
func WriteConfigToDisk(cfg *kubeadmapi.ClusterConfiguration, kubeletDir, patchesDir string, output io.Writer) error
WriteConfigToDisk writes the kubelet config object down to a file Used at "kubeadm init" and "kubeadm upgrade" time
func WriteKubeletDynamicEnvFile ¶ added in v1.11.0
func WriteKubeletDynamicEnvFile(cfg *kubeadmapi.ClusterConfiguration, nodeReg *kubeadmapi.NodeRegistrationOptions, registerTaintsUsingFlags bool, kubeletDir string) error
WriteKubeletDynamicEnvFile writes an environment file with dynamic flags to the kubelet. Used at "kubeadm init" and "kubeadm join" time.
Types ¶
This section is empty.