Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Identify the Load Balancer IP and the hostname of the each of the clusters that are available in the deployed application.
    For more information, see Getting the Runtime Topology of an Application.

  2. Anchor
    step2
    step2
    Map the cluster hostname with one of the Load Balancer IPs.
    Each Load Balancer IP refers to the IP of a node. 

    1. Open the /etc/hosts/ file.
      Example:
      If you are using Vim, which is a text editor, you can open the file in the terminal as follows:

      Code Block
      vim /etc/hosts/
    2. Define mapping for all the hostnames against the available LB IPs in the /etc/hosts/ file and save the file.
      <LB_IP> <HOSTNAME> 
      Example:

      Code Block
      172.17.8.103 wso2as-521-application.mgt.as.wso2.org
      Info

      Each LB IP can have more than one hostname mappings. However, these mappings need to be defined separately in the /etc/hosts/ file.

  3. Use the following URL format to access the WSO2 service (e.g., the ESB service):

    Localtabgroup
    Localtab
    activetrue
    titleEC2
    Code Block
    http://<INSTANCE_HOSTNAME>:<LB_PROXY_PORT>/<CONTEXT_PATH>

    Example:

    Code Block
     http://wso2as-521-application.mgt.as.wso2.org:80/index.php
    Localtab
    titleKubernetes
    Code Block
    http://<LOAD_BALANCER_IP>:<PROXY_SERVICE_PORT>/<CONTEXT_PATH>

    Example:

    Code Block
     http://172.17.8.103:30000/index.php
    Info

    Currently, it is not possible to query auto generated Kubernetes proxy service ports via the Stratos API. However, they can be found on the Stratos server log.

...