1
0
forked from k-space/kube

enable xfs quotas on worker node rootfs

This commit is contained in:
Erki Aas 2024-07-27 19:41:57 +03:00
parent 2bb13ef505
commit e89edca340

View File

@ -1,4 +1,25 @@
--- ---
- name: Reconfigure Kubernetes worker nodes
hosts:
- storage
- workers
tasks:
- name: Configure grub defaults
copy:
dest: "/etc/default/grub"
content: |
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=countdown
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash memhp_default_state=online"
GRUB_CMDLINE_LINUX="memhp_default_state=online rootflags=pquota"
register: grub_defaults
- name: Load grub defaults
ansible.builtin.shell: update-grub
when: grub_defaults.changed
- name: Reconfigure Kubernetes nodes - name: Reconfigure Kubernetes nodes
hosts: kubernetes hosts: kubernetes
vars: vars: