使用rancher運行鏡像時報以下錯誤
0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
是因為默認kubernetes默認不讓pod部署到master節點,但是我在測試環境只有一個節點也是master節點,需要允許master節點部署pod
kubectl taint nodes --all node-role.kubernetes.io/master-
如果想要禁止,則執行以下命令
kubectl taint nodes k8s node-role.kubernetes.io/master=true:NoSchedule