mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
fix: provide an option to ignore sysctl errors about unknown keys (#12514)
* fix: provide an option to ignore sysctl errors about unknown keys * fix: rename sysctl_ignoreerrors and remove useless var definitions
This commit is contained in:
@@ -28,6 +28,7 @@ kubelet_flexvolumes_plugins_dir: /usr/libexec/kubernetes/kubelet-plugins/volume/
|
||||
# for hostnet pods and infra needs
|
||||
resolveconf_cloud_init_conf: /etc/resolveconf_cloud_init.conf
|
||||
|
||||
# sysctl_file_path to add sysctl conf to
|
||||
sysctl_file_path: "/etc/sysctl.d/99-sysctl.conf"
|
||||
|
||||
# Minimal memory requirement in MB for safety checks
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
value: "1"
|
||||
state: present
|
||||
reload: true
|
||||
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
|
||||
when: ipv4_stack | bool
|
||||
|
||||
- name: Enable ipv6 forwarding
|
||||
@@ -85,6 +86,7 @@
|
||||
value: "1"
|
||||
state: present
|
||||
reload: true
|
||||
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
|
||||
when: ipv6_stack | bool
|
||||
|
||||
- name: Check if we need to set fs.may_detach_mounts
|
||||
@@ -103,6 +105,7 @@
|
||||
value: 1
|
||||
state: present
|
||||
reload: true
|
||||
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
|
||||
when: fs_may_detach_mounts.stat.exists | d(false)
|
||||
|
||||
- name: Ensure kubelet expected parameters are set
|
||||
@@ -112,6 +115,7 @@
|
||||
value: "{{ item.value }}"
|
||||
state: present
|
||||
reload: true
|
||||
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
|
||||
with_items:
|
||||
- { name: kernel.keys.root_maxbytes, value: 25000000 }
|
||||
- { name: kernel.keys.root_maxkeys, value: 1000000 }
|
||||
@@ -135,6 +139,7 @@
|
||||
value: "{{ item.value }}"
|
||||
state: present
|
||||
reload: true
|
||||
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
|
||||
with_items: "{{ additional_sysctl }}"
|
||||
|
||||
- name: Disable fapolicyd service
|
||||
|
||||
Reference in New Issue
Block a user