cluster-api-provider-oci icon indicating copy to clipboard operation
cluster-api-provider-oci copied to clipboard

Support more configs for cluster and VCN creation

Open zihuaweng opened this issue 1 year ago • 1 comments

What would you like to be added:

  1. Support the following config in OCIManagedControlPlaneSpec: https://github.com/oracle/cluster-api-provider-oci/blob/b53ef08340b0f763ca776f6e828348cfd9e4662e/api/v1beta2/ocimanagedcontrolplane_types.go#L147 Additional options: serviceLbSubnetIds https://docs.oracle.com/en-us/iaas/api/#/en/containerengine/20180222/datatypes/ClusterCreateOptions https://github.com/oracle/cluster-api-provider-oci/blob/b53ef08340b0f763ca776f6e828348cfd9e4662e/api/v1beta2/ocimanagedcontrolplane_types.go#L88 Additional options: subnetId https://docs.oracle.com/en-us/iaas/api/#/en/containerengine/20180222/datatypes/CreateClusterEndpointConfigDetails

  2. Support for prohibitPublicIpOnVnic https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/datatypes/CreateSubnetDetails

  3. Add support for customized route table: https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/datatypes/CreateRouteTableDetails Currently we can only choose to skip or not skip route tables https://github.com/oracle/cluster-api-provider-oci/blob/b53ef08340b0f763ca776f6e828348cfd9e4662e/api/v1beta2/types.go#L1090

  4. Add support for Dynamic Routing Gateways https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/managingDRGs.htm

Why is this needed: We would like to automate networking and cluster setup using CAPOCI. These features are required for our networking and cluster setup

zihuaweng avatar Jul 16 '24 15:07 zihuaweng

Update: For No.1 We are able to achieve this by adding the role parameter to the lb subnet and control-plane-endpoint subnet https://github.com/oracle/cluster-api-provider-oci/blob/main/api/v1beta2/types.go#L34

For No.2 We are able to set prohibitPublicIpOnVnic by setting the type of subnet https://github.com/oracle/cluster-api-provider-oci/blob/main/api/v1beta2/types.go#L858

For No.4: There is existing support to add DRG

zihuaweng avatar Jul 16 '24 22:07 zihuaweng