k3s修改默认的node-port-range=30000-32767端口限制
报错如下:
provided port is not in the valid range. The range of valid ports is 30000-32767
修复方法:
systemctl stop k3s
vi /etc/systemd/system/k3s.service # 修改配置,保存并退出
systemctl daemon-reload
systemctl start k3s
配置文件修改如下,修改ExecStart后内容
ExecStart=/usr/local/bin/k3s \
server \
--kube-apiserver-arg service-node-port-range=1-65535
参考链接:k3s github issues