Stay organized with collections Save and categorize content based on your preferences.
Cloud Code lets you create a Kubernetes application based on a sample or from an existing project.
Create an application from a templateCloud Code comes with a collection of code sample templates to get you started quickly. To create a Kubernetes application using an existing sample, follow these steps:
Pick a name for your project.
Once you click Finish, Cloud Code will clone your chosen template and open your newly created project for use.
For Java templates, you'll be prompted to import Maven projects to sync your pom.xml. Click Add as Maven project. Additionally, import necessary Maven projects by clicking Import Changes.
Kubernetes run and development IDE run targets for the project are automatically created and ready to run.
Optional: Alternatively, you can manually create run targets:
For steps to use an existing project, see use Cloud Code with an existing Kubernetes application.
Note: For developing and testing an app, create and run the application on a non-production cluster.Before running your application, ensure you're set up to deploy your app to your preferred Kubernetes context. You can specify this in your configuration.
If you'd like to switch your current context, you can do so with the Kubernetes Explorer, accessible either from its sidebar panel on the right or using Tools > Cloud Code > Kubernetes > View Cluster Explorer.
To optimize your development loop by quickly picking up file changes of a certain type without having to perform an image rebuild, you can enable file syncing and hot reloading.
ConfigurationWhen using the Cloud Code: Develop on Kubernetes run configuration, you can customize your deployment by configuring available settings.
To add or edit configurations, go to
Run>
Edit Configurations.
Container image storage optionsIf you chose a remote cluster as the context, choose an image registry to push the images to. Go to Run > Edit configurations to set the image registry in your Run/Debug Configurations.
Refer to the guide on storing your container image for more details.
Build settingsCloud Code supports Docker, Jib, and Buildpacks artifact types. Refer to the Configuring container image build preferences guide to learn about how to set your preferred builder and its relevant settings.
Customize your launch configurationTo configure how your application is run, you can customize your skaffold.yaml
file.
You can also configure your launch in your Run/Debug configurations. To edit your configurations, go to Run > Edit configurations.
For more information on customizing your launch configuration, see the Kubernetes in Cloud Code.
Note: Cloud Code is built to work with Cloud Build. To build an existing application using Google Cloud infrastructure, see the Skaffold docs for Cloud Build. Run your applicationOnce you have an application set up, you can run it on a Kubernetes cluster and view it live, by leveraging skaffold dev
. You can run your application on a local cluster (like minikube or Docker Desktop), Google Kubernetes Engine, or any other Cloud provider.
Click the Run icon on your preferred run action. You can then view incoming application logs in the output window under the Logs tab.
When the deployment starts, you'll see the list of forwarded ports for your deployed application.
After the deployment is successful, you're notified that new service URLs are available. Click the Service URLs tab to view the URL(s), then click the URL link to open your browser with your running application.
Alternatively, you can open the Event Log and then click the link to open your browser with your running application.
The Deployed Resources pane shows what you deployed during the development session.
In addition to seeing logs from running pods as a live stream in the terminal output as you're developing and running your application, you can view logs from a specific pod by navigating to the Kubernetes Explorer.
To view logs from a specific pod, follow these steps:
Navigate to the Kubernetes Explorer. It can be accessed either from the side panel on the right or using Tools > Cloud Code > Kubernetes > View Cluster Explorer.
Select the pod you'd like to see logs from.
Right-click the pod and then click Stream Logs. Alternatively, you can stream logs for individual containers running in pods.
The Kubernetes Explorer Console displays the logs.
If watch mode is set to
On demandin your launch configuration and you want to make changes to your application and then rebuild and redeploy the application:
Make and save your changes.
Click the Trigger Build and Deploy icon or press Option + Ctrl/Cmd + Comma
to rebuild and redeploy the application.
To stop running the application, click the Stop icon or press Ctrl/Cmd + F2
.
After you stop the application, all deployed Kubernetes resources are deleted from the cluster. You can change this behavior using the cleanUp
flag in your launch configuration.
If your code includes potentially sensitive data like API keys, passwords, and certificates, it is recommended you store them as secrets. With Cloud Code, you can securely store these secrets in Secret Manager and programmatically fetch them when you need them.
For a detailed look at how you can create and manage secrets with Cloud Code, see the Secret Manager guide.
View resource detailsThe Kubernetes Explorer displays clusters, namespaces, nodes, workloads (such as deployments, replicasets, pods and containers), services and ingresses, configurations (such as secrets and config maps) and storage (such as volumes). Using the Kubernetes Explorer, you can perform unique actions on some of these resources.
See the Kubernetes overview for more information on viewing resource details.
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."],[[["Cloud Code facilitates the creation of Kubernetes applications from either provided templates or existing projects, offering a streamlined development experience."],["Users can easily run and develop applications on Kubernetes clusters, with automated run targets and options for manual configuration through the IDE."],["Cloud Code supports various container image build methods, including Docker, Jib, and Buildpacks, with customizable settings available for each."],["The platform provides tools for viewing logs, managing resources, and making iterative changes with features like file syncing and hot reloading for efficient development."],["Sensitive data can be securely managed using Cloud Code's integration with Secret Manager, and the Kubernetes Explorer offers a comprehensive view of cluster resources."]]],[]]
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