microsoft / mindaro

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

KubernetesLocalProcessConfig does not load in host after upgrading to vs2022 #297

Open shy6010 opened 2 years ago

shy6010 commented 2 years ago

Hi

Installed bridge to Kubernetes for visual 2022 after waiting months and not being able to port to vs 2022.

Upon loading everything connects fine however I have noticed my KubernetesLocalProcessConfig.yaml services do not load.

In my host file it only loads my services that are set up Loadbalancers or ClusterIps.

My services are set up as NodePorts on the cluster.

Is anyone been able to get there local variables working with NodePort Services.

Trying to revert back to vs2019 and the same thing happens.

All this was working perfectly before I upgraded to the latest version for visual studio 2022.

Its stopping me from working.

Has anyone else having this issue.

Any help will be appreciated.

here is my a copy of my KubernetesLocalProcessConfig.yaml

image

The same issue on occurs on a another machine also.

Many Thanks

shy6010 commented 2 years ago

After trying to resolve this for a number of days I have managed to get a work around.

It seems in my particular scenario that if I setup my services as NodePorts in the cluster, in Visual Studio both 2019 and 2022 it does not recognise it in my Windows Host file. Setting it to ClusterIP or LoadBalancer loads it.

Not sure if this a bug. I set all my services to ClusterIP's

To get the ServiceAddress_App1 to work i had to remove the namespace.

This was all working in the previous versions

dima-ringba commented 2 years ago

Same for me - not getting an address to the NodePort services. Have not tried with ClusterIP yet