This page shows you how to get started with Cloud Code using the sample Hello World Java application.

You can pick any of the other hello-world Cloud Code samples and follow along as long as your system and IntelliJ IDEA are configured to support that language.

Installing the plugin

  • Open IntelliJ IDEA and from your plugins marketplace (File > Settings > Plugins or for Mac OS X, IntelliJ IDEA > Preferences > Plugins), search for the 'Cloud Code' plugin and install it. You may be prompted to restart your IDE to activate the plugin.

Creating an application using an existing template

  • Download the Hello World sample Java application from the Cloud Code samples GitHub repository.
  • Within IntelliJ IDEA, import the 'java-hello-world' project (from the cloud-code-samples/java/ directory).
  • You'll be prompted to automatically create Kubernetes deployment and continuous development IDE run targets for the project with a notification. Click 'Create run configurations for Kubernetes with Skaffold' link.

    Create Kubernetes targets notification

Deploying your application

  • Specify your image repository using the Run/Debug configurations dialog on the top taskbar under 'Edit Configurations...' > 'Develop on Kubernetes' > 'Image options' > 'Default image repository'.

    For example, for Docker Hub, use 'docker.io/{account}'.

    Specifying the default image repository in run target settings

  • Now that your application is ready for deployment, choose 'Deploy to Kubernetes' from the Run/Debug configurations dialog on the top taskbar.

    Logs will be available in the output window and once the deployment is completed, you'll be given an IP address to access your application.

Getting Support

To send feedback, report issues on GitHub, or ask a question on Stack Overflow.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Code for IntelliJ