2017-05-17 55 views
0

我用this tutorial建立kubernetes羣集上我的覆盆子3.Kubernetes上Rasperry裨KUBE絨布CrashLoopBackOff和KUBE DNS RPC錯誤代碼= 2

我隨後直到絨布由設置的說明:

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

我得到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

有趣的是,我有同樣的問題,用另一個教程在筆記本電腦上安裝kubernetes與法蘭絨。

版本詳情請看這裏:

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"}

任何建議,這可能幫助?

回答

2

我通過設置莢網絡驅動程序之前產生集羣的角色解決了這個問題:

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

然後通過設置莢網絡驅動程序:

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

爲我工作至今。 ..

相關問題