Comments (4)
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.
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.
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.
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)
- Is this repo maintained? HOT 21
- cannot forward ports on macbook pro m1 HOT 2
- BUG: Failed to connect to kubernetes: can't be fetched HOT 1
- [Feature request] VPN option
- how does this determine a forwarder is active?
- services don't respond to HTTP OPTION, forwarder fails
- Can you trigger a build with latest code ?
- [Question] Web Socket Support?
- Empty icon is shown in GNOME Shell Favorites panel and Window list HOT 1
- Select Listen Address on Windows HOT 1
- Update dependencies, enable security alerts & dependabot
- Flatpak distribution
- Running on Latest version of MacOS
- Forwarding not working but works manually - can you help ?
- Deployments list is not propagated in UI HOT 1
- Feature: Dark Mode
- [Enhancement-request] Add infinite retry to avoid connection drops
- kubectl not found
- DEAD REPO ? NEED HELP / NEW MAINTAINERS ? HOT 4
- Kube forwarder doesn't show anything, don't know why
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 kube-forwarder.