microsoft / mindaro

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

Bridge To Kubernetes Hangs #231

Closed SteveCurran closed 2 years ago

SteveCurran commented 2 years ago

Describe the bug I have a service/pod running on aks and linux, the service is of type LoadBalancer with a public ip. I right click on the pod and select debug(local tunnel). The following messages come up

Redirecting Kubernetes service webservice to your machine... Target cluster: aks Current cluster: aks Target namespace: webservice Current namespace: webservice Target service name: webservice Target service ports: 9088 Using kubernetes service environment variables: false

Retrieving the current context and credentials... Validating the credentials to access the cluster... Validating the requirements to replicate resources locally... Redirecting traffic from the cluster to your machine... Waiting for EndpointManager to come up ... EndpointManager came up successfully.

However, the toaster states "Redirecting kubernetes webservice to your machine..." and just hangs.

I am never able to debug.

Logs Logs basically shows these lines until I cancel: 2021-09-15T21:04:41.8861064Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.1250861Z | Library | TRACE | Dependency: Kubernetes {"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.1614249Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.1615312Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.3950704Z | Library | TRACE | Dependency: Kubernetes {"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.4259255Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.4260288Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.6703638Z | Library | TRACE | Dependency: Kubernetes {"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.7082138Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.7083561Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:42.9661058Z | Library | TRACE | Dependency: Kubernetes {"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.0017946Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.0019331Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.2488735Z | Library | TRACE | Dependency: Kubernetes {"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.2863032Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.2863962Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.5337207Z | Library | TRACE | Dependency: Kubernetes {"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.5723741Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}} 2021-09-15T21:04:43.5724670Z | Library | TRACE | Dependency: Kubernetes {"target":"ListPodsForDeploymentAsync","success":true,"duration":null,"properties":{}}

Environment Details Client used VSCode 1.60.0 Extension Version v1.0.120210803

Operating System: windows 10 190042

SteveCurran commented 2 years ago

This was due to an admission controller not allowing bridgetokubernetes.azurecr.io registry containers. Fixed.