Split up common/init.sls into kubernetes common/util.sls type of file - Switch out containerd for cri-o - add nftables - make the blocks consistent by using `-require:` appropriately Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
15 lines
341 B
Plaintext
15 lines
341 B
Plaintext
# swap off for k8s
|
|
kubernetes_swap_off:
|
|
cmd.run:
|
|
- name: swapoff -a
|
|
- unless: "grep -q '^[^#]* swap' /etc/fstab"
|
|
- stateful: False
|
|
|
|
kubernetes_fstab+no_swap:
|
|
cmd.run:
|
|
- name: swapoff -a
|
|
- pat: '^(\S+\s+none\s+swap\s+sw\s+0\s+0)$'
|
|
- repl: '#\1'
|
|
- stateful: False
|
|
- require:
|
|
- cmd: kubernetes_swap_off |