Stay organized with collections Save and categorize content based on your preferences.
If you have an existing project already configured with Kubernetes manifests, a Dockerfile, or Jib to build your images, you can open and use it with the plugin. The only additional configuration necessary is a Skaffold YAML file which either can be generated for you automatically or created using the provided template.
After you're done with configuring your Skaffold YAML, be sure to specify where your container images are stored where the project image is about to be pushed.
Automatic project bootstrappingYour project must have one or more Kubernetes manifests. If Cloud Code detects any Kubernetes manifests in the project, Cloud Code will try to bootstrap.
If Cloud Code doesn't detect an existing Skaffold configuration, you will be prompted to help set it up.
PrerequisitesYour project must meet the following prerequisites in order to be prompted to create a skaffold.yaml
file and run any necessary configurations:
(Option 1) Your project has a Dockerfile and is configured for Jib, or
(Option 2) Your project is buildable using Buildpacks and has Kubernetes resources.
If the prerequisites are met, Cloud Code will prompt you with a notification to create a skaffold.yaml
file (if one doesn't already exist) and any necessary run configurations:
Click the notification. This automatically creates your configuration if possible.
If automatic Skaffold configuration creation is not possible due to multiple images or builders being detected, Cloud Code will display a dialog asking you to provide mappings between the detected images and builders.
Alternatively, you can also set up a Skaffold configuration by navigating to Tools > Cloud Code > Kubernetes and selecting Add Kubernetes Support.
This option analyzes your project's Kubernetes resources and generates a skaffold.yaml
file (if one doesn't already exist) as well as necessary run configurations. The two run configurations generated include one to run your project on Kubernetes and one for development on a Kubernetes cluster.
After support is added, you can start running and debugging your project on Kubernetes using the newly added run configurations.
You can choose to manually create a new skaffold.yaml
file or add an existing one to your project.
To create a skaffold.yaml
file manually using live templating, follow these steps:
Create a new file named skaffold.yaml
in the root directory of your project (right-click > New > File).
With the cursor in the new file, press Ctrl+Space
to bring up the live template suggestions and then choose the desired Skaffold template.
Populate the image field with your project image name and the manifests field with a list of the Kubernetes resources you want to deploy from the IDE.
After Cloud Code determines that your skaffold.yaml
file is valid, click the prompt to create Kubernetes run configurations.
Dockerfile based builds:
build:
artifacts:
- image: image_name
deploy:
kubectl:
manifests:
- k8s/web.yaml
- k8s/backend.yaml
Build section for Java Maven/Gradle projects with the Jib plugin (deploy section stays the same as the example above):
build:
artifacts:
- image: image_name
jib: {}
If you'd like to define build, test, and deployment configurations for different contexts, you can have different profiles. Here's an example of 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: {}
If you'd like to deploy your project with Helm, see the Helm documentation.
Before you deploy your application, you'll need to define a default image repository to use with your project.
By default, the project is configured to use the image name specified in your Kubernetes manifests. You can also customize this image specification. Once you have your preferred repository set up (Artifact Registry, DockerHub, or a private repository), edit the run configurations and specify it as a default image repository in run configuration settings.
These are accessible from the Run/Debug configurations dialog on the top taskbar under Edit Configurations > Develop on Kubernetes > Image repository.
For more on specifying your container image preferences, refer to the Configuring container image settings guide.
Build settingsOnce you set your container image, you can configure its build settings. Cloud Code supports Docker, Jib, and Buildpacks artifact types.
On the Build / Deploy tab of your Run configuration settings (Edit Configurations > Develop on Kubernetes), you can configure the build settings for your default profile.
For more on specifying the build settings for your image, refer to the Configuring container image build preferences guide.
What's nextTo submit feedback or report an issue in your IntelliJ IDE, go to
Tools>
Cloud Code>
Help / About>
Submit feedback or report an issueto report an issue on
GitHub.
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."],[[["This plugin allows you to use existing projects with Kubernetes manifests, Dockerfiles, or Jib, requiring only a Skaffold YAML file, which can be auto-generated or created from a template."],["Projects must include Kubernetes manifests and either a Dockerfile with Jib configuration, or use Buildpacks, to be prompted to generate the `skaffold.yaml` configuration file and any other run configurations."],["Cloud Code can automatically generate a Skaffold configuration, or users can manually create one by adding a `skaffold.yaml` file to the project's root directory and using live templates."],["Users can specify a default image repository (such as Artifact Registry, DockerHub, or a private repository) within the run configuration settings to store container images."],["Cloud Code supports various build settings including Docker, Jib, and Buildpacks, that can be configured through the Run configuration settings, under the 'Build / Deploy' tab."]]],[]]
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