Cloud Code easily extends VS Code and IntelliJ for a faster build, run, and debug cycle for Kubernetes and Cloud Run.
Questions tagged [google-cloud-code]
61 questions
0
votes
1 answer
Failed to deploy the app. Error: Violation in UpdateServiceRequest.service.template.containers[0].volume_mounts[0].mount_path: must be a valid path
I'm using Visual Studio Code with Google Cloud Code extension. When I try to use Deploy to Cloud Run with Cloud SQL connections field, I get this error:
Failed to deploy the app. Error: Violation in…

Marcel
- 2,810
- 2
- 26
- 46
0
votes
1 answer
I can't run Debug mode on the Cloud Code plugin in Pycharm
I want to debug my simple flask app (hello-world Skaffold sample) on the local Kubernetes cluster but when I click debug button, Skaffold runs in dev mode and doesn't open debug page.
Does anybody know what should I do to fix this problem?
my…

ali haririan
- 1
- 1
0
votes
1 answer
"Invoke function" gives curl: (6) Could not resolve host: undefined
In VSCode with the cloud code add on, I have a list of my active cloud functions.
When hovering over one of them there's an option "Invoke Function via http"
If I select this I get the following command and output:
curl -m 60 -w "\n" -X POST…

Doug Fir
- 19,971
- 47
- 169
- 299
0
votes
1 answer
Connect Java Google AppEngine Local Standard Server to Cloud DB | appengine-api-1.0-sdk-1.9.84.jar | IntelliJ & Cloud Code
EDIT2: I have managed to get past the GlobalDatastoreConfig has already been set error. I managed to pinpoint all the locations that were getting called before the init function. They were in static space in some weird files.
I have now pointed ALL…

James
- 699
- 2
- 6
- 23
0
votes
1 answer
How to set environment variables when using the VSCode Cloud Code extension?
I know how to set environment variables in Cloud Run using the web console (https://cloud.google.com/run/docs/configuring/environment-variables#setting), but how can I do this locally in the emulator when using VSCode with the Cloud Code…

Nelu
- 16,644
- 10
- 80
- 88
0
votes
1 answer
Why isn't Cloud Code honoring my cloudbuild.yaml file but gcloud beta builds submit is?
I am using Google's Cloud Code extension with Visual Studio Code to use GCP's Cloud Build and deploy to a local kubernetes cluster (Docker Desktop). I have directed Cloud Build to run unit tests after installing modules.
When I build using the…

Dshiz
- 3,099
- 3
- 26
- 53
0
votes
1 answer
How to add extension to apigee-emulator on local environment?
Recently we get the need for work on the same apigee proxy more than one developer. So we are trying to use the apigee-emulator to allow us to use git as version control
We already have everything setup for VScode as it says on the…

Ernesto Alfonso
- 650
- 10
- 30
0
votes
1 answer
IntelliJ Community Edition Hanging on Plugin Cloud Code
I installed Cloud Code for IntelliJ Community Edition 2022.2.1 and IntelliJ hung. I have let it run for over 20 minutes but there is no change. This is the second time this has happened (I reinstalled IntelliJ the first time). Could this have…

David Gordon
- 17
- 6
0
votes
2 answers
Why is my GCP image failing to deploy to local kubernetes?
I am getting "can't be pulled" when I use Cloud Code plugin in VS code to build and deploy an image to a local Kubernetes cluster. There are no errors being logged on GCP, but locally I'm getting the following:
- deployment/ failed.…

Dshiz
- 3,099
- 3
- 26
- 53
0
votes
2 answers
How to debug Java application in Kubernetes with Cloud Code plugin
I'm trying to debug a Java application in Kubernetes using a Cloud Code plugin.
There is no trouble with the default debug.
I just click debug and it works, but... I don't know how to connect to application on the start.
I've tried to add option…

Alexander Kazantsev
- 332
- 5
- 17
0
votes
1 answer
Build x86_64 image for Cloud Code's "Debug on Cloud Run Emulator" from M1 Mac
I'm currently trying to build a python 3.10 application using VSCode and want to deploy the application to Cloud Run soon. Google conveniently has a Cloud Code plugin that is supposed to help with debugging and deployment of my code, but I'm having…

Martin Reindl
- 989
- 2
- 15
- 33
0
votes
1 answer
Failed to start minikube: Error while starting minikube. Error: X Exiting due to MK_USAGE: Container runtime must be set to "containerd" for rootless
I'm getting the error and I believe the way to solve it is by running: minikube start --container-runtime=containerd
but the extension seems to run minikube start. So how am I supposed to add the flag?
Here's the launch.json file
{
…

blest
- 437
- 1
- 4
- 10
0
votes
2 answers
Google Cloud Code VSCode extension fills out my root drive
This is my first post in stack overflow.
I am using Arch Linux updated to the latest updates available for all packages.
My system is divided to 2 volumes: 30 GB for root folder and another volume for everything else.
I started using the…

Almog Surizon
- 11
- 2
0
votes
0 answers
Cloud Code Kubernetes spawn python enoent error in VS Code when attaching a debugger
I come across a very weird case in my Visual Studio Code when trying to debug a simple Kubernetes app using CloudCode extension. If anyone has worked with cloudcode in VS Code, any suggestions on this issue would be very appreciated.
I'm trying out…

Alexander Komarov
- 109
- 2
- 8
0
votes
1 answer
Google Cloud Code's Cloud Run extension stores the Docker image in Cloud Storage instead of Artifact Registry
Why when I use the Visual Studio Code extension "Cloud Code", to deploy a Cloud Run service, it seems to store the image contents in Cloud Storage (via Container Registry).
Can I make it store the image in the Google Cloud Artifact Registry instead?

Zaffer
- 1,290
- 13
- 32