Port Range Configuration
The following methods are common practices and may vary depending on the system environment. If they do not work as expected, please refer to relevant documentation and troubleshooting solutions.
sudo nano /etc/sysctl.conf
- Add the following content to specify
net.ipv4.ip_local_port_range = 20000 50000
sudo sysctl -pto apply the changes
- Restart Docker service
sudo nano /etc/systemd/system/k3s.service
- Edit the
ExecStartin the following settings to specify
sudo systemctl daemon-reload
sudo systemctl restart k3s
We have not tried it yet. If anyone has succeeded, please feel free to submit a PR to add it.