Creating an application

Creating an application from a template

Cloud Code comes with a collection of starter templates to get you started quickly. To create a Kubernetes application using an existing sample, follow these steps:

  1. Open File > New Project.
  2. Select Cloud Code: Kubernetes.
  3. Select a template from the list of starter applications. List of templates available: Python, Go, NodeJS, Java hello world and guestbook applications
  4. If you're using IntelliJ IDEA, you'll be prompted to specify where your container image is stored.

    Specify your default image repository within the field using the appropriate format

    Depending on your choice of container registry, choose an appropriate format:

    • If you are using GKE, you can store your images on Google Container Repository.

      Additionally, the field comes equipped with autocomplete so you can easily find the image associated with your preferred Google Cloud project and currently active cluster. Use the following format:{project-name} where {project-name} is the name of your GCP project containing your cluster.

    • If you choose to store your images on Docker Hub (ensure that you are properly authenticated if you are using a private Docker Hub repository), use the following format:{account} where {account} is the name of your Docker Hub account.

    • If you are using AWS Container Repository (ECR), use the following format:


    • If you are using Azure Container Registry (ACR), use the following format:


    • If you are running on a local cluster like Minikube or Docker Desktop, you can skip this step and click 'Next'.

  5. 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'.

      Non-managed pom.xml notification

      Additionally, import necessary Maven projects by clicking 'Import Changes'.

      Import Maven changes notification

  6. 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.

    • Select the 'Run Configuration' drop down, and click 'Edit Configurations'.
    • Click the '+' Add New Configuration button to add a new Run Configuration.
    • Browse to 'Cloud Code: Kubernetes'.

      Cloud Code: Kubernetes option in menu

    • Fill in a name for your new Configuration.

    • Click 'OK' to create your run target.

Using your own application

If you'd like to use a project of your own, refer to this guide on setting up your application.

Getting Support

To send feedback, report issues on GitHub, or ask a question on Stack Overflow.