Skip to content

Commit

Permalink
re-enable ipv6 since it broke kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
strobelight committed Apr 22, 2024
1 parent 5220dc4 commit a69d620
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docker-k3s-multiarch-rootful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ provision:
# sysctl changes
script: |
#!/bin/bash
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
# NOTE: disabling ipv6 breaks kubernetes for some reason
# try disabling in Apple -> System Settings first
#sysctl -w net.ipv6.conf.all.disable_ipv6=1
#sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w vm.max_map_count=262144
cat <<-EOF >> /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
#net.ipv6.conf.all.disable_ipv6=1
#net.ipv6.conf.default.disable_ipv6=1
vm.max_map_count=262144
EOF
- mode: system
Expand Down
10 changes: 6 additions & 4 deletions docker-k3s-multiarch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ provision:
# sysctl changes
script: |
#!/bin/bash
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
# NOTE: disabling ipv6 breaks kubernetes for some reason
# try disabling in Apple -> System Settings first
#sysctl -w net.ipv6.conf.all.disable_ipv6=1
#sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w vm.max_map_count=262144
cat <<-EOF >> /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
#net.ipv6.conf.all.disable_ipv6=1
#net.ipv6.conf.default.disable_ipv6=1
vm.max_map_count=262144
EOF
- mode: system
Expand Down

0 comments on commit a69d620

Please sign in to comment.