Skip to content
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

Running B2K in Visual Studio, Error "routingmanager-role" is forbidden, only works if you are a Cluster Administrator #620

Open
jliglesias66 opened this issue Mar 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jliglesias66
Copy link

jliglesias66 commented Mar 5, 2024

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:

  1. Configure B2K in Visual Studio by editing the profile in the configuration window
  2. Running debugging with the Bridge To Kubernetes launcher profile from Visual Studio
  3. 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.

Screenshots
image

image

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)
@jliglesias66 jliglesias66 added the bug Something isn't working label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant