Deploying .NET Core/Docker to Google Cloud Kubernetes Engine From Visual Studio

1/18/2018

I can't seem to deploy from VS 2017 to Google Cloud Kubernetes engine using the Google Cloud Tools extension for VS.

The deploy progress gets to about 75% and then hangs for hours and hours with no error.

When trying to manually create a dotnet project using Cloud Shell, I get an error message saying it couldn't restore the dotnet packages. Running the dotnet restore command is not successful but does not give an error message.

Even a starting point to where I could debug this would be great.

-- Chronos
.net-core
docker
google-kubernetes-engine
kubernetes
visual-studio-2017

1 Answer

1/22/2018

This could be a case of an API not being enabled. Sadly the extension doesn't, yet, check that all necessary APIs are enabled before attempting a deployment.

If you go to the APIs & Services > Library tabbing in Cloud Console website you should be able to check if the Google Cloud Container Builder API is enabled and enable it if it is not.

Typically what happens is that the extension attempts to build the container that way. There should not be a hang however.

-- Ivan Naranjo
Source: StackOverflow