I just followed everything as mentioned in the below link
https://www.edureka.co/blog/install-kubernetes-on-ubuntu
Not sure what went wrong my nodes are in pending state only.
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
kube-system calico-kube-controllers-6b48bc8d68-7mj7r 0/1 Pending 0 70m <none> <none> <none>
kube-system coredns-576cbf47c7-6tjh5 0/1 Pending 0 70m <none> <none> <none>
kube-system coredns-576cbf47c7-9khk2 0/1 Pending 0 70m <none> <none> <none>
kube-system etcd-kmaster 0/1 Pending 0 1s <none> kmaster <none>
kube-system kube-apiserver-kmaster 0/1 Pending 0 1s <none> kmaster <none>
kube-system kube-controller-manager-kmaster 0/1 Pending 0 1s <none> kmaster <none>
kube-system kube-proxy-qgw78 1/1 NodeLost 1 75m 172.19.19.176 kmaster <none>
kube-system kube-scheduler-kmaster 0/1 Pending 0 1s <none> kmaster <none>
kube-system kubernetes-dashboard-77fd78f978-zd5xq 0/1 Pending 0 67m <none> <none> <none>
I have given enough resources as well
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
OutOfDisk False Tue, 30 Oct 2018 17:32:35 +0530 Tue, 30 Oct 2018 16:22:09 +0530 KubeletHasSufficientDisk kubelet has sufficient disk space available
MemoryPressure False Tue, 30 Oct 2018 17:32:35 +0530 Tue, 30 Oct 2018 16:22:09 +0530 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure False Tue, 30 Oct 2018 17:32:35 +0530 Tue, 30 Oct 2018 16:22:09 +0530 KubeletHasNoDiskPressure kubelet has no disk pressure
PIDPressure False Tue, 30 Oct 2018 17:32:35 +0530 Tue, 30 Oct 2018 16:22:09 +0530 KubeletHasSufficientPID kubelet has sufficient PID available
Ready False Tue, 30 Oct 2018 17:32:35 +0530 Tue, 30 Oct 2018 16:22:09 +0530 KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
Regards,
Shyam