错误信息:
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