Can't portforward: "get access denied for user on "XXXX":v1/pods:portforward"
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
- k9s
- Shift+F
- Local Port: 8090
- OK
- Error
Expected behavior Portforward being made.
Screenshots
Versions (please complete the following information):
- OS: macOS 15.4.1 (24E263)
- K9s: v0.50.6
- K8s: v1.31.7-eks-bcf3d70
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?
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.
I've created a PR to revert the change: https://github.com/derailed/k9s/pull/3346
This issue is stale because it has been open for 30 days with no activity.