Adding Resources

Once the project has been created, the next step involves creating the resources required for the pet clinic application. Here, we will opt to create a Service resource, a Postgres resource, and an Ingress resource.

The Postgres resource in this context is a PostgreSQL database, used by your application for data storage and retrieval. The Service resource is where the Spring Boot application resides, and the Ingress resource manages the exposure of your services to the external world.

  1. Open the Projects tab and select the required project.
  2. In the Blueprint tab, locate the Add Resource pop-up.

Adding a Postgres Resource

  1. Search for and select the resource type Postgres.
  2. In the pop-up, select the Flavor and mention the Postgres Name.
  3. Click Add.

Adding a Service Resource

  1. Search for and select the resource type Service.
  2. In the pop-up, select the Flavor and mention the Service Name.
  3. Click Add.

Adding an Ingress Resource

  1. Search for and select the resource type Ingress.
  2. In the pop-up, select the Flavor and mention the Ingress Name.
  3. Click Add.

Note: When creating a resource, it is initially set with default sample values that can be modified after the resource has been created.

You have successfully created the necessary resources for the Pet Clinic application.

Let's move forward to the next step, Creating and Launching an Environment.