#5 Fix default config error with kubelet
Merged 3 years ago by jchaloup. Opened 3 years ago by kasong.
rpms/ kasong/kubernetes fix-config  into  master

file modified
+1 -1
@@ -11,7 +11,7 @@ 

  KUBELET_HOSTNAME="--hostname-override=127.0.0.1"

  

  # Edit the kubelet.kubeconfig to have correct cluster server address

- KUBELET_KUBECONFIG=/etc/kubernetes/kubelet.kubeconfig

+ KUBELET_KUBECONFIG="--kubeconfig=/etc/kubernetes/kubelet.kubeconfig"

  

  # Add your own!

  KUBELET_ARGS="--cgroup-driver=systemd --fail-swap-on=false"

file modified
-1
@@ -14,7 +14,6 @@ 

  	    $KUBELET_ADDRESS \

  	    $KUBELET_PORT \

  	    $KUBELET_HOSTNAME \

- 	    $KUBE_ALLOW_PRIV \

  	    $KUBELET_ARGS

  Restart=on-failure

  KillMode=process

The kubelet config will get overrided by kubeadm, and kubelet package itself usually won't work out of box without changing the config, but no reason to keep an error in the default config. Now kubelet service by default can start and try connect to the default apiserver address.

Pull-Request has been merged by jchaloup

3 years ago