From eb0f5cb30b9f0ee51d13d0f39279341f3067cd50 Mon Sep 17 00:00:00 2001 From: Shyam Radhakrishnan Date: Mon, 19 Jun 2023 12:22:29 +0530 Subject: [PATCH 1/2] Add docs for LBaaS support --- docs/src/networking/custom-networking.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/src/networking/custom-networking.md b/docs/src/networking/custom-networking.md index f35fceb5..1dbc1710 100644 --- a/docs/src/networking/custom-networking.md +++ b/docs/src/networking/custom-networking.md @@ -281,5 +281,25 @@ See [externally managed infrastructure][externally-managed-cluster-infrastructur using existing VCN infrastructure. ``` +## Example spec to use OCI Load Balancer as API Server load balancer + +By default, CAPOCI uses [OCI Network Load Balancer][oci-nlb] as API Server load balancer. The load balancer front-ends +control plane hosts to provide high availability access to Kubernetes API. The following spec can be used to +use [OCI Load Balancer][oci-lb] as the API Server load balancer. + +```yaml +apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 +kind: OCICluster +metadata: + name: "${CLUSTER_NAME}" +spec: + compartmentId: "${OCI_COMPARTMENT_ID}" + networkSpec: + apiServerLoadBalancer: + loadBalancerType: "lb" +``` + [sl-vs-nsg]: https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/securityrules.htm#comparison [externally-managed-cluster-infrastructure]: ../gs/externally-managed-cluster-infrastructure.md#example-spec-for-externally-managed-vcn-infrastructure +[oci-nlb]: https://docs.oracle.com/en-us/iaas/Content/NetworkLoadBalancer/introducton.htm#Overview +[oci-lb]: https://docs.oracle.com/en-us/iaas/Content/Balance/Concepts/balanceoverview.htm#Overview_of_Load_Balancing From 2104d6305c97eb33b88de2f4e461ad8b2be29eee Mon Sep 17 00:00:00 2001 From: Shyam Radhakrishnan Date: Wed, 21 Jun 2023 09:33:58 +0530 Subject: [PATCH 2/2] Add docs for LBaaS support --- docs/src/networking/custom-networking.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/networking/custom-networking.md b/docs/src/networking/custom-networking.md index 1dbc1710..47967b20 100644 --- a/docs/src/networking/custom-networking.md +++ b/docs/src/networking/custom-networking.md @@ -285,7 +285,8 @@ using existing VCN infrastructure. By default, CAPOCI uses [OCI Network Load Balancer][oci-nlb] as API Server load balancer. The load balancer front-ends control plane hosts to provide high availability access to Kubernetes API. The following spec can be used to -use [OCI Load Balancer][oci-lb] as the API Server load balancer. +use [OCI Load Balancer][oci-lb] as the API Server load balancer. The change from the default spec is to set +`loadBalancerType` field to "lb" in the `OCICluster` resource. ```yaml apiVersion: infrastructure.cluster.x-k8s.io/v1beta2