Skip to content
Snippets Groups Projects
Unverified Commit 10e54eca authored by mohsen's avatar mohsen Committed by GitHub
Browse files

make better condition for applying nf_conntrack kernel tweak (#6267)

* MINOR: Check kernel version before enable modprobe nf_conntrack

* CLEANUP: no more need to ignore error of this task

* MINOR: Fixing yaml and ansible lint error - remove trailling-space
parent a8740c6e
No related branches found
No related tags found
No related merge requests found
...@@ -108,8 +108,9 @@ ...@@ -108,8 +108,9 @@
name: nf_conntrack_ipv4 name: nf_conntrack_ipv4
state: present state: present
register: enable_nf_conntrack register: enable_nf_conntrack
ignore_errors: yes when:
when: kube_proxy_mode == 'ipvs' - ansible_kernel.split('.')[0:3] | join('.') < '4.19'
- kube_proxy_mode == 'ipvs'
tags: tags:
- kube-proxy - kube-proxy
...@@ -118,7 +119,7 @@ ...@@ -118,7 +119,7 @@
name: nf_conntrack name: nf_conntrack
state: present state: present
when: when:
- enable_nf_conntrack is failed - ansible_kernel.split('.')[0:3] | join('.') >= '4.19'
- kube_proxy_mode == 'ipvs' - kube_proxy_mode == 'ipvs'
tags: tags:
- kube-proxy - kube-proxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment