k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Can't portforward: "get access denied for user on "XXXX":v1/pods:portforward"

Open Andres-Nunez-BA opened this issue 7 months ago • 4 comments




Describe the bug I keep getting get access denied for user on "XXXX":v1/pods:portforward whenever I try to do a portforward.

To Reproduce

  1. k9s
  2. Shift+F
  3. Local Port: 8090
  4. OK
  5. Error

Expected behavior Portforward being made.

Screenshots Image

Versions (please complete the following information):

  • OS: macOS 15.4.1 (24E263)
  • K9s: v0.50.6
  • K8s: v1.31.7-eks-bcf3d70

Andres-Nunez-BA avatar May 13 '25 15:05 Andres-Nunez-BA

Port forwarding seems to be working fine for me on version 0.50.6.

However, it's possible there are some edge cases where it doesn't behave as expected. Could this be related to the change introduced in this commit?

uozalp avatar May 13 '25 17:05 uozalp

Port forwarding seems to be working fine for me on version 0.50.6.

However, it's possible there are some edge cases where it doesn't behave as expected. Could this be related to the change introduced in this commit?

It's definitely version 0.50.6 that's causing the issue — I decided to downgrade to 0.50.5 and port forwarding worked perfectly.

Image Image

Andres-Nunez-BA avatar May 13 '25 17:05 Andres-Nunez-BA

I've created a PR to revert the change: https://github.com/derailed/k9s/pull/3346

uozalp avatar May 13 '25 18:05 uozalp

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 17 '25 02:06 github-actions[bot]