Running B2K in Visual Studio, Error "routingmanager-role" is forbidden, only works if you are a Cluster Administrator
jliglesias66 opened this issue · 0 comments
Describe the bug
I am trying to debug with B2K from Microsoft Visual Studio a service that is in a cluster with linux pods.
I have a problem setting permissions on the cluster. We can only get it to work if it is Cluster Administrator, and that is not an option.
The cluster has Azure AD and Kubernetes RBAC enabled (https://learn.microsoft.com/en-us/azure/aks/azure-ad-rbac?tabs=portal)
The user account has the role admin on the namespace where the services are deployed (as the documentation says)
Error in the B2K logs:
Error: Forbidden: roles.rbac.authorization.k8s.io "routingmanager-role" is forbidden
For more details, the log files are attached below.
Mention the platform you are using
Microsoft Visual Studio Enterprise 2022 (17.8.7)
To Reproduce
Steps to reproduce the behavior:
- Configure B2K in Visual Studio by editing the profile in the configuration window
- Running debugging with the Bridge To Kubernetes launcher profile from Visual Studio
- Error is displayed with the following message: Unable to establish connection to cluster.
Translated from Spanish: "No se ha podido establecer conexión con el clúster."
Expected behavior
I wait for B2K to connect to the cluster and start forwarding traffic from the specified service to my local machine so I can debug.
Logs:
bridge-library-2024-03-05-09-13-22-28464.txt
bridge-mindarocli-2024-03-05-09-13-21-28464.txt
Desktop (please complete the following information):
- OS: Microsoft Windows 11 Business (v10.0.22631)