Comments (6)
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.
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.
If somebody has a PR I can run a test against some hosts.
from ansible-role-kubernetes.
+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.
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.
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)
- Configure Flannel networking tasks fails on Ubuntu 20.04 HOT 6
- Can't install any K8s version other than 1.20
- No kubeconfig in ~/.kube HOT 5
- Execution issue with kubernetes version HOT 5
- Role failing on play "Configure Calico networking" HOT 3
- Fail to install on fresh OS HOT 11
- Upgrade to new kubernetes versions HOT 3
- APT ignores version pinning on Ubuntu HOT 4
- CI Currently broken - kubelet won't start in GitHub Actions HOT 18
- Support JoinConfiguration HOT 2
- kube-flannel-rbac.yml not found HOT 3
- Put a hold on packages HOT 2
- Could not find the requested service kubelet: host HOT 2
- User "system:anonymous" cannot get resource "configmaps" in API group HOT 4
- `kubernetes-join-command` not delegated to any host except master HOT 6
- Ubuntu 22.04 needs to Forward IPv4 and letting iptables see bridged traffic HOT 4
- memory, br_netfilter and iptables issues when installing on 2023-05-03 Raspbian 64-bit HOT 4
- Changes to the location of Linux packages for Kubernetes HOT 1
- ansible-lint and molecule/default HOT 1
- Each virtual machine has the same hostname after installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-kubernetes.