Building a hybrid x86–64 and ARM Kubernetes Cluster

Carlos Eduardo
Jan 29 · 10 min read



Pine64 RockPro64
I might build a case to assemble the SBCs properly soon


$ docker container run — rm mplatform/mquery
* Manifest List: Yes
* Supported platforms:
- linux/amd64
- linux/arm
- linux/arm64
- linux/ppc64le
- linux/s390x

Preparing the nodes


Step-by-step manual setup

sudo apt-get update# Install SBC utility packagessudo apt install -y nfs-common less vim ack git build-essential iptables ipset pciutils lshw file iperf3 net-tools lsb-release# Fix ping permission
sudo chmod +s /bin/ping*
# Install Docker pre-requisitessudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
curl -fsSL | sudo apt-key add -echo “deb [arch=arm64] \
$(lsb_release -cs) stable” | \
sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install docker-ce=18.06.1~ce~3–0~debian
# Check if the interface MAC addresses does not conflict between boards
ip link
# Check if the board UUID and Machine-Id does not conflict between boards
sudo cat /sys/class/dmi/id/product_uuid
sudo cat /etc/machine-id
apt-get update && apt-get install -y apt-transport-https curl
curl -s | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb kubernetes-xenial main
apt-get update
apt-get install -y kubelet kubeadm kubectl
apt-mark hold kubelet kubeadm kubectl

Creating the Cluster

kubeadm join --token secret.verysecrettokk8s --discovery-token-ca-cert-hash sha256:a57508843e3a356303d87972288571064cbf215f4fba5cb502f9d8370ef5c354
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 “$(kubectl version | base64 | tr -d ‘\n’)&env.NO_MASQ_LOCAL=1”# Download the Weave Net tool to troubleshoot in case needed
sudo curl -L -o /usr/local/bin/weave
sudo chmod a+x /usr/local/bin/weave
kubectl taint nodes --all
- command:
- kube-apiserver
- --authorization-mode=Node,RBAC
- --feature-gates=TTLAfterFinished=true
NAME STATUS ROLES AGE VERSION LABELSk8s-armnode1 Ready <none> 4m18s v1.13.1,, Ready <none> 4m8s v1.13.1,, Ready master 10m v1.13.1,,,

Additional Cluster Tools

kubectl apply -f apply -f ./1-MetalLB/metallb-conf.yaml
cd 2-Traefik/
# Run all on the Master Nodesudo apt-get install nfs-kernel-server nfs-common
sudo systemctl enable nfs-kernel-server
sudo systemctl start nfs-kernel-server
sudo cat >> /etc/exports <<EOF
/data/kubernetes-storage/ 192.168.1.*(rw,sync,no_subtree_check,no_root_squash)
sudo exportfs -a
cd 3-NFS_Storage
kubectl apply -f *
cd 4-Dashboard
kubectl apply -f dashboard-admin-account.yaml
kubectl apply -f dashboard.yaml
kubectl apply -f dashboard-ingress.yaml
kubectl patch deployment kubernetes-dashboard -n kube-system — patch ‘{“spec”: {“template”: {“spec”: {“nodeSelector”: {“”: “arm64”}}}}}’
cd 5-Metrics-server
kubectl apply -f *
$ kubectl top nodesNAME         CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
k8s-master 1152m 19% 1311Mi 35%
k8s-node1 292m 4% 689Mi 18%
$ kubectl top podsNAME CPU(cores) MEMORY(bytes)
coredns-86c58d9df4-tk7g9 14m 11Mi
coredns-86c58d9df4-vp942 16m 11Mi
etcd-k8s-master 130m 132Mi
kube-apiserver-k8s-master 207m 423Mi
kube-controller-manager-k8s-master 170m 61Mi
kube-proxy-6xbsp 23m 20Mi
kube-proxy-7zxth 27m 15Mi
cd 6-Helm
cd 7-WeaveScope
kubectl apply -f .


Carlos Eduardo

Written by

Writing everything cloud and all the tech behind it. If you like my projects and would like to support me, check my Patreon on

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade