package kubelet
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/kubelet"
Index ¶
- func CreateConfigMap(cfg *kubeletconfig.KubeletConfiguration, k8sVersionStr string, client clientset.Interface) error
- func DownloadConfig(client clientset.Interface, kubeletVersion *version.Version, kubeletDir string) error
- func EnableDynamicConfigForNode(client clientset.Interface, nodeName string, kubeletVersion *version.Version) error
- func TryStartKubelet()
- func TryStopKubelet()
- func WriteConfigToDisk(kubeletConfig *kubeletconfig.KubeletConfiguration, kubeletDir string) error
- func WriteKubeletDynamicEnvFile(cfg *kubeadmapi.ClusterConfiguration, nodeReg *kubeadmapi.NodeRegistrationOptions, registerTaintsUsingFlags bool, kubeletDir string) error
Functions ¶
func CreateConfigMap ¶
func CreateConfigMap(cfg *kubeletconfig.KubeletConfiguration, k8sVersionStr string, client clientset.Interface) error
CreateConfigMap creates a ConfigMap with the generic kubelet configuration. Used at "kubeadm init" and "kubeadm upgrade" time
func DownloadConfig ¶
func DownloadConfig(client clientset.Interface, kubeletVersion *version.Version, kubeletDir string) error
DownloadConfig downloads the kubelet configuration from a ConfigMap and writes it to disk. Used at "kubeadm join" time
func EnableDynamicConfigForNode ¶
func EnableDynamicConfigForNode(client clientset.Interface, nodeName string, kubeletVersion *version.Version) error
EnableDynamicConfigForNode updates the Node's ConfigSource to enable Dynamic Kubelet Configuration, depending on what version the kubelet is Used at "kubeadm init", "kubeadm join" and "kubeadm upgrade" time
func TryStartKubelet ¶
func TryStartKubelet()
TryStartKubelet attempts to bring up kubelet service
func TryStopKubelet ¶
func TryStopKubelet()
TryStopKubelet attempts to bring down the kubelet service momentarily
func WriteConfigToDisk ¶
func WriteConfigToDisk(kubeletConfig *kubeletconfig.KubeletConfiguration, kubeletDir string) error
WriteConfigToDisk writes the kubelet config object down to a file Used at "kubeadm init" and "kubeadm upgrade" time
func WriteKubeletDynamicEnvFile ¶
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.
Source Files ¶
config.go dynamic.go flags.go kubelet.go
- Version
- v1.14.2-beta.0
- Published
- Apr 8, 2019
- Platform
- js/wasm
- Imports
- 25 packages
- Last checked
- 1 hour ago –
Tools for package owners.