Coder Social home page Coder Social logo

Comments (4)

dobesv avatar dobesv commented on July 17, 2024 2

After looking into this more, it's a problem with the way that kubernetes does port-forward. port-forward currently is tied to a specific port on a specific pod, so if that pod is killed, the port-forward becomes useless.

It would be really nice if kube-forwarder periodically checked whether the target pod was still valid and restarted the port-forward if necessary.

from kube-forwarder.

dobesv avatar dobesv commented on July 17, 2024

The problem is that the forwarder connects to a specific pod IP address instead of to the service. If that pod goes away it won't connect to a different one automatically. I'm not 100% sure why it does it this way. Perhaps it's a limitation of kubernetes or they just haven't gotten around to making it better.

from kube-forwarder.

dindurthy avatar dindurthy commented on July 17, 2024

I misunderstood the README:

Auto-reconnect

Kube Forwarder watches for connection status and always tries reconnect on failure

to imply exactly this feature. Would be REALLY nice to have this. It may be worth updating the README to clarify what the Auto-reconnect actually means.

from kube-forwarder.

dobesv avatar dobesv commented on July 17, 2024

Yeah, I think it's possible to have it periodically update which pod it connects to, currently it picks one when you start forwarding. Just having a timer that restarts each forward every X seconds might be good enough.

from kube-forwarder.

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.