You can use a unique host name for a load balancer by providing an address and a placeholder in your container settings.

Before you begin

  • Verify that Containers for vRealize Automation is enabled in your supported vRealize Automation deployment.

  • Verify that you have container administrator or container architect role privileges.

About this task

The placeholder determines the location of an automatically generated part of the URL. This value is unique for each host name. The address supports the %s format character to specify where the placeholder is located.

Note:

If the placeholder is not used, it is positioned as a prefix or suffix of the host name, depending on the system configuration.

It is recommended you use a load balancer that can target requests to each node if you build an application which includes a service that must be publicly exposed and which must also scale in and out. After you provision the application, the load balancer configuration is updated whenever the service is scaled in or out by vRealize Automation.

Procedure

  1. Log in to vRealize Automation.
  2. Click the Containers tab.
  3. Click Templates in the left pane.
  4. Edit the template or image.

    Option

    Description

    To edit a template

    • Click Edit in the upper-right section of the template that you want to open.

    • If the template contains multiple templates, point to the template that you want to edit, and click Edit in the upper-right section of the template that you want to open.

    To edit an image.

    Click the arrow next to the image's Provision button, and click Enter additional info.

  5. Click the Network tab.
  6. In the Address text box, enter the location of the placeholder.

    The address host acts as a virtual host. To access the address host, you can add mapping information in the etc/hosts file or use a DNS that maps the container address to the host name.

  7. In the Container Port text box, enter the port number used to expose the service.

    Use the sample format provided in the form. If your container application exposes more than one port, specify which internal port or ports can expose the service.

  8. Click Save.