ONAP on ARM Cortex-A53
see http://wiki.obrienlabs.cloud/display/DEV/Raspberry+PI
As part of OPNFV integration we need to validate running ONAP on ARM processor cores. My only experience with ARM is during iOS development or on Broadcom chips. We will run on the Broadcom chips to start. Note that this is pure experimentation - in that the granularity of the v3 boards is only 1Gb - which will not run most of our pods properly.
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
Debian Bootstrap
enable wireless, add WPA region