Code Monkey home page Code Monkey logo

Comments (6)

rdxmb avatar rdxmb commented on May 28, 2024

Line https://github.com/geerlingguy/ansible-role-kubernetes/blob/master/tasks/kubelet-setup.yml#L18 should be more explizitely, something like

kubelet_args_regexp: '^Environment=KUBELET_EXTRA_ARGS'

Actually I have deleted my damaged node and have little time, so I cannot create a PR nor run a test.

from ansible-role-kubernetes.

rdxmb avatar rdxmb commented on May 28, 2024

The problem is also, that the file /etc/default/kubelet is not longer installed by the ubuntu-package, so https://github.com/geerlingguy/ansible-role-kubernetes/blob/master/tasks/kubelet-setup.yml#L2-L5 does not work anymore.
kubernetes/release#654

from ansible-role-kubernetes.

rdxmb avatar rdxmb commented on May 28, 2024

If somebody has a PR I can run a test against some hosts.

from ansible-role-kubernetes.

nickmaccarthy avatar nickmaccarthy commented on May 28, 2024

+1 to this bug. This is also affecting me too. In my case the kubeadm init fails because we are missing Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" in the systemd file. I am running ubuntu 16.04 and trying to install kubernetes stable-1.13. What I did for now was turned the kubet-setup.yml tasks into a template that installs the kubelet service file in /etc/systemd and added a new handler to restart the systemd/kublet if it changes. If i can get some time I try to fix this in a better way and make a PR, but perhaps a template for the systemd kubelet service might be the best option after all?

from ansible-role-kubernetes.

rdxmb avatar rdxmb commented on May 28, 2024

I would not overwrite the systemd-unit if it is not really necessary. Instead, I would prefer the solution to create and use /etc/default/kubelet with this role - at least on Debian/Ubuntu-based systems.

As it is given in kubernetes/release#654 (comment) , the motivation for not installing the file with the debian-package anymore is: This file exists for users to customize.

So this is what the ansible-role does here: customizing.

Also, this should prevent any problems caused by changing the systemd-units by the maintainers - as we just had with docker in docker/for-linux#476

from ansible-role-kubernetes.

geerlingguy avatar geerlingguy commented on May 28, 2024

I believe this was partially fixed in #46 / #42. However I also have open #4 which is meant to use the newer config layout (this role was originally written in the 1.10 era).

Please follow / share on that issue for further improvements / changes from the env-var-based settings.

from ansible-role-kubernetes.

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.