For more information about application access modes see "Access mode."
Services are a load balancing technology of Kubernetes. You can use services to expose the ports of an application to external networks.
To add a service:
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Add Service.
Configure the service parameters, and then click OK.
Table-1 Configuring service parameters
Parameter |
Description |
Service Name |
The system automatically generates a service name, which is appended to the application name. You can also modify the system-generated service name. |
Access Port Mappings |
Configure port mappings for accessing the application from outside or within the container cluster or MCP cluster. Note: Follow these restrictions to ensure correct monitoring and authentication: · When you configure port mappings for Istio applications with HTTP access enabled, make sure the port mapping names start with http-. · If HTTPS access is enabled for the Istio applications, make sure the port mapping names start with https-. |
Sticky Sessions |
Select whether to enable sticky sessions, which enable a pod to respond to all requests from the same IP address within the session timeout. |
Stateful applications can provide headless services, that is, generate a domain name for each pod and do not use load balancing to provide services. Each stateful application can have only one headless service. |
Deleting a service also deletes the application domain name associated with the service. |
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Delete for a service.
Click OK.
An application can have only application domain name. An added application domain name cannot be deleted and can only be edited.
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Application Domain Name.
Click Add.
Configure the domain name parameters, and then click OK.
Table-2 Configuring application domain name parameters
Parameter |
Description |
Domain Name |
Enter a domain name for external access, btv.com for example. |
Bind Instance |
Bind an Ingress Controller instances created in the cloud container engine. You can bind Ingress Controller instances only for container images deployed on an exclusive cluster. For more information about Ingress Controller, see "Managing Nginx Ingress Controller instances." For a container cluster that uses Kubernetes 1.23 or a later version, this field is optional and you can enter an instance in this field. |
Service |
Select a service created in "Add a service." |
Internal Port |
Configure the port number of the application. An external application accesses the application through the configured port. |
Load Balancing |
Select a load balancing algorithm:
|
Secure Routes |
Enable HTTPS access mode. |
Sticky Sessions |
Enable a pod to respond to all requests from the same client. |
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Application Domain Name.
Click Edit.
Edit the domain name parameters, and then click OK.
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click App Access Path.
Configure an app access path, and then click OK. You can use IP (or domain);port number/path to access the application.
In a network policy, you can specify which remote applications can access the container port. You can specify a custom network whose addresses can access the container port. You can also specify an excluded network within the custom network. Addresses in the excluded network cannot access the container port.
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Network Policy.
Enable Container Network Policy. This option is disabled by default, and any applications can access the application.
Click Add Rule.
Configure the rule parameters, and then click OK.
Table-3 Configuring network policy parameters
Parameter |
Description |
Direction |
Only the Inbound direction is supported. |
Protocol |
Select a protocol. Options include TCP and UDP. |
Container Port |
Specify a port for other applications to access the application.
|
Select Remote |
Select the application groups or applications that can access the application. |
Custom Network |
Specify a custom network. Addresses in the network can access the container port. |
Excluded Network |
Specify an excluded network. Addresses in the network cannot access the container port. |
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Network Policy.
Click the Delete icon for the network policy to be deleted,.
On the dialog box that opens, click OK.
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click Access Mode.
Click Edit.
Configure the access mode parameters, and click OK.
Table-4 Configuring access mode parameters
Parameter |
Description |
Not Configure |
Use the host IP address and application port to access applications. |
Application Domain Name |
Use the domain name to access an application.
Enable Sticky Sessions: Select this option to enable a pod to respond to all requests from the same client. |
IaaS Load Balancing |
Use the virtual IP address of a load balancer and the listening port of a listener to access an application.
|
Cookie Name |
Enter a cookie name, a string of 1 to 32 characters. The name cannot start or end with a dot (.) and cannot contain full-width characters (except Chinese words) or the following special characters: \ /*?"<>| |
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Select the Access tab.
Click App Access Path.