I am trying to set up Kubernetes cluster on Azure ubuntu-16.04 LTS VM. I installed docker 17.03.2~ce-0~ubuntu-xenial version on VM and followed all steps mentioned on kubernetes official website but while running kubeadm command on my master node I am getting error.
My init command:
kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=<ip>
Error Message:
[init] using Kubernetes version: v1.11.3
[preflight] running pre-flight checks
[preflight] Some fatal errors occurred:
[ERROR KubeletVersion]: the kubelet version is higher than the control
plane version. This is not a supported version skew and may lead to a
malfunctional cluster. Kubelet version: "1.12.0-rc.1" Control plane version:
"1.11.3"
[preflight] If you know what you are doing, you can make a check non-fatal
with `--ignore-preflight-errors=...`
You have a newer version of the
kubelet
-v1.12.0-rc.1
than that ofkubeadm
-v1.11.3
. You can try:Downgrading the kubelet to match your kubeadm version
On Ubuntu run:
apt-get -y install kubelet=1.11.3-00
The other way around, upgrade kubeadm to match that of the kubelet
On Ubuntu run:
apt-get -y install kubeadm=1.12.0-rc.1-00
--ignore-preflight-errors
like it says, but watch if you see any other errors that may make your installation not work.Hope it helps.