Skip to content

Commit

Permalink
adjust vm.max_map_count
Browse files Browse the repository at this point in the history
  • Loading branch information
strobelight committed Mar 22, 2024
1 parent 6ab20f6 commit 5220dc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker-k3s-multiarch-rootful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ provision:
#!/bin/sh
sed -i 's/host.lima.internal.*/host.lima.internal host.docker.internal/' /etc/hosts
- mode: system
# disable ipv6
# sysctl changes
script: |
#!/bin/bash
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
vm.max_map_count=262144
EOF
- mode: system
script: |
Expand Down
4 changes: 3 additions & 1 deletion docker-k3s-multiarch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ provision:
#!/bin/sh
sed -i 's/host.lima.internal.*/host.lima.internal host.docker.internal/' /etc/hosts
- mode: system
# disable ipv6
# sysctl changes
script: |
#!/bin/bash
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
vm.max_map_count=262144
EOF
- mode: system
script: |
Expand Down

0 comments on commit 5220dc4

Please sign in to comment.