Create an app with configuration dependencies
In this quickstart, you set up an application with configuration dependenciesbased on a sample application and then deploy parts of the app separately.
Before you begin
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Google Kubernetes Engine API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Google Kubernetes Engine API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.- InstallGit. Git is required for copying samples to your machine.
- Install theCloud Code plugin if you haven't already.
Creating an application
Clone the Bank of Anthos repository:
- In the top menu bar, clickTerminal >New Terminal.
Clone the Bank of Anthos repository:
git clone https://github.com/GoogleCloudPlatform/bank-of-anthos.git
To open the workspace based on Bank of Anthos, in VS Code, clickFile >Open folder and then navigate to the folder where the repository wascloned.
Double-click the
skaffold.yamlfile.The file contains multiple configurations, separated by YAML documentseparators (
---). Each configuration can be deployed or referenced as adependency separately.---apiVersion:skaffold/v2beta18kind:ConfigConfigurations with a name specified are known asSkaffold modules.The following excerpt defines the
frontendmodule.metadata:name:frontend# module defining frontend serviceDependencies between configurations are specified using the
configstag. Required configurations must be deployed before the currentconfiguration. The sample shows a dependency that's defined in the samefile. Theconfigstag can also reference otherskaffold.yamlfiles inthe current project.requires:-configs:[db]
Deploying modules
- Open the Command Palette (
Ctrl/Cmd+Shift+P) and then runCloud Code: Run on Kubernetes. - ClickSelect modules.
Choose the modules that you want to deploy and then clickOK.
If you clickdb, thedb config and thesetup config that itrequires are built.
When prompted, choose an image registry and then press
Enter.
Cleaning up
After you terminate your application, all Kubernetes resources deployed duringthe run are deleted automatically.
To avoid incurring charges to your account for other resources used in thisquickstart, be sure to delete the cluster and project you created.
If you're using Google Cloud and would like to delete just your cluster, youcan do so by following these steps:
- Click
Cloud Code and then expand theKubernetes explorer.
- Hold the pointer over your cluster name and then clickopen_in_newOpen in Google Cloud console.
- ClickDelete and then clickDelete.
To delete your project (and associated resources, including any clusters):
Go to the Projects page in the Google Cloud console:
Select the project that you created for this quickstart and then clickDelete.
Type the project ID to confirm and then clickShut down.
This shuts down the project and schedules it for deletion.
What's next
- Learn more aboutSkaffold modules.
- Learn about the language-specificdebugging support in Cloud Code.
- Customize your Cloud Code experience by configuringsettings.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.