Creating a Worker Load Balancer Subnet (VCN-Native Pod)
Create the following resources in the order listed:
-
Worker load balancer security list
-
Worker load balancer subnet
Create a Worker Load Balancer Security List
Create a security list. See Creating a Security List. For Terraform input, see Example Terraform Scripts (VCN-Native Pod).
This security list defines traffic, such as applications, that is allowed to contact the worker load balancer.
For this example, use the following input for the worker load balancer subnet security list. These sources and destinations are examples; adjust these for your applications.
When you create an external load balancer for your containerized applications (see Exposing Containerized Applications), remember to add that load balancer service front-end port to this security list.
Console property |
CLI property |
---|---|
|
|
One egress security rule:
|
One egress security rule:
|
Two ingress security rules: |
Two ingress security rules:
|
Ingress Rule 1
|
Ingress Rule 1
|
Ingress Rule 2
|
Ingress Rule 2
|
Create the Worker Load Balancer Subnet
Create a subnet. See Creating a Subnet. For Terraform input, see Example Terraform Scripts (VCN-Native Pod).
For this example, use the following input to create the worker load balancer subnet. Use the OCID of the VCN that was created in Creating a VCN (VCN-Native Pod). Create the worker load balancer subnet in the same compartment where you created the VCN.
Create either a private or a public worker load balancer subnet. Create a public worker load balancer subnet to use with a public cluster. Create a private worker load balancer subnet to expose applications in a private cluster.
Console property |
CLI property |
---|---|
|
|
The difference in the following private subnet is the VCN private route table is used instead of the public route table.
Console property |
CLI property |
---|---|
|
|