Docs

Linking Resources

Connect resources in a Facets blueprint, wiring a Postgres database to a Service with environment variables and a Service to an Ingress with ingress rules.

Linking resources refers to establishing connections between different resources, enabling them to interact and share information with each other.

Linking a Postgres resource to a Service resource

In this example, we will be linking a Postgres resource to a Service resource using Environment Variables.

  1. First, ensure you have both a Service and a Postgres resource created within your Blueprint.

  2. Navigate to the Blueprint tab and select the Service resource you want to connect to the Postgres resource.

    Selecting the Service resource in the Facets Blueprint tab to connect it to a Postgres resource
  3. Select Connect with other resource in the drop-down.

    The Connect with other resource option in the resource drop-down menu
  4. Now, select the corresponding Postgres database, enter the Key and select the required Value.

    Selecting the Postgres database and entering the environment variable Key and Value to link it to the Service
  5. Click Save.

You have successfully linked a Service resource with a Postgres database.

Linking a Service resource to an Ingress resource

In this example, we will be linking a Service resource to an Ingress resource using Ingress Rules.

  1. First, ensure you have both a Service and an Ingress resource created within your Blueprint.

  2. Navigate to the Blueprint tab and select the Ingress resource you want to connect to the Service resource.

  3. Select Configure from the drop-down.

  4. In the Form mode, under Ingress Rules, click Add New Entry.

  5. Mention the Service Name, Path, and Port.

    Adding an Ingress Rule entry with the Service Name, Path, and Port fields
  6. Click Save Changes.

    Saving the Ingress configuration after adding the ingress rule that links the Service

You have successfully linked a Service resource with an Ingress resource.