Error install kubelet

2/23/2018

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

enter image description here

-- Thol Voleak
kubernetes

1 Answer

2/23/2018

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
-- mon
Source: StackOverflow