Creating a Control Plane Load Balancer Subnet (VCN-Native Pod)
Create the following resources in the order listed:
-
Control plane load balancer security list
-
Control plane load balancer subnet
Create a Control Plane Load Balancer Security List
Create a security list. See Creating a Security List. For Terraform input, see Example Terraform Scripts (VCN-Native Pod).
The control plane load balancer accepts traffic on port 6443, which is also called kubernetes_api_port
in this guide. Adjust this security list to only accept connections from where you expect the network to run. Port 6443 must accept connections from the cluster control plane instances and worker instances.
For this example, use the following input for the control plane load balancer subnet security list.
Console property |
CLI property |
---|---|
|
|
One egress security rule:
|
One egress security rule:
|
Six ingress security rules: |
Six ingress security rules:
|
Ingress Rule 1:
|
Ingress Rule 1:
|
Ingress Rule 2:
|
Ingress Rule 2:
|
Ingress Rule 3:
|
Ingress Rule 3:
|
Ingress Rule 4:
|
Ingress Rule 4:
|
Ingress Rule 5:
|
Ingress Rule 5:
|
Ingress Rule 6:
|
Ingress Rule 6:
|
Create the Control Plane 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 control plane load balancer subnet. Use the OCID of the VCN that was created in Creating a VCN (VCN-Native Pod). Create the control plane load balancer subnet in the same compartment where you created the VCN.
Create either a private or a public control plane load balancer subnet. Create a public control plane load balancer subnet to use with a public cluster. Create a private control plane load balancer subnet to use with a private cluster.
See Private Clusters for information about using Local Peering Gateways to connect a private cluster to other instances on the Compute Cloud@Customer and using Dynamic Routing Gateways to connect a private cluster to the on-premises IP address space. To create a private control plane load balancer subnet, specify one of the following route tables:
-
vcn_private
-
lpg_rt
-
drg_rt
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. Depending on your needs, you could specify the LPG route table or the DRG route table instead.
Console property |
CLI property |
---|---|
|
|