microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Cannot select application url in Visual Studio 2019 (latest) #132

Open jacodv opened 3 years ago

jacodv commented 3 years ago

Describe the bug Cannot debug a service running in a cluster that runs in docker-desktop/wsl2.

To Reproduce Added file KubernetesLocalProcessConfig.yaml to the root of my project. Select project to debug. Start debugging with Bridge to Kubernetes. Select docker-desktop from the list. Select "default" namespace and service to debug. Cannot parse Application Url with no options in the dropdown.

**Expected behavior** Able to select: $(services:iiab-api)/api/health/echo from the list **NOTE** When I connect to an AZURE AKS Cluster it works (See last image uploaded) **Environment Details** Client used (Visual Studio): Client's version: Microsoft Visual Studio Professional 2019 Version 16.9.1 Operating System: Windows 10 Pro 19042.867 **Additional context** ![image](https://user-images.githubusercontent.com/5814127/111163793-18149700-85a6-11eb-9bc2-af015f09c237.png) ![image](https://user-images.githubusercontent.com/5814127/111163838-24005900-85a6-11eb-9bf0-b43d7e3eb397.png) ![image](https://user-images.githubusercontent.com/5814127/111163922-37abbf80-85a6-11eb-9bcd-232f20f7fbe3.png) ![image](https://user-images.githubusercontent.com/5814127/111164136-6e81d580-85a6-11eb-87f0-8c96c9b888c0.png)
pragyamehta commented 3 years ago

Hi @jacodv Do you have any ingresses or load balancer services (with public IP) deployed in your namespace? We populate the dropdown only if you have any of the objects I mentioned. If you leave the Application Url dropdown as blank, are you able to click the "save and debug" button?

Is the service $(services:iiab-api) a service of type load balancer or ClusterIP?

jacodv commented 3 years ago

Thanks, Pragya. Not at the moment. Let me setup something, test and revert. Are you planning to change the implementation in the near future?

Thank you for the reply

On Mon, 15 Mar 2021 at 23:48, Pragya Mehta @.***> wrote:

Hi @jacodv https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjacodv&data=04%7C01%7C%7C9163081a605d4f543d6d08d8e7fc1519%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637514417159307124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ygiWYbGR9F0KL6xxPuczuP%2BwYB1Fn%2B5JJEJUhWyRR9o%3D&reserved=0 Do you have any ingresses or load balancer services (with public IP) deployed in your namespace? We populate the dropdown only if you have any of the objects I mentioned.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmindaro%2Fissues%2F132%23issuecomment-799774837&data=04%7C01%7C%7C9163081a605d4f543d6d08d8e7fc1519%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637514417159307124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XO6qFYB2Bn%2FGfrhZV2Etl8gP8njh4LvAIlwkEEZSujI%3D&reserved=0, or unsubscribe https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMLO3YBMW6ZXSEPHX4VLHTTDZ6DDANCNFSM4ZGTCUAQ&data=04%7C01%7C%7C9163081a605d4f543d6d08d8e7fc1519%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637514417159437050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5hL0moKfh%2FTEVSfugVFscQg07YyEScfjSn2LesZU1Xo%3D&reserved=0 .

jacodv commented 3 years ago

I have created an ingress and used the localhost to expose a sample web application. I can access the url via the assigned host. But still cannot see the Application Url in Visual Studio.

image image

image image

pragyamehta commented 3 years ago

@danegsta Can you take a look at this issue? Do we block the customer if we are not able to populate the url?

@jacodv could you provide logs from the below locations: %temp%\Bridge to Kubernetes %temp%\Microsoft.VisualStudio.Kubernetes.Debugging

jacodv commented 3 years ago

@pragyamehta , thanks and see attached. Bridge To Kubernetes.zip Microsoft.VisualStudio.Kubernetes.Debugging.zip

pragyamehta commented 3 years ago

Thanks @jacodv We have identified the issue and will be pushing a fix for this soon. I will update this thread once we do so.

danegsta commented 3 years ago

@jacodv there's a previously scheduled release going out to the marketplace today that won't have the fix @pragyamehta mentioned, but we're working to get the fix for this issue out as soon as possible.

jacodv commented 3 years ago

Great news. Looking forward to your notification. Keep up the good work!

wu-yafeng commented 3 years ago

I have same issue.