package kubelet
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/kubelet"
Index ¶
- func CreateConfigMap(cfg *kubeadmapi.MasterConfiguration, client clientset.Interface) error
- func DownloadConfig(kubeletKubeConfig string, kubeletVersion *version.Version) error
- func EnableDynamicConfigForNode(client clientset.Interface, nodeName string, kubeletVersion *version.Version) error
- func GetLocalNodeTLSBootstrappedClient() (clientset.Interface, error)
- func WriteConfigToDisk(kubeletConfig *kubeletconfigv1beta1.KubeletConfiguration) error
- func WriteKubeletDynamicEnvFile(nodeRegOpts *kubeadmapi.NodeRegistrationOptions, registerTaintsUsingFlags bool) error
Functions ¶
func CreateConfigMap ¶
func CreateConfigMap(cfg *kubeadmapi.MasterConfiguration, client clientset.Interface) error
CreateConfigMap creates a ConfigMap with the generic kubelet configuration. Used at "kubeadm init" and "kubeadm upgrade" time
func DownloadConfig ¶
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 This func is ONLY run if the user enables the `DynamicKubeletConfig` feature gate, which is by default off
func GetLocalNodeTLSBootstrappedClient ¶
GetLocalNodeTLSBootstrappedClient waits for the kubelet to perform the TLS bootstrap and then creates a client from config file /etc/kubernetes/kubelet.conf
func WriteConfigToDisk ¶
func WriteConfigToDisk(kubeletConfig *kubeletconfigv1beta1.KubeletConfiguration) error
WriteConfigToDisk writes the kubelet config object down to a file Used at "kubeadm init" and "kubeadm upgrade" time
func WriteKubeletDynamicEnvFile ¶
func WriteKubeletDynamicEnvFile(nodeRegOpts *kubeadmapi.NodeRegistrationOptions, registerTaintsUsingFlags bool) error
WriteKubeletDynamicEnvFile writes a environment file with dynamic flags to the kubelet. Used at "kubeadm init" and "kubeadm join" time.
Source Files ¶
config.go dynamic.go flags.go
- Version
- v1.11.0-beta.1
- Published
- May 31, 2018
- Platform
- linux/amd64
- Imports
- 23 packages
- Last checked
- 31 minutes ago –
Tools for package owners.