I am trying to setup kubernetes cluster on raspberry pi. I have two pi, one of them will work as master and other one will work as worker.
I am not using Hypriot Os instead using Raspbian stretch image. I followed these tutorial link1 link2. Link1 recommend to use Hypriot Os but I continued with Raspbian Stretch. This is what I have done till now on both master and worker:
Till now everything seems to working ok. But while running the command kubectl get nodes, I get:
NAME STATUS ROLES AGE VERSION
raspberrypi NotReady master 1h v1.8.4
worker NotReady <none> 40m v1.8.4My first question is why it shows worker as NotReady even my worker pi is on and running.
Next question is how can I access the cluster from the its dashboard. How to install dashboard.?
It is showing you status as NotReady because you have not installed any networking driver for it. Weave is suitable for networking in case of Raspberry pi. You can install it by using below commands:
kubectl apply -f https://git.io/weave-kube-1.6
Have a look at these tutorials:
https://www.youtube.com/watch?v=zc0sbXwONM4&list=PLWw98q-Xe7iHSVH-AE9hDGBFtC9rFxcME
Issues have been resolved in the comment section.
for debugging k8s Nodes in the cluster, we use the following command to get precise information
get the list of nodes
kubectl get nodesget the comprehensive info
kubectl describe nodes NODE_NAMEby the above system information, we can verify and validate the status of kubelet docker and kube-proxy