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

How to disable KlipperLB from Nginx Ingress? #7

Closed
tekspacedemo opened this issue Oct 28, 2020 · 7 comments
Closed

How to disable KlipperLB from Nginx Ingress? #7

tekspacedemo opened this issue Oct 28, 2020 · 7 comments

Comments

@tekspacedemo
Copy link

Hi, I installed Nginx Ingress by using helm chart to my k3s cluster. It enabled KlipperLB on all of my node and I would like to disable it so that I can use ingress with my external LB. Please let me know what info I need to provide to able to get further assistance?

@TheYkk
Copy link

TheYkk commented Oct 29, 2020

--disable servicelb

@tekspacedemo
Copy link
Author

Thanks @TheYkk for your response. So I guess I need to apply that arg at the cluster setup step? Is there a way to disable that after cluster is setup? I dont want to tear down the cluster and rebuild it.

@TheYkk
Copy link

TheYkk commented Oct 29, 2020

You can add this flag to your cluster setup script. In k3s upgrading, the cluster will not break your cluster

@tekspacedemo
Copy link
Author

Okay. So you are saying, if I execute below command on my master node that is running the cluster, it will simply disable klipperlb and not break the cluster?

curl -sfL https://get.k3s.io | sh -s - server --disable servicelb

@TheYkk
Copy link

TheYkk commented Oct 29, 2020

It will be brek your load balancers but, you can fix by installing other load balancer solutions.

If you setup cluster with curl -sfL https://get.k3s.io | sh it's not gonna break the cluster but if you applied some flags on cluster setup you have to write again as flag

@tekspacedemo
Copy link
Author

tekspacedemo commented Oct 29, 2020

Okay. I will give that a try. As long as it will disables below controllers I should be fine. Thanks for looking into this.

svclb-home-ingress-nginx-controller-2nh5x        2/2     Running   0          18h
svclb-home-ingress-nginx-controller-ft9x9        2/2     Running   0          18h
svclb-home-ingress-nginx-controller-ggvkk        2/2     Running   0          18h

@dweomer dweomer closed this as completed Nov 18, 2020
@rthamrin
Copy link

rthamrin commented Oct 23, 2021

  1. if you start installing k3s and need to disable the Traefik and Klipper.

# curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --disable=traefik --disable=servicelb" sh –

  1. the second way is to go to edit your file using nano or vim
    #/etc/systemd/system/k3s.service

int the last line, you can add

ExecStart=/usr/local/bin/k3s \
    server \
        '--disable=traefik' \
        '--disable=servicelb' \
  1. you may also try this, edit #/etc/systemd/system/k3s.service
    and add in the last line
    ExecStart=/usr/local/bin/k3s server --disable servicelb --disable traefik

after you add the line, don't forget to restart the daemon of the K3S

systemctl daemon-reload
systemctl restart k3s.service

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

4 participants