Git Product home page Git Product logo

Comments (2)

brandond avatar brandond commented on May 24, 2024

K3s servers require a stable, static IP address. You might be able to configure a dummy interface, and use that interface's address as your --node-ip?

For laptops with changing network, you might look at Rancher Desktop, which includes k3s inside a virtual node with isolated networking.

from k3s.

abstractalchemist avatar abstractalchemist commented on May 24, 2024

Honestly I don't think this is an answer; this seems like a bug to me. I'm not sure if this will change anything, but I've also pinned the IP of wired NIC on my laptop on my private laptop so it's always the same IP. I understand if the problem were switching between networks ( such as my private and work networks, for example ), AND if the error showed any attempt to connect to a different address ( one that was part of the private network I'm a part of ), but this error shows the connect attempt to a IP that is clearly part of the pod CIDR, which never changes ( the IP of the api-server from inside the cluster? ).

Also, I'm not sure if anyone else is having this issue, but I was able to "solve" the problem by running the k3s-killall.sh script. It seems to kill enough things that seems to erase the problem. Not sure if I lose configuration or stored state information as a result of doing this, but at least it gets me back to being able to collect the logs of the pods again.

Also I feel that this not working runs counter to the mission of k3s being a small, light weight k8s install you can run in edge environments. Of course this is my own opinion and I am no expert in k8s nor fully understanding the entire mission of k8s or k3s.

from k3s.

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.