In this use case, using the Oracle Database Operator On-Prem Controller, you will add a new replica to an existing CDB CRD resource.
NOTE: It is assumed that before this step, you have followed the prerequisite steps.
This example uses add_replica.yaml
with:
- CDB CRD resource Name as
cdb-dev
- Container Database (CDB) Name as
goldcdb
- Scan Name as
goldhost-scan.lbsub52b3b1cae.okecluster.oraclevcn.com
- Database Server Name as
goldhost1.lbsub52b3b1cae.okecluster.oraclevcn.com
- ORDS Docker Image as
phx.ocir.io/<repo_name>/oracle/ords:21.4.3
- Database Listener Port as
1521
- Number of replicas for CDB CRD Resource as 2.
NOTE: For the details of the parameters to be used in the .yaml file, please refer config/crd/bases/database.oracle.com_cdbs.yaml
Use the file: add_replica.yaml for this use case as below:
- Deploy the .yaml file:
[root@test-server oracle-database-operator]# kubectl apply -f add_replica.yaml
- Monitor the Oracle DB Operator Pod for the progress of the CDB CRD Resource creation.
NOTE: Check the DB Operator Pod name in your environment.
[root@test-server oracle-database-operator]# kubectl logs -f pod/oracle-database-operator-controller-manager-76cb674c5c-f9wsd -n oracle-database-operator-system
Here is the sample output for a PDB created using Oracle DB Operator On-Prem Controller using file add_replica.yaml