Creating a Public NLB
On Compute Cloud@Customer, you can create a public Network Load Balancer (NLB) using the Compute Cloud@Customer Console, CLI, or API.
When creating an NLB, you have two main options:
- You can provide minimal information, and then assemble the components of the NLB, such as the backend set or other parameters.
-
You can provide all information during the NLB creation.
This topic creates a public NLB with minimal information. After creation, assemble other components to complete the NLB configuration. Other components are added by editing the NLB resources.
You must specify a display name for the NLB. It doesn't have to be unique, and you can change it. Avoid entering confidential information.
-
In the Compute Cloud@Customer Console navigation menu, select Networking, then select Network Load Balancers.
-
Select Create Load Balancer.
-
Enter the following information:
-
Name: Enter a descriptive name for the NLB. Avoid entering confidential information.
-
Create in Compartment: Select the compartment in which to create the NLB.
- Visibility Type: Select Public Load Balancer. The NLB receives a public IP address accessible from the internet and acts as a frontend for all incoming traffic.
-
Select Public IP: You can select the public IP address from the drop-down menu. If the pull-down menu displays None Available, or if you don't select a public IP from the list, a public IP from the configured range is automatically assigned.
- Subnet: Select the name of the VNC and Subnet from the drop-down menus.
-
Network Security Group: You can use the default (the Enable Network Security Groups box is cleared), or assign an available NSG to the load balancer. If the choices show None Available, you can add an NSG with the +Add Network Security Group option.
-
Tagging: (Optional) Add one or more tags to this resource. Tags can also be applied later. For more information about tagging resources, see Resource Tags.
-
-
Select Create Network Load Balancer.
-
Use the oci nlb network-load-balancer create command and required parameters to create a new public NLB in the specified compartment.
oci nlb network-load-balancer create --compartment-id <compartment_OCID> --display-name <name-of-network-load-balancer> --is-private false --subnet-id <subnet_OCID>
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateNetworkLoadBalancer operation to create a new public NLB in the specified compartment.
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.