You can add a network configuration to a container template to connect the containers that comprise the template. This network configuration is automatically implemented for any applications that use the template. You can add either an existing network or configure and add a new network as necessary.

Prerequisites

  • Verify that you have a template available. If not, you must first create one.

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

  • Verify that at least one host is configured and available for container network configuration.

Procedure

  1. Log in to vRealize Automation.
  2. Click the Containers tab.
  3. Click Templates in the left pane.

    An array of icons displays the templates and images that are available for provisioning.

  4. (Optional) : Modify the view to show only templates by clicking View: Templates in the upper right header above the icons.
  5. Click Edit in the upper-right section of the template that you want to customize.

    The Edit Template page appears, displaying the container icons, including a blank icon with a plus-sign.

  6. Hover the cursor over the blank icon until the Add Network icon appears.
  7. Click the Add Network icon.

    The Add Network panel appears. You can add an existing network or configure and add a new network.

  8. (Optional) : Add an existing network.
    1. Click the Existing check box.
    2. Click anywhere inside the Name field to display a drop-down list of existing networks.
    3. Select the network and click Save.

    The Add Network panel disappears and the added network appears as a horizontal icon below the container icons in the Edit Template page. A network connector icon also displays on the bottom border of the container icons.

  9. (Optional) : Configure and add a new network.
    1. In the Name field, enter any string value.

      When you save the new configuration, the name value will be appended with a unique identifier.

    2. Click the Advanced check box.

      Additional network configuration settings appear in the Add Network panel.

    3. Complete the network configuration settings.

      Option

      Description

      IPAM configuration

      Subnet

      Provide subnet and gateway values that are unique to this network configuration. They must not overlap with any other networks on the same container host.

      Custom properties

      Optionally, specify custom properties for the new network configuration. These property names are case-sensitive.

      containers.ipam.driver

      For use with containers only. Specifies the IPAM driver to be used when adding a Containers network component to a blueprint. The supported values depend on the drivers that are installed in the container host environment in which they are used. For example, a supported value might be infoblox or calico depending on the IPAM plug-ins that are installed on the container host.

      containers.network.driver

      For use with containers only. Specifies the network driver to be used when adding a Containers network component to a blueprint. The supported values depend on the drivers that are installed in the container host environment in which they are used. By default, Docker-supplied network drivers include bridge, overlay, and macvlan, while Virtual Container Host (VCH)-supplied network drivers include the bridge driver. Third-party network drivers such as weave and calico might also be available, depending on what networking plug-ins are installed on the container host.

      Hosts

      Specify the network hosts, as applicable.

    4. Click Create Network.

    The Add Network panel disappears and the added network appears as a horizontal icon below the container icons in the Edit Template page. A network connector icon also displays on the bottom border of the container icons.

  10. To connect a container to the newly added network, drag the network connector icon from the container to any point on the horizontal icon representing the network.