Update 'prepare_k8s.yml'

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

@ -66,4 +66,12 @@
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 2
debug: true
pull-image-on-create: false
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