参考文章:k8s基本概念-配置调度策略之(Taints-and-Tolerations)
https://blog.51cto.com/nosmoking/2097380
问题现象:新创建的rc,查看对应的pod一直处于Pending状态
[root@master contos7文件]# kubectl get pods
NAME READY STATUS RESTARTS AGE
mysql-phrqz 1/1 Running 0 30m
myweb-qvjr4 0/1 Pending 0 29s
查看详情发现:1 node(s) had taints that the pod didn't tolerate.
===>Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
===>node.kubernetes.io/unreachable:NoExecute for 300s
[root@master contos7文件]# kubectl describe pod myweb-qvjr4
Name: myweb-qvjr4
Namespace: default
Priority: 0
PriorityClassName: <none>
Node: <none>
Labels: app=myweb
Annotations: <none>
Status: Pending
IP: