Coder Social home page Coder Social logo

Comments (4)

brandond avatar brandond commented on June 18, 2024

Yeah, some of those things can technically be disabled, but will break other things if they are, so we don't document them. For example:

  • disabling rolebindings will break most of the k3s built-in controllers.
  • disabling ccm will break the built-in cloud controller.
  • disabling runtimes will remove the runtimeclasses for all autodetected runtimes.
  • disabling individual metrics-server addons (aggregated-metrics-reader, and so on) will break metrics-server, which is split across 7 different add-ons for historical reasons.

from docs.

jandubois avatar jandubois commented on June 18, 2024

but will break other things if they are, so we don't document them.

I understand, but maybe there should still be a list of reserved names. Or the advise should recommend prefixing additional manifests with some custom prefix?

I noticed this because I was creating a runtimes.yaml and then found that k3s was just overwriting it (which doesn't make any sense if you specify the --container-runtime-endpoint or --docker options, but whatever).

It's not a big deal, as I wouldn't have checked the documentation until after I ran into problems anyways. 😄

Feel free to close if you think this is not worth the trouble.

from docs.

brandond avatar brandond commented on June 18, 2024

No I think you are correct that we should document this. There are also some nuances of how disable works - note that --disable=metrics-server works because the addon manifests are in a directory named metrics-server, which is not exactly how we document things working.

A lot of this is stuff that was thrown together early on and we have avoided changing to try to prevent breakage on upgrades; it's certainly not ideal.

from docs.

jandubois avatar jandubois commented on June 18, 2024

There are also some nuances of how disable works

That's why I like the SERVICE.yaml.skip mechanism. You just touch the file, and either the k3s versions knows about SERVICE and skips it, or it simply ignores the file.

No need to worry if --disable=SERVICE will fail in older k3s versions because maybe --disable wasn't supported yet, or maybe it validated that SERVICE was a known service, to catch typos etc. Worst case is that it will kubectl apply the file as a manifest, which should be a no-op because the file is empty.

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.