-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k3s server --kube-apiserver-arg --service-node-port-range=30000-40000 #1261
Comments
You are calling the server daemon from the console... isn't your server already running via systemd? |
Related to #444 '--kube-apiserver-arg' 'service-node-port-range=1-65535' \ |
@Id2ndR How do you validate the apiserver argument is updated post adding the above in 'k3s.service'? |
You'll see it in the k3s log output. |
@brandond Thanks. I get below details alwaays from this command k3s server --log testlog.txt . time="2020-08-19T12:41:03.338058611-05:00" level=info msg="Starting k3s v1.18.6+k3s1 (6f56fa1)" Are there any other arggument should be passed to get complete log details? pls. suggest. |
This most likely means k3s is already running. Did you mean to edit the systemd unit arguments and restart it, instead of running another copy of it from the command line? |
I followed below steps and could see the updated arguments value set. BTW , where does kube-apiserver or kube-controller-manager configurations stored in K3S. How does K3S service understand the new argument values to consider whenever it is restarted? |
Seems like a bug ; Followed below steps
Pls. advise. |
Running k3s manually via the command-line with different options doesn't have anything to do with the the systemd unit configuration. You need to edit the actual unit to change the arguments that systemd starts the service with. Also, don't pass systemctl stop k3s
vi /etc/systemd/system/k3s.service # change your configuration, save and quit
systemctl daemon-reload
systemctl start k3s |
The text was updated successfully, but these errors were encountered: