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.
Prerequisites
- You can set the component access mode only for the components created and deployed using the following methods:
- The component status is Running. For details about how to check the component status, see Viewing Component Details.
- The workload type of the component must be Stateless, Stateful, or DaemonSet.
Configuring the Component Access Mode
- Log in to ServiceStage.
- 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, click the target component in Component List, and choose Access Mode in the left navigation pane.
- On the Component Management page, click the target component and choose Access Mode in the left navigation pane.
- If the component is created by Creating a Component by Importing a CCE Workload and is not enabled:
- In the displayed dialog box, click OK.
- On the Enable Component page, click Enable and wait until the component is restarted.
- 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.
The name contains 1 to 63 characters starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, and hyphens (-) are allowed.
Access Mode
If a CCE cluster is bound to the component deployment environment, the following service access modes are supported:
- 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 EIP.
If a custom Kubernetes cluster is bound to the component deployment environment, the following access service modes are supported:
- Intra-cluster access: allows access from other services in the same cluster over TCP/UDP.
- NodePort: exposes services through each Node's IP address and static port (NodePort).
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.
- Protocol: The value can be TCP, UDP, or TCP/UDP.
- Container Port: The value range is 1 to 65535.
- Access Port: The value range is 1 to 65535.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot