Creating a Public Load Balancer
On Compute Cloud@Customer, when creating a load balancer (LB), you have two main options: you can provide minimal information when creating the LB and then add other resources later, or you can provide all of the information when creating the LB.
This topic creates a private load balancer with minimal information. You need to assemble other components to complete the LB after creation. These are added by editing the LB resources.
For access control reasons, you must select the compartment where you want the LB to reside. The load balancer doesn't have to be in the same compartment as the VCN or backend set. If you aren't sure which compartment to use, put the load balancer in the same compartment as the VCN.
You must specify a display name for the load balancer. It doesn't have to be unique, and you can change it.
-
In the Compute Cloud@Customer Console navigation menu, select Networking, then select Load Balancers.
-
Select Create Load Balancer.
-
Enter the following information:
Name: Enter a descriptive name for the LB.
Avoid entering confidential information.-
Create in Compartment: Select the compartment in which to create the LB.
- Visibility Type: Select Public Load Balancer. The LB receives a public IP address accessible from the internet and acts as a front end for all incoming traffic.
-
Select Public IP: You can select the public IP address to use from the pull-down menu. If the pull-down menu displays "None Available" or if you don't select a public IP from the list, the public load balancer automatically assigns an available public IP from the configured Public IP range.
- Subnet: Select the name of the VNC and Subnet for the LB from the pull-down menus.
- Network Security Group: You can use the Default (Enable Network Security Groups box is cleared), or assign an available NSG. If the choices show None Available, you can add an NSG with the +Add Network Security Group option.
-
Select Create Load Balancer.
To display the details of the new LB, view the LB.
-
Use the oci lb load-balancer create command and required parameters to create a public load balancer.
oci lb load-balancer create ---compartment-id compartment_OCID --display-name name-of-load-balancer --shape-name 400Mbps --is-private false --subnet-ids [subnets_complex_ type]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Use the CreateLoadBalancer operation to create a load balancer.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.