package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

ApplyPatchesToConfig applies the patches located in patchesDir to the KubeletConfiguration stored in the ClusterConfiguration.ComponentConfigs map.
CreateConfigMap creates a ConfigMap with the generic kubelet configuration.
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.
ReadKubeletDynamicEnvFile reads the kubelet dynamic environment flags file a slice of strings.
TryRestartKubelet attempts to restart the kubelet service.
TryStartKubelet attempts to bring up kubelet service.
TryStopKubelet attempts to bring down the kubelet service momentarily.
WriteConfigToDisk writes the kubelet config object down to a file Used at "kubeadm init" and "kubeadm upgrade" time.
WriteInstanceConfigToDisk writes the container runtime endpoint configuration to the instance configuration file in the specified kubelet directory.
WriteKubeletArgsToFile writes combined kubelet flags to KubeletEnvFile file in kubeletDir.
WriteKubeletDynamicEnvFile writes an environment file with dynamic flags to the kubelet.