oracle-database-operator icon indicating copy to clipboard operation
oracle-database-operator copied to clipboard

When creating Autonomous or DBCS, it is not possible to specify region

Open hyder opened this issue 1 year ago • 2 comments

When creating a new Autonomous DB or Base DB system, it is currently not possible to specify the region where we want the database created. This is because the CRD itself doesn't define it and this imposes an unnecessary constraint of having to run a Kubernetes cluster in the same region just to provision the database in the target region.

It would be very desirable to be able to specify the target database's region and allow the operator to create it.

hyder avatar Apr 12 '24 12:04 hyder

I suppose you use instance principal. If you use the ociConfig section, you can create ADB in any tenancy & region. I've been doing that lately from a minikube cluster on my dev machine.

laguvard avatar Jun 14 '24 16:06 laguvard

Instance principal, yes, region is not configurable. But that's OK, usually we want to use instance principal in the same region as the instance.

While ociConfig may be available for user principal and workload identity, I couldn't find the documentation specifying how to use ociConfig. E.g., I was looking for something like:

To authenticate with user principal, set ociConfig to a configmap and secret with the following values...

configmap, secret definitions

... another example for workload identity

anders-swanson avatar Jul 18 '24 15:07 anders-swanson

Refer this https://github.com/oracle/oracle-database-operator/blob/main/docs/dbcs/README.md#1-create-a-kubernetes-configmap-in-this-example-we-create-a-kubernetes-configmap-named-oci-cred-with-the-oci-account-we-are-using

Now there is option to specify region for Oracle Base Database Service to create Database in specified region in Configmap, If this the same you are looking for DBCS, then i think we can close this now.

s1saurabh avatar Apr 09 '25 07:04 s1saurabh

Please refer the above links posted by @s1saurabh. If you see any issue, please reopen it.

psaini79 avatar Apr 09 '25 16:04 psaini79