k8s使用本地镜像
# 查看报错
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 89s default-scheduler Successfully assigned / nginx-644f4b48d9-6trwg to master
Normal SandboxChanged 85s (x2 over 87s) kubelet, master Pod sandbox changed, it will be killed and re-created.
Warning ErrImageNeverPull 1s (x11 over 87s) kubelet, master Container image " nginx" is not present with pull policy of Never
Warning Failed 1s (x11 over 87s) kubelet, master Error: ErrImageNeverPull
[root@master ~]#
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
解决方法: k8S使用本地镜像一定记得在各节点都需要上传镜像!!!