Update 'prepare_k8s.yml'

master
alecsandru 9 months ago
parent 0216272668
commit 45b4028ffc
  1. 8
      prepare_k8s.yml

@ -67,3 +67,11 @@
timeout: 2
debug: true
pull-image-on-create: false
- name: Disable SWAP since kubernetes can't work with swap enabled (1/2)
shell: |
swapoff -a
- name: Disable SWAP in fstab since kubernetes can't work with swap enabled (2/2)
replace:
path: /etc/fstab
regexp: '^([^#].*?\sswap\s+sw\s+.*)$'
replace: '# \1'
Loading…
Cancel
Save