kube-controller-manager & kube-scheduler in CrashLoopBackoff Error in kubernetes
I have reproduced the steps you listed on a cloud VM and managed to make it work fine.
Got few ideas that might help:
Be sure to meet all the prerequisites listed here
Install the most recent version of Docker following the guide from here(chose the proper OS that you use)
Install kubeadm useing the commands below:
apt-get update && apt-get install -y apt-transport-https curl curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - cat <<EOF >/etc/apt/sources.list.d/kubernetes.list deb https://apt.kubernetes.io/ kubernetes-xenial main EOF apt-get update apt-get install -y kubelet kubeadm kubectl apt-mark hold kubelet kubeadm kubectl
Make sure you got the latest version of kubeadm by executing:
apt-get update && apt-get upgrade
Make sure you use the proper arguments alongside
kubeadm init
Don't forget to run:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
after kubeadm init
finishes (these commands are also part of the kubeadm init output).
- Finally apply the.yaml files you listed in your question.
Notice that by following above steps you will have kubectl version
, kubelet --version
and kubectl get no -A
all in v1.14.3 and not v1.14.1 like you showed, which might be the case.
I hope it helps.