Installing a Kubernetes 1.4 cluster on Hypriot 1.1.1 with kubeadm

It’s been a while since our last blog post. However, we are back and again working with Kubernetes on a daily basis. This blog post will show you how to set up a Kubernetes 1.4 cluster with HypriotOS 1.1.1 and the new kubeadm tool.

Prerequisites

A couple of Raspberry Pis (minimum two)

A switch to connect the Raspberry Pis

Cables for power and network

For this tutorial we used 4 Raspberry Pi 3 and a Macbook Pro.

Flashing the SD-cards

First, flash the SD cards with HypriotOS 1.1.1 using the Hypriot flash tool.

When the flash of the 4 sd-cards has completed, insert them into the 4 Raspberry Pis and power them up. Make sure you are able to contact the Pis by SSH’ing into them one by one. The default password for the pirate-user is: hypriot

Setting up the master

kubeadm init --pod-network-cidr=10.244.0.0/16

The --pod-network-cidr=10.244.0.0/16 is needed for flannel to be configured correctly. Flannel is at the moment the only overlay network that works with Raspberry Pis. When the command has finished, (which will take a couple of minues) the output will be similar to the following: