-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and 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
"Forward port" is stuck pending when permissions are restricted using a ClusterRole #2946
Comments
#2936 could be related, as I was using a service account with a token |
Having issues as well the fixes in 0.28.1 related to port forward did not fix for me |
Having issues as well the fixes in 0.28.1 related to port forward did not work. It just get the Spinning wheel that it is trying. |
still not working for me in 0.29.0 |
Thank you for opening the issue, looking into this |
Hi @artiommocrenco-amdaris I was unable to reproduce this issue with the current main. Can you please try it as well? Here are the exact steps I used to test this scenario:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: developers-extended
rules:
- apiGroups:
- "*"
resources:
- "*"
verbs:
- list
- get
- watch
- apiGroups:
- ""
resources:
- pods/portforward
- services
- services/portforward
verbs:
- get
- list
- create
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: developer-test-binding
subjects:
- kind: ServiceAccount
name: developer-test
namespace: default
roleRef:
kind: ClusterRole
name: developers-extended
apiGroup: rbac.authorization.k8s.io
I had clusters in kubeconfig and it worked for me. I also had an AKS cluster and added it base64 encoding it via Both scenario worked for me. Can you please add some logs from the console, that would be helpful as well? Thanks |
I have this issue, even when using a role that gives me cluster-admin permissions. Headlamp 0.29 on MacOS 15.1 |
Describe the bug
"Forward port" is stuck pending when permissions are restricted using a similar ClusterRole:
To Reproduce
Steps to reproduce the bug:
Expected results: port is forwarded or an error message is shown
Environment (please provide info about your environment):
Are you able to fix this issue?
No
Additional Context
Works using
kubectl port-forward svc/myservice 8080:80
and in aptakube using the same kubeconfig in both cases, but doesn't work with Headlamp.Works as expected with Headlamp using cluster admin kubeconfig (using TLS client auth).
The text was updated successfully, but these errors were encountered: