Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't Deploy GKE from Cloud Code in VS Code

I've been unable to deploy to GKE from Cloud Code in VS Code since this morning.

Could it be an issue with Cloud Code?

orepa_0-1722583460085.png

 

0 2 278
2 REPLIES 2

Which version are you using? It says that there's issue with dependency `gcloud`, which means that something could be wrong with either version or auth. You can run `gcloud components update` to update gcloud CLI to the latest version, as well as `gcloud auth login` to log into the GCP (and gcloud config set project <project_id> to set the proper project). I'm using the latest version of Cloud Code in VS Code and the latest version of gcloud CLI, tried to query the GKE cluster resources - everything seems to be fine.


Hi @orepa,  

Welcome to Google Cloud Community!

According to the recent issue regarding spawn EINVAL error, it was discussed that the issue for “spawn EINVAL” was fixed by the recent update of Version 2.16.0 (August 2024) in Cloud Code for Visual Studio Code Release Notes together with other crash issues.

Also, you may want to create and configure a GKE cluster in Cloud Code for VS Code. It is a must to run or debug an application on GKE and define the container image repository for your project. Since attempting to debug an application locally that tries to make a call to a Google API for VS, it should be prompted to authenticate credentials to run an application to avoid any error message appearing in your VS Integrated Development Environment (IDE).

Once you have an application set up, you can run it on a Kubernetes cluster and by leveraging “skaffold dev”. You can run your application on a local cluster (like minikube or Docker Desktop) and Google Kubernetes Engine.

I hope the above information is helpful.