-
The Service "redis-service" is invalid: spec.ports[0].nodePort: Invalid value: 36379: provided port is not in the valid range. The range of valid ports is 30000-32767 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Check out https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver:
An easier choice would be to change the port in your Service spec. |
Beta Was this translation helpful? Give feedback.
-
还是自己找答案 |
Beta Was this translation helpful? Give feedback.
还是自己找答案
修改/etc/systemd/system/k3s.service文件
ExecStart=/usr/local/bin/k3s server --kube-apiserver-arg service-node-port-range=30000-39999
重启 systemctl restart k3s