위치 :
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
root@nevido home]# more 10-kubeadm.conf
# 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"
Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs"
# 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/sysconfig/kubelet
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS $KUBELET_CGROUP_ARGS
systemctl daemon-reload
systemctl restart kubele
'나는 노동자 > QnA' 카테고리의 다른 글
npm install 설치시 unable_to_verify_left (0) | 2018.09.18 |
---|---|
no kind "Deployment" is registered for version "apps/v1" (0) | 2018.07.31 |
R install_tensorflow() virtualenvs python 에러시 (0) | 2018.06.19 |
pytorch jupyter notebook 실행시 OSError: [Errno 99] Cannot assign requested address (0) | 2018.06.15 |
kubeadm init 시 ERROR Swap]: running with swap on is not supported (0) | 2018.06.01 |