我正在尝试调出一个使用docker swarm成功运行的应用程序。我使用的是Kubernetes。我有一个主VirtualBox VM和一个节点,它们都是Ubuntu。使用正确设置的cpu、内存和限制的部署和服务(至少我认为是这样)。部署和服务成功,但kubectl describe pods始终将事件消息显示为
0/2 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 1 node(s) had taint {node.kubernetes.io/disk-pressure: }, that the pod didn't tolerate.
Warning FailedScheduling <unknown> default-scheduler 0/2 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 1 node(s) had taint {node.kubernetes.io/disk-pressure: }, that the pod didn't tolerate.我已经检查了一些东西,并增加了主VM (和工作节点,尽管问题只在master中显示)上的磁盘容量。使用kubeadm重置工作节点并重新部署。
也经历了类似的问题和建议。正在寻找建议,以解决Pod进入ready或脱离pending状态的问题
谢谢
部署有cpu 500m和限制"1",内存1G和限制2G
发布于 2020-07-31 13:46:58
在master/main上,如果你真的想在那里调度pod,你可以尝试去污染它。
$ kubectl taint nodes --all node-role.kubernetes.io/master-对于磁盘压力污染,如果您知道有足够的空间可以强制将其移除,则在您的控制平面中可能有来自具有相同名称的节点的前一个实例❓的内容:
$ kubectl taint nodes --all node.kubernetes.io/disk-pressure-请记住,这是由node controller自动添加的污点。
✌️
https://stackoverflow.com/questions/63182098
复制相似问题