我正在尝试在装有Ubuntu 16.04 的笔记本电脑中使用 kubeadm 安装 kubernetes 。我禁用了交换,因为 kubelet 在交换时不起作用。我使用的命令是:
swapoff -a
我还注释掉了对 swap in 的引用/etc/fstab。
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 …Run Code Online (Sandbox Code Playgroud)