目录
1、遇到问题
2、问题解决
1、遇到问题
sudo kubectl get pods -A
sudo kubectl describe pods coredns-b96499967-q5lzw -n kube-system
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 10m default-scheduler 0/1 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/disk-pressure: }. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
Warning FailedScheduling 4m56s default-scheduler 0/1 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/disk-pressure: }. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
2、问题解决
输出结果显示由于节点内存不足,该容器无法被调度。
df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.4G 3.1G 110M 97% /
devtmpfs 3.8G 8.0K 3.8G 1% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 3.8G 41M 3.8G 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
tmpfs 769M 8.0K 769M 1% /run/user/1000
tmpfs 769M 0 769M 0% /run/user/0
tmpfs 769M 4.0K 769M 1% /run/user/998
解决方法:增加容量。
https://fanjufei.blog.csdn.net/article/details/123517885https://fanjufei.blog.csdn.net/article/details/123517885