Stay organized with collections Save and categorize content based on your preferences.
Cloud Code leverages Skaffold under the hood to run or debug your application.
If you have an existing application already configured with Kubernetes manifests and a Dockerfile to build your images, you can open and use it with Cloud Code.
The only additional configuration necessary is a skaffold configuration and a launch configuration of type cloudcode.kubernetes
. Cloud Code guides you through creating these when you run or debug your application for the first time.
skaffold.yaml
generation doesn't support projects without a Dockerfile. For these projects, create a skaffold.yaml file manually.
If your application has a Dockerfile but doesn't have the necessary Skaffold and launch configurations, complete the following steps:
In the Cloud Code status bar, click the active project name.
In the Quick Pick menu that appears, select Run on Kubernetes or Debug on Kubernetes.
In the Run/Debug on Kubernetes dialog, specify your preferred builder and its settings. You can also customize your configuration name.
Click Debug or Run.
If prompted, authenticate your credentials to run and debug an application locally.
The newly created skaffold.yaml
and cloudcode.kubernetes
launch configuration are added to your workspace and your app runs or is ready for debugging.
If your application already has a skaffold.yaml
file, follow these steps:
In the Cloud Code status bar, click the active project name.
In the Quick Pick menu that appears, select Run on Kubernetes or Debug on Kubernetes.
If more than one skaffold.yaml
file exists in your workspace, select your preferred skaffold.yaml file.
If more than one Skaffold profile exists in the skaffold.yaml
file you chose, select your preferred Skaffold profile.
The newly created cloudcode.kubernetes
launch configuration is added to your workspace (in .vscode/launch.json) and your app is running or ready for debugging.
You might want to manually create your Skaffold configuration to define custom options. Cloud Code comes with live templating to support manual Skaffold configuration creation.
To manually create a Skaffold configuration:
Create a new file named skaffold.yaml
in the root directory of your workspace.
In the file, press Command/Ctrl+Space
to see a list of snippet suggestions and then select the Skaffold - Getting-started snippet.
Enter your project image name in the image
field and enter a list of the Kubernetes resources to deploy in the manifests
field.
Example for Dockerfile based builds:
build:
artifacts:
- image: image_name
deploy:
kubectl:
manifests:
- k8s/web.yaml
- k8s/backend.yaml
If you'd like to define build, test and deployment configurations for different contexts, you can have different Skaffold profiles. The following sample shows a Cloud Build profile to configure Cloud Code to build images with Cloud Build:
profiles:
# use the cloudbuild profile to build images using Google Cloud Build
- name: cloudbuild
build:
googleCloudBuild: {}
For comprehensive schema details, see the skaffold.yaml reference.
To send feedback, report issues on
GitHub, or ask a question on
Stack Overflow.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["Cloud Code utilizes Skaffold for running and debugging applications, and it can be used with existing applications that are already configured with Kubernetes manifests and a Dockerfile."],["If your application lacks Skaffold and launch configurations, Cloud Code guides you through creating them when you first run or debug, including setting up a `skaffold.yaml` and `cloudcode.kubernetes` launch configuration automatically."],["For applications already possessing a `skaffold.yaml`, Cloud Code streamlines the process by allowing you to select the desired `skaffold.yaml` file and Skaffold profile, creating a `cloudcode.kubernetes` launch configuration automatically."],["You can manually create a `skaffold.yaml` configuration, leveraging Cloud Code's live templating feature and snippet suggestions to define custom options, build, test, and deployment configurations, with options to include multiple Skaffold profiles."],["After the configurations are set, file sync and hot reloading can be used to speed up development and debugging."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4