Update 'prepare_k8s.yml'

This commit is contained in:
2024-05-03 21:05:44 +00:00
parent 0216272668
commit 45b4028ffc

View File

@@ -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'