初学kubernetes 问题解决(二)

问题一

今天安装了Kubenetes-dashboard,但是发现 有pod一直处于 ContainerCreating状态,使用kubectl describe pods/pords-name --namespace="kube-system"查看日志发现了错误,原来shinode节点pull 镜像时出现了timeout的问题,下载镜像解决了问题。但是此时手贱重启了服务器。

问题二

之后出现了The connection to the server xxx.xxx.xxx.xxx:6443 was refused - did you specify the right host or port?的问题。

解决方法

永久关闭swap区

sudo vi /etc/fstab
把Swap相关的行注释
sudo reboot

你可能感兴趣的:(Kubernetes,ubuntu,docker)