Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

--no-deploy traefik servicelb not respected #69

Closed
bbergshaven opened this issue May 5, 2019 · 12 comments
Closed

--no-deploy traefik servicelb not respected #69

bbergshaven opened this issue May 5, 2019 · 12 comments

Comments

@bbergshaven
Copy link

bbergshaven commented May 5, 2019

I'm having trouble disabling the auto deployment of traefik.
I have added:

k3os-8393 [/var/lib/rancher/k3os]$ cat config.yaml
k3os:
  k3s_args:
  - server
  - "--no-deploy traefik servicelb"

and deleted all the jobs/pods/services related to traefik, but still after 120minutes everything is recreated.

ps-ax gives the following:

 2007 ?        S      0:00 supervise-daemon k3s-service --start --pidfile /var/run/k3s-service.pid --respawn-delay 5 /sbin/k3s -- server --no-deploy traefik
 2009 ?        Ssl   96:56 /sbin/k3s server --no-deploy traefik

Any thoughts on what I can do to stop this from happing? I have to deploy my own LB and Ingress server to handle TLS, ACME etc..

@tfiduccia
Copy link
Contributor

@bbergshaven - You can accomplish this by turning it off on k3os installation

  1. Create a config.yaml that has
k3os:
  k3_args:
  - server
  - "--no-deploy traefik"
  1. On installation of k3os, either add it to the automated Installation (k3os.install.config_url = config.yaml) or you can add it manually through the setup steps. Once i did that, you will notice that traefik was not installed.
    image

@majkrzak
Copy link

majkrzak commented Sep 2, 2019

No matter what is set in the config.yaml is affecting traefik deployment. Also removing /var/lib/rancher/k3s/server/manifests/traefik.yaml does not help. Only way to keep is uninstalled is to remove everything except job.batch/helm-install-traefik otherwise it will be recreated.

Really, please fix it and document...

@majkrzak
Copy link

majkrzak commented Sep 2, 2019

@bbergshaven kubectl -n kube-system delete helmcharts traefik have to be also invoked to get rid of default traefik...

@davidhiendl
Copy link

I'm also experiencing this issue. If I only disable traefik it works but once you disable traefik and servicelb both are started.

Working:

--no-deploy traefik

Not working variants

--no-deploy traefik,servicelb
--no-deploy traefik servicelb
--no-deploy traefik --no-deploy servicelb

@davidnuzik
Copy link

davidnuzik commented Oct 21, 2019

A few days ago (in master) we added the ability to specify --no-deploy with comma delimited entries (2 or more entries). The next k3os release should include an updated k3s release with this ability. See k3s-io/k3s#851

@dweomer
Copy link
Contributor

dweomer commented Jan 4, 2020

On master (v0.8.0+) this is working for both

k3os:
  k3s_args:
  - "--no-deploy"
  - "traefik,servicelb"

and

k3os:
  k3s_args:
  - "--no-deploy=traefik,servicelb"

@ElanHasson
Copy link

neither of those work for me.

k3os:
        password: supersecure
        k3s_args:
                - server
                - "--no-deploy=traefik,servicelb"

is what worked for me. v0.10

@guiguan
Copy link

guiguan commented Apr 16, 2020

use --disable=traefik instead. --no-deploy is deprecated

@ElanHasson
Copy link

Where is this stuff even documented? I feel like there is only the code and the readme in the repo root.

Am I missing something?

@guiguan
Copy link

guiguan commented Apr 16, 2020

Where is this stuff even documented? I feel like there is only the code and the readme in the repo root.

Am I missing something?

Yes, their docs are very confusing. I got the info from k3s server -h. Then I found they did have this: https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/#kubernetes-components

@ElanHasson
Copy link

Thanks! I've seen the k3s docs, but it's difficult to discern the separation between k3os and k3s.

Very blended together, and unclear what is part of what.

consider:

k3os:
  k3s_args:

so k3s_args is a child of k3os? Why not it's own section, or a different file that is passed to k3s config? vs os?

Is my model of this broken :(

@kruton
Copy link

kruton commented May 6, 2021

Note that --no-deploy and --disable are slightly different. --disable will delete any file with that name, so make sure your custom traefik file is not named traefik.yaml or you will be confused as to why it doesn't exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants