Skip to content

Commit

Permalink
Failures caused by circumvention of the loading order
Browse files Browse the repository at this point in the history
  • Loading branch information
muicoder committed Nov 10, 2023
1 parent ad21f06 commit 25117f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 6 additions & 3 deletions k3s/scripts/k3s-pre-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Open ipvs
# First modprobe
cat <<EOF | xargs modprobe
bridge
ip_vs
overlay
EOF
# Open ipvs
cat <<EOF | xargs modprobe
ip_vs_rr
ip_vs_wrr
ip_vs_sh
EOF
# 1.20 need open br_netfilter
cat <<EOF | xargs modprobe
br_netfilter
bridge
overlay
EOF
# Kernel 4.19 has rebranded nf_conntrack_ipv4 to nf_conntrack
if ! modprobe -- nf_conntrack >/dev/null 2>&1; then
Expand Down
7 changes: 5 additions & 2 deletions k8s/scripts/kubelet-pre-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Open ipvs
# First modprobe
cat <<EOF | xargs modprobe
bridge
ip_vs
EOF
# Open ipvs
cat <<EOF | xargs modprobe
ip_vs_rr
ip_vs_wrr
ip_vs_sh
EOF
# 1.20 need open br_netfilter
cat <<EOF | xargs modprobe
br_netfilter
bridge
EOF
# Kernel 4.19 has rebranded nf_conntrack_ipv4 to nf_conntrack
if ! modprobe -- nf_conntrack >/dev/null 2>&1; then
Expand Down

0 comments on commit 25117f8

Please sign in to comment.