Navigation Menu
Navigation Menu
https://github.com/k3d-io/k3d/issues/186
[HELP] changing service-node-port-range from default brings cluster in “stopped” state #186
Closed
vldvasi opened this issue Feb 7, 2020 · 3 comments
Closed
[HELP] changing service-node-port-range from default brings cluster in “stopped” state #186
vldvasi opened this issue Feb 7, 2020 · 3 comments
Comments
](https://github.com/vldvasi)
###
vldvasi commented Feb 7, 2020 •
edited
](https://github.com/vldvasi) vldvasi added the bug label Feb 7, 2020
](https://github.com/iwilltry42)
Member
###
iwilltry42 commented Feb 10, 2020
Hi @vldvasi , thanks for opening this issue.
Fortunately, this is not a bug, but rather a misunderstanding in how the flags are being used.
With the command line that you used, you’ll get the following error log (see docker logs k3d-k3s-default-server): apiserver exited: bad flag syntax: ----service-node-port-range=20618-20828
-> --server-arg is a k3d flag which passes the parameter to the k3s server, so --kube-apiserver-arg='service-node-port-range=20618-20828' would be a single parameter for it to work.
Here’s the command line that works: k3d create --server-arg --kube-apiserver-arg='service-node-port-range=20618-20828'
](https://github.com/iwilltry42) iwilltry42 self-assigned this Feb 10, 2020
](https://github.com/iwilltry42)iwilltry42 added help not a bug labels Feb 10, 2020
](https://github.com/iwilltry42)iwilltry42 changed the title [BUG] changing service-node-port-range from default brings cluster in “stopped” state [HELP] changing service-node-port-range from default brings cluster in “stopped” state Feb 10, 2020
](https://github.com/vldvasi)
Author
###
vldvasi commented Feb 10, 2020
Thanks a million @iwilltry42, I confirm its working also if I found that if I pass parameters as below seem to be working:
k3d create --server-arg --kube-apiserver-arg --server-arg service-node-port-range=20618-20828
](https://github.com/vldvasi) vldvasi closed this as completed Feb 10, 2020
](https://github.com/iwilltry42)
Member
###
iwilltry42 commented Feb 10, 2020
Makes sense, since they’re just appended in k3d and passed on to k3s. It’s k3s that assumes that you’re not passing in the leading -- for flags passed on to the API-Server (same for kubelet, etc.).
Glad that it works now for you :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Assignees
](https://github.com/iwilltry42)iwilltry42
Labels
Projects
None yet
Milestone
No milestone
Development
No branches or pull requests
2 participants
](https://github.com/iwilltry42)
](https://github.com/vldvasi)
