Instructions and scripts I used to help install kubernetes on raspberry pi 3.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Getting Kubernetes on Raspberry Pi

These instructions were taken from various sources. Note that this will get a base setup installed using HypriotOS as the linux install, which is arm, not arm64. The current configuration will use kubernetes 1.8 versions. Some packages such as heapster and kubernetes-dashboard are currently having issues on arm.

Image setup

curl -O$(uname -s)/flash
chmod +x flash
flash -n kmaster-01 hypriotos-rpi-v1.5.0.img  # Flashing img to sdcard. Name = kmaster-01

Then reset the password on the node, add in your ssh key, etc.

Master/node setup

ssh pirate@kmaster-01
passwd # old password hypriot
mkdir .ssh && chmod 700 .ssh && cd .ssh
echo "<your ssh key>" > authorized_keys
chmod 600 authorized_keys
git clone
sudo ./kubeOnPi/

The node will reboot.

Setting up kubernetes on the master

sudo kubeadm init --config kubeOnPi/kubeadm.yaml  #Yaml from kubeadm-workshop
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f
# On node, execute kubeadm join from kubeadmin init output

curl -sSL | kubectl create -f -
curl -sSL | sed "s/amd64/arm/g" | kubectl create -f -

kubectl --namespace kube-system get svc,deployment,rc,rs,pods,nodes  # Check for everything running

Node cleanup:

sudo ./kubeOnPi/

Note that I get an error that brctl is not installed. Its cool.

This cleanup was taken from here: