2016-10-05 96 views
2

嘗試使用weave-net解決問題的幾個選項(How to fix weave-net CrashLoopBackOff for the second node?),我決定嘗試印花布而不是織網。 kubernetes的文檔告訴我只需要一個或另一個。命令(按照文件在這裏https://github.com/projectcalico/calico-containers/tree/master/docs/cni/kubernetes/manifests/kubeadm)失敗:如何修復kubernetes集羣的calico.yaml?

[email protected]:~$ sudo kubectl create -f https://github.com/projectcalico/calico-containers/blob/master/docs/cni/kubernetes/manifests/kubeadm/calico.yaml 
yaml: line 6: mapping values are not allowed in this context 

我做錯了嗎?它是已知的問題嗎?我如何解決/解決方法呢?

回答

2

您需要引用在命令原始YAML文件,而不是完整的GitHub的HTML文檔:

kubectl create -f https://raw.githubusercontent.com/projectcalico/calico-containers/master/docs/cni/kubernetes/manifests/kubeadm/calico.yaml 
+0

哦..當然,明白了......我怎麼會想念它:) – Andrew

0

只需更換原始數據URL的HTML URL,它會工作。