8000 port forward cannot stay up · Issue #3351 · derailed/k9s · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

port forward cannot stay up #3351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue an 8000 d contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
masterkain opened this issue May 15, 2025 · 2 comments
Open

port forward cannot stay up #3351

masterkain opened this issue May 15, 2025 · 2 comments
Labels
no-repro question Further information is requested

Comments

@masterkain
Copy link
masterkain commented May 15, 2025

since some versions (I'm at 0.50.6 but I believe it started around 0.50) port forwards simply cannot stay up, they are getting deleted after few seconds most of the times.

I encountered this on both my machines.

I'm port porwarding a cnpg postgres service

Name:                     eeevp-db-cluster-rw
Namespace:                eeevp
Labels:                   cnpg.io/cluster=eeevp-db-cluster
Annotations:              cnpg.io/operatorVersion: 1.25.1
Selector:                 cnpg.io/cluster=eeevp-db-cluster,cnpg.io/instanceRole=primary
Type:                     ClusterIP
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       10.43.48.254
IPs:                      10.43.48.254
Port:                     postgres  5432/TCP
TargetPort:               5432/TCP
Endpoints:                10.42.0.104:5432
Session Affinity:         None
Internal Traffic Policy:  Cluster
Events:                   <none>

forwarding goes away as soon as I use the port (mapped to 5433 locally), say for a pg_dump operation.

😗 PortForward failed for eeevp/eeevp-db-cluster-1|postgres|5433:5432: lost connection to pod. Deleting!

@derailed
Copy link
Owner

@masterkain I can seem to repro this ;( I've left pf running all night, hitting the url every 10s, pf remained up.
Does this happen only on the pg pod or others too?

@derailed derailed added question Further information is requested no-repro labels May 18, 2025
@ZakShearman
Copy link
ZakShearman commented May 23, 2025

I'm experiencing this same issue, specifically when connecting to my CNPG Postgres pod - it doesn't occur with other pods.

I was on k9s version 0.40.10 initially, upgraded to 0.50.6 and the issue is still occurring.

I can create the port forward, perform 1 interaction with the database (e.g. refreshing database tables via datagrip), that succeeds but then the tunnel terminates immediately after with 😗 PortForward failed for immich/db-1|postgres|5432:5432: lost connection to pod. Deleting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-repro question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants
0