Skip to content
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

Cannot disable servicelb in cluster, reinstalls randomly #6442

Closed
vavallee opened this issue Nov 4, 2022 · 2 comments
Closed

Cannot disable servicelb in cluster, reinstalls randomly #6442

vavallee opened this issue Nov 4, 2022 · 2 comments

Comments

@vavallee
Copy link

vavallee commented Nov 4, 2022

Environmental Info:
K3s Version:
k3s version v1.23.10+k3s1 (826b949)
go version go1.17.5

Node(s) CPU architecture, OS, and Version:
Linux k8s1 5.15.0-1017-raspi #19-Ubuntu SMP PREEMPT Fri Oct 14 08:22:47 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
and
Linux k8s5i 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Cluster Configuration:
6 node cluster, 3 are raspberry pis, 3 are lenovo intel machines
3 are masters, 3 are agents

Describe the bug:
in all of my nodes systemd has --disable traefik --disable servicelb

When I first set this, I rebooted all the nodes with this option and servicelb pods disappeared. Suddenly about 3 weeks later some of my services were not working properly. When I looked at the pods, all the servicelb pods had started again.

How can I completely disable servicelb?

Steps To Reproduce:
Installed 1 node as master and 2 nodes as agents. Later I added 3 more nodes and installed those as agents.
A bit later I switched two of those nodes to master with startup like this. I also did an init-cluster on one startup on the first node.

ExecStart=/usr/local/bin/k3s \
    server \
        '--server' \
        ' --disable traefik --disable servicelb' \
	'https://192.168.1.151:6443' \
  • Installed K3s:

Expected behavior:
servicelb not running
Actual behavior:
servicelb still starts, seemigly randomly

Additional context / logs:

@brandond
Copy link
Member

brandond commented Nov 4, 2022

Make sure you have the flags set properly on all your servers. Additionally, your arguments are super mangled - you have two --disable flags between the server flag and the server value. The should look something like this:

ExecStart=/usr/local/bin/k3s \
    server \
        '--server' \
        'https://192.168.1.151:6443' \
        ' --disable' \
        'traefik' \
        '--disable' \
        'servicelb'

or

ExecStart=/usr/local/bin/k3s \
    server \
        '--server=https://192.168.1.151:6443' \
        ' --disable=traefik,servicelb'

@vavallee
Copy link
Author

vavallee commented Nov 4, 2022

Thank you so much, this has been driving me crazy, and breaking my loadbalancers. it works so far!

@vavallee vavallee closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants