Comments (2)
After the log line "initialized join client successfully", the second controller attempts to make an HTTP request to obtain certificates and key material from the first controller. My educated guess is that this request is blocking on network I/O. The load balancer is probably not responding about 50% of the time because it is balancing the load between the two controllers. (I assume the load balancer is using a round-robin or random load balancing strategy). When the load balancer tries to connect to the secondary controller, it fails because the secondary controller cannot respond to a join request from itself. It's not even listening on the join port yet. So I think the LB is trying to reach the secondary controller, keeping the HTTP request open and not responding yet. K0s retries join requests up to ten times. However, it doesn't define any timeouts, so it probably gets stuck on the first request.
Can you maybe check the configuration of your load balancer? Does it have some backend health checks defined? What are the frontend and backend timeouts?
from k0s.
Thankyou for taking the time to respond. My hunch is that the issue lies with the load balancer. Yesterday I tore down the LB and backend hosts and recreated them. Since then, I have done many reset/apply actions and I haven't seen the issue occur. This time the 'client IP preservation' setting is disabled. I had previously disabled it, but still saw the issue occur (or so I thought), so I'm confused why it seems to be consistently working now...
However, it doesn't define any timeouts, so it probably gets stuck on the first request.
Would you be willing to add timeouts for read/write? I think this would be good in terms of best practice and to aid in debugging these kinds of unusual scenarios.
from k0s.
Related Issues (20)
- Sanitize component model HOT 2
- Allow specifying labels for the `helm.k0sproject.io/v1beta1` objects HOT 3
- [Manifest-Deployer] allow to use soft links in `/var/lib/k0s/manifests`
- Bump Kubernetes to v1.31 HOT 2
- kube-router failed to start when installation with default settings HOT 3
- controller cant join etcd cluster - starts isolated HOT 2
- kubevirt VM pod stuck in terminating state HOT 5
- Backport OCI Bundle watcher HOT 7
- Remove pinning from outdated k0s-imported OCI images HOT 4
- Autopilot with controller+worker roles fails to update HOT 2
- Specify resolvers for coredns HOT 5
- `k0s kubeconfig` should support OIDC HOT 1
- konnectivity floods the log with "Failed to get a backend" err="No agent available" on normal reboot HOT 9
- Panic: concurrent map read and map write HOT 1
- Add SLES to OS testing matrix
- Backport bump Helm Library version HOT 4
- Manual upgrade failing because of helm timeout type HOT 3
- Not accurate documentation for nvidia-container-runtime HOT 3
- Update to containerd 2.0 HOT 2
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 k0s.