Linking Resources
How to link Resources?
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.
- First, ensure you have both a Service and a Postgres resource created within your Blueprint.
- Navigate to the Blueprint tab and select the Service resource you want to connect to the Postgres resource.
- Select Configure from the drop-down.
- Select Environment Variables from the left pane and click Add Environment Variables.
- In the pop-up that appears, select Resource Reference.
- Now, select the corresponding Postgres database, enter the Key and select the required Value.
- 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.
- First, ensure you have both a Service and an Ingress resource created within your Blueprint.
- Navigate to the Blueprint tab and select the Ingress resource you want to connect to the Service resource.
- Select Configure from the drop-down.
- In the Form mode, under Ingress Rules, click Add New Entry.
- Mention the Service Name, Path, and Port.
- Click Save Changes.
You have successfully linked a Service resource with an Ingress resource.
Updated 12 days ago