[CentOS-devel] Kubernetes support on ARM32

Fri Feb 23 09:19:50 UTC 2018
Trunet <trunet-centos at wsartori.com>

Hey, what's up! 

I finished building all needed packages to bring kubernetes to ARM. All of them were brought by simply copying src packages from CBS and doing minor or no changes at all. 

To my surprise, kubeadm ran perfectly fine, it got the correspondent arm image for each component. I went with weave for pod network layer, as it have network policy and ARM support. 

Manual changes, was to symlink all files under /opt/cni/bin into /usr/libexec/cni, otherwise the pods will not find the cni plugins and doesn't start (like kube-dns stuck at containercreating). And kubernetes-dashboard, you need to change tha image to be arm instead of amd64. 

Repo is here: 
https://armv7.dev.centos.org/repodir/community-kubernetes-testing/

=================================== 
# kubectl version 
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"archive", BuildDate:"2018-02-22T14:26:58Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/arm"} 
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/arm"} 
# kubectl cluster-info 
Kubernetes master is running at https://192.168.x.x:6443/
KubeDNS is running at https://192.168.x.x:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. 
=================================== 

Thanks for Arrfab for setting up the build environment and repository. 

Best regards, 
Wagner Sartori Junior