S Andrew
S Andrew

Reputation: 7198

Setting up kubernetes on linux raspberry

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:

  1. Installed docker
  2. Disabled swapfile
  3. Added cgroup in /boot/cmdline.txt
  4. Installed kubernetes in both the pi.
  5. Initiated the master and worker then joined the master node.

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.4

My 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.?

Upvotes: 0

Views: 168

Answers (2)

anna carolina
anna carolina

Reputation: 209

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

Upvotes: 1

Suresh Vishnoi
Suresh Vishnoi

Reputation: 18373

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 nodes

get the comprehensive info

 kubectl describe nodes NODE_NAME

by the above system information, we can verify and validate the status of kubelet docker and kube-proxy

Upvotes: 1

Related Questions