/ Kubernetes

#Kubernetes failed to run Kubelet: running with swap on is not supported, please disable swap

问题背景

安装完Kubernetes以后,测试了一下kubelet,遇到这个错误:

failed to run Kubelet: running with swap on is not supported, please disable swap

解决方法

最简单的解决方法是: 禁用swap

Ubuntu下,在命令行里执行:

sudo swapoff -a