I have a problem after I install finished, Try to run kubelet version
got an error like that error: failed to run Kubelet: Running with swap on is not supported, please disable swap! or set --fail-swap-on flag to false. /proc/swaps contained
. I have disabled it but still got error the same
Ansible
- name: swap - remove current swaps from fstab
lineinfile:
dest: /etc/fstab
regexp: '^/[\S]+\s+none\s+swap '
state: absent
- name: Restart server
command: /sbin/shutdown -r 1
async: 0
poll: 0
ignore_errors: true
- pause:
prompt: "The system has restarted to complete disabling swap (otherwise error with kubeadm)..."
minutes: 1