You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Holiday setup of a kubernetes cluster on arm based Broadcom 2837 SOC boards

Bare Metal Setup


Flash Raspian to all the SD cards

Enable ssh, wireless, rename host

 sudo nano /etc/wpa_supplicant//wpa_supplicant.conf


Docker Setup

curl -sSL https://get.docker.com | sh

sudo usermod -aG docker pi

Note: Docker 17.11.0-ce requires memory control groups - either downgrade to 17.09.0-ce or adjust /boot/cmdline.txt

pi@pi0:~ $ docker run hello-world
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: cgroups: memory cgroup not supported on this system: unknown.
ERRO[0007] error waiting for container: context canceled 
pi@pi0:~ $ docker version
Client:
 Version:      17.11.0-ce
 OS/Arch:      linux/arm
pi@pi0:~ $ sudo apt install docker-ce=17.09.0~ce-0~raspbian
pi@pi0:~ $ docker run hello-world
Hello from Docker!
pi@pi0:~ $ sudo nano /boot/cmdline.txt
pi@pi0:~ $ cat /boot/cmdline.txt 
# add to the end of first line: cgroup_enable=memory cgroup_memory=1
# reboot


Kubernetes Setup

http://blog.kubernetes.io/2015/12/creating-raspberry-pi-cluster-running.html

https://blog.alexellis.io/serverless-kubernetes-on-raspberry-pi/

https://gist.github.com/alexellis/fdbc90de7691a1b9edb545c17da2d975

https://blog.zhaw.ch/icclab/supporting-container-based-application-deployment-to-heterogeneous-hardware-using-rancher/



  • No labels