Help Center> ServiceStage> User Guide> Component Management> Configuring the Component Access Mode
Updated on 2024-05-28 GMT+08:00

Configuring the Component Access Mode

This section describes how to configure the access mode for a component. After the configuration, you can access the services provided by the component in the configured mode.

You can only configure the component access mode for components that are deployed in the Kubernetes environment and are in the Running state.

Procedure

  1. Log in to ServiceStage.
  2. Use either of the following methods to go to the Access Mode page.

    • On the Application Management page, click the application to which the component belongs, and click the target component in Component List. Alternatively, right-click the component and go to the component Overview page from the shortcut menu, and choose Access Mode in the left navigation pane.
    • On the Component Management page, click the target component. Alternatively, right-click the component and go to the component Overview page from the shortcut menu, and choose Access Mode in the left navigation pane.

  3. Click Add Service and set the following parameters. Parameters marked with an asterisk (*) are mandatory.

    Parameter

    Description

    *Service Name

    The service name can be the same as the component name.

    Access Mode

    The options are as follows:

    • Intra-cluster access: allows access from other services in the same cluster over TCP/UDP.
    • Intra-VPC access: allows access from other services in the same VPC over TCP/UDP.
    • Public network access: allows access from the Internet over TCP/UDP, including public EIP.

    Intra-VPC Load Balancing

    This parameter is available when Access Mode is set to Intra-VPC access.

    *Access Type

    • This parameter is available when Access Mode is set to Intra-VPC access and Intra-VPC load balancing is enabled.
    • This parameter is available when Access Mode is set to Public network access.

    Service Affinity

    This parameter is available when Access Mode is set to Intra-VPC access or Public network access.

    *Port Mapping

    Sets Protocol, Container Port, and Access Port for accessing the service.

    Figure 1 Setting the component access mode

  4. Click OK.