Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 18m (x145 over 3h19m) default-scheduler 0/2 nodes are available: 1 node(s) didn't match Pod's node affinity, 1 node(s) had taint {node-role.kubernetes.io/controlplane: true}, that the pod didn't tolerate.
请为我提供一个在工作服务器上部署pod的解决方案。
您的pod似乎没有被安排到节点。你能试着运行下面的命令吗?
kubectl taint nodes <name-node-master> node-role.kubernetes.io/control-plane:NoSchedule-
要查找您的节点名称,请使用
kubectl get nodes