Skip to content

Commit

Permalink
Give br_netfilter a moment to load before sysctls
Browse files Browse the repository at this point in the history
  • Loading branch information
ananace committed Apr 12, 2023
1 parent 4e61f20 commit 5d79abc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/node/kubelet.pp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@

if $manage_kernel_modules {
Kmod::Load['br_netfilter']
~> exec { 'Wait for br_netfilter to load before kubelet sysctls':
command => 'sysctl -aNr net.bridge | grep nf-call-iptables',
path => $facts['path'],
refreshonly => true,
tries => 5,
try_sleep => 1,
}
-> [
Sysctl['net.bridge.bridge-nf-call-iptables'],
Sysctl['net.bridge.bridge-nf-call-ip6tables']
Expand Down

0 comments on commit 5d79abc

Please sign in to comment.