Comments (8)
@pmav99 - yeah, in the case of swap I usually use geerlingguy.swap
to configure it and don't want this role to manage that aspect as well.
from ansible-role-kubernetes.
I have not had this issue, but I'm always running the playbook against at least the master (which is where the command comes from) and one node.
This role currently doesn't work that well if you're running it against individual hosts and not also the master, for the issue you've mentioned in the OP.
from ansible-role-kubernetes.
Same problem here. Any ideas ?
from ansible-role-kubernetes.
I figured it out.
I was running one playbook per server, which couldn't work because this role must be run on all the servers in just ONE TIME. Reason why is that I was using Terraform and running Ansible with https://github.com/radekg/terraform-provisioner-ansible.
from ansible-role-kubernetes.
I get the same error, even though I run a single playbook on all the hosts.
from ansible-role-kubernetes.
OK I think I figured this out.
The VM template I was using had a swapfile. As a result kubelet was constantly restarting because I had not added "--fail-swap-on=false"
and consequently #28 was triggered. Due to the silent failure, the play moved on but then kubernetes_join_command
was never being defined (or perhaps more accurately, kubeadm token create
never wrote anything to stdout
; I haven't tested this though).
Perhaps it would be a good idea to add an explicit check for swap but then again you might want to keep this more lightweight.
from ansible-role-kubernetes.
Thank you @geerlingguy
I agree that a kubernetes role should definitely not configure swap. That being said, explicitly checking if /proc/swaps
has any entries might still make sense
from ansible-role-kubernetes.
For now I'll leave it as is. The kubelet output should always be consulted in the case of a failure to initialize or join nodes, as it usually has the answer pretty clearly logged somewhere (journalctl -xue kubelet
).
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.