Skip to content

testing/kubernetes: fix initd & add support for kubeadm

Dave requested to merge xphoniex/aports:fix-kubelet-service into master
  • kubelet service can not start properly because pid folder is missing, thus I make sure it exists in start_pre() block in /etc/init.d/kubelet

  • kubelet can be started either using --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf or --kubeconfig=/etc/kubernetes/kubelet.conf but the former flag was missing in /etc/conf.d/kubelet thus not working with kubeadm, a popular tool for creating clusters

  • and the final fix is sourcing /var/lib/kubelet/kubeadm-flags.env in /etc/init.d/kubelet so we can append KUBELET_KUBEADM_ARGS when starting kubelet

Edited by Dave

Merge request reports