Tanzu for Postgres on Cloud Foundry 10.0

Enable Service Gateway Access for Postgres

Last Updated February 06, 2025

You can enable service gateway access for Tanzu for Postgres on Cloud Foundry. This topic tells you how.

Service gateway access enables a Tanzu for Postgres on Cloud Foundry on-demand instance to connect to external components that are not on the same foundation as the service instance. These components might be on another foundation or hosted outside of the foundation.

To enable service gateway access for an on-demand offering, you must Enable TCP routing by using the Tanzu Application Service for VMs tile.

Enable TCP Router by Using the TAS for VMs Tile

TCP routing is deactivated by default.

To enable TCP routing:

  1. Go to the Networking tab on the sidebar of the TAS for VMs tile.

  2. Under TCP routing, select Enable.

  3. For TCP routing ports, enter a range of valid ports. For example, 1024–1123

    TCP routing form for entering ports.

  4. The ports you assign must not overlap with any other application or tile.

  5. Apply your changes in Tanzu Operations Manager for the TAS for VMs tile to create the TCP router.

To enable service gateway access for an on-demand offering:

  1. Enable Service Gateway Using the TAS for VMs Tile

Enable Service Gateway by Using the TAS for VMs Tile

Service gateway is deactivated by default.

To enable service gateway:

  1. Go to the On-Demand Service Settings tab on the sidebar of the TAS for VMs tile.

  2. Under Enable Services Gateway, select Yes and specify FQDN for TCP Router

    On-demand service settings.

  3. Define a port range within the TCP routing ports range defined earlier in previous section. Also, you must make sure to avoid conflicting or overlapping port ranges, if used by any other Tile(s).

    Providing this port range is mandatory to assign a free port dynamically to the service instance, when configured with services gateway enabled.

  4. Apply your changes in Tanzu Operations Manager for the TAS for VMs tile to create the service gateway.

Developer Workflow

For instructions for app developers, see Create a Service Instance with Service Gateway Access.