Created
August 23, 2019 09:12
-
-
Save eohtake/a156216c7874a1699d74b2adda9f2e79 to your computer and use it in GitHub Desktop.
/etc/default/kubelet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is loaded from /etc/systemd/system/kubelet.service.d/10-kubeadm.conf if file /etc/default/kubelet is present. | |
KUBELET_EXTRA_ARGS='--cloud-provider=vsphere --cloud-config=/etc/kubernetes/vsphere.conf' | |
# EXAMPLE: | |
# Note: This dropin only works with kubeadm and kubelet v1.11+ | |
[Service] | |
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf" | |
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" | |
# This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically | |
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env | |
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use | |
# the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file. | |
EnvironmentFile=-/etc/default/kubelet ############# < HERE!! | |
ExecStart= | |
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS ##<<<<< THIS! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment