A virtual service listens for traffic to an IP address, processes client requests, and directs valid requests to a member of the load balancer server pool.
A virtual service is a combination of an IP address and a port that uses a single network protocol. The virtual service is advertised to outside networks and is listening for client requests. When a client connects to the virtual service, the load balancer directs the request to a member of the load balancer server pool that you configured.
To secure SSL termination for a virtual service, you can use a certificate from the certificate library. For more information, see Import Certificates to the Certificates Library.
Prerequisites
-
Verify that you are an organization administrator.
- Verify that your system administrator has enabled load balancing on the NSX-T edge gateway.
- Verify that your system administrator has assigned at least one service engine group to the edge gateway.
- Add a load balancer server pool to the edge gateway.
Procedure
- In the top navigation bar, click Networking and click the Edge Gateways tab.
- Click the NSX-T Data Center edge gateway on which you want to create a virtual service.
- Under Load Balancer, click Virtual Services, and then click Add.
- Enter a meaningful name and, optionally, a description, for the virtual service.
- To activate the virtual service upon creation, toggle on the Enabled option.
- Select a service engine group for the virtual service.
- Select a load balancer pool for the virtual service.
- Enter an IP address for the virtual service.
- Select the virtual service type.
Option Description HTTP The virtual service listens for non-secure layer 7 HTTP requests. When you select this service type, it autopopulates the service port text box to 80, which you can replace with another valid port number.
HTTPS The virtual service listens for secure level 7 HTTPS requests. When you select this service type, it autopopulates the service port text box to port 443, which you can replace with another valid port number. Select an SSL certificate to be used for SSL termination.
L4 The virtual service listens for layer 4 requests. When you select this service type, it autopopulates the service port text box to 80, which you can replace with another valid port number.
L4 TLS The virtual service listens for secure layer 4 TLS requests. When you select this service type, it autopopulates the service port text box to TCP port 443, which you can replace with another valid port number. Select an SSL certificate to be used for SSL termination.
- Click Save.