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

Sample yaml file for using 'Kind: CDB' on GKE / Google Cloud #131

Open
dazdaz opened this issue Aug 25, 2024 · 3 comments
Open

Sample yaml file for using 'Kind: CDB' on GKE / Google Cloud #131

dazdaz opened this issue Aug 25, 2024 · 3 comments

Comments

@dazdaz
Copy link

dazdaz commented Aug 25, 2024

Sample 'Kind: CDB' sample yaml for GKE on Google Cloud.

There is a sample here for OCI, can we have one for other cloud providers.
https://github.com/oracle/oracle-database-operator/blob/main/docs/multitenant/provisioning/cdb.yaml

What steps are required to get this to work on Google Cloud.

@ilfur
Copy link

ilfur commented Aug 26, 2024

Hi dazdaz (weeeee I loved my Amiga, still have a highly modded A500 somewhere in my shelf),
I am no OraOperator developer, but another user - maybe I can help out.
I too think this should be documented a bit differently, but to the best of my knowledge this CDB example will work for other cloud providers too, just need to modify the connect string to point to Your personal CDB somewhere.
From the configuration in the CDB.yaml I can see that the CDB mentioned is running in the same VCN/network as the kubernetes cluster. So basically You need some Oracle Database running somewhere addressible (firewall open on port 1521, routes OK) and it should work.
What I successfully tried out was to host a SingleInstanceDatabase as resource in my kubernetes cluster (like 23free or 19 enterprise) and THEN use that SAME database for CDB and PDB resources. So You can both patch it and manage PDBs in it. Quite practical.
Hope that helps - or just write me for more YAMLs :-)

@dazdaz
Copy link
Author

dazdaz commented Aug 26, 2024

Hi there, thanks for the message ... the Amiga certainly is timeless :)

This is where i'm at:
a) I've had to create a whole bunch of K8s RBAC config
b) Created a service in GKE, equivalent to use networking inside the cluster
c) I am using this image, but don't know if there's anything later ? ordsImage: "fra.ocir.io/frul1g8cgfam/pub_ordsrestmgmt:23.1"

Comparing against your YAML files would be very helpful, would you mind throwing them up into your repo ?

@ilfur
Copy link

ilfur commented Aug 26, 2024

Hi,
in fact there is a newer image for ords:
fra.ocir.io/frul1g8cgfam/pub_ordsrestmgmt:23.4
This is the latest one I got working - the REST Management API for Oracle Databases has changed in later images and OraOperator cannot create new PDBs anymore when using ORDS >= 24.x

My github project "OraOperatorDBWithApp" has several branches, the branch "sidbpluscdb" currently contains cdb/pdb resources for a remote Oracle Database outside kubernetes. Some commits back it was based on an in-cluster Oracle 23free database though, so there was also a "sidb.yaml" file which You can recover if You like.
https://github.com/ilfur/OraOperatorDBWithApp/tree/sidbpluscdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants