0
votes

I used this tutorial to set up a kubernetes cluster on my Raspberry 3.

I followed the instructions until the setup of flannel by:

curl -sSL https://rawgit.com/coreos/flannel/v0.7.0/Documentation/kube-flannel.yml | sed "s/amd64/arm/g" | kubectl create -f -

I get the following error message on kubectl get po --all-namespaces:

kube-system etcd-node01 1/1 Running
0 34m

kube-system kube-apiserver-node01 1/1 Running
0 34m

kube-system kube-controller-manager-node01 1/1 Running
0 34m

kube-system kube-dns-279829092-x4dc4 0/3 rpc error: code = 2 desc = failed to start container "de9b2094dbada10a0b44df97d25bb629d6fbc96b8ddc0c060bed1d691a308b37": Error response from daemon: {"message":"cannot join network of a non running container: af8e15c6ad67a231b3637c66fab5d835a150da7385fc403efc0a32b8fb7aa165"}
15 39m

kube-system kube-flannel-ds-zk17g 1/2
CrashLoopBackOff
11 35m

kube-system kube-proxy-6zwtb 1/1 Running
0 37m

kube-system kube-proxy-wbmz2 1/1 Running
0 39m

kube-system kube-scheduler-node01 1/1 Running

Interestingly I have the same issue, installing kubernetes with flannel on my laptop with another tutorial.

Version details are here:

Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.3", GitCommit:"0480917b552be33e2dba47386e51decb1a211df6", GitTreeState:"clean", BuildDate:"2017-05-10T15:48:59Z", GoVersion:"go1.8rc2", Compiler:"gc", Platform:"linux/arm"}

Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.3", GitCommit:"0480917b552be33e2dba47386e51decb1a211df6", GitTreeState:"clean", BuildDate:"2017-05-10T15:38:08Z", GoVersion:"go1.8rc2", Compiler:"gc", Platform:"linux/arm"}

Any suggestions, that might help?

1

1 Answers

2
votes

I solved this issue by generating cluster-roles before setting up the pod network driver:

curl -sSL https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml | sed "s/amd64/arm/g" | kubectl create -f -

Then setting up the pod network driver by:

curl -sSL https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | sed "s/amd64/arm/g" | kubectl create -f -

Worked for me so far...