Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple vDC #545

Open
O5ten opened this issue Nov 14, 2023 · 0 comments
Open

Support for multiple vDC #545

O5ten opened this issue Nov 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@O5ten
Copy link

O5ten commented Nov 14, 2023

Is your feature request related to a problem? Please describe.

We are trying to deploy a k8s cluster over multiple vDCs and the provider only has support for a single vDC. We want it because we have requirements of high availability with site redundancy over two separate datacenters but with extremely good latency.

Consider the following yaml, where we specify a VCDCluster kind.

apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: VCDCluster
metadata:
  name: ${CLUSTER_NAME}
  namespace: ${TARGET_NAMESPACE}
spec:
  site: ${VCD_SITE} # VCD endpoint with the format https://vcd_host/. No trailing '/'
  org: ${VCD_ORGANIZATION} # VCD organization name where the cluster should be deployed
  ovdc: ${VCD_ORGANIZATION_VDC} # VCD virtual datacenter name where the cluster should be deployed
  ovdcNetwork: ${VCD_ORGANIZATION_VDC_NETWORK} # VCD virtual datacenter network to be used by the cluster
  useAsManagementCluster: false # intent to use the resultant CAPVCD cluster as a management cluster; defaults to false
  userContext:
    secretRef:
      name: capi-user-credentials
      namespace: ${TARGET_NAMESPACE}
  loadBalancerConfigSpec:
    vipSubnet: "" # Virtual IP CIDR for the external network

Here i would like to at least be able to specify multiple ovdc so that nodes are spun up over multiple VCDs for a stretched cluster.

Describe the solution you'd like

Make ovdc optional and introduce a field ovdcs that takes a list of ovdcs.

ovdcs: 
  - VCD_ORGANIZATION_VDC_1
  - VCD_ORGANIZATION_VDC_2

Describe alternatives you've considered

I can (and will) set up two clusters, one for each dc and treat them as such. But it isn't really the solution we would like at this point, so if it would be possible to specify two ovdcs then that would be great!

Additional context

No response

@O5ten O5ten added the enhancement New feature or request label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant