mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 20:29:18 +03:00
Add manage swap on the worker node
This commit is contained in:
10
roles/kubernetes/preinstall/tasks/swapoff.yml
Normal file
10
roles/kubernetes/preinstall/tasks/swapoff.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Remove swapfile from /etc/fstab
|
||||
mount:
|
||||
name: swap
|
||||
fstype: swap
|
||||
state: absent
|
||||
|
||||
- name: Disable swap
|
||||
command: swapoff -a
|
||||
when: ansible_swaptotal_mb > 0
|
||||
Reference in New Issue
Block a user