Skip to content

Commit 3965487

Browse files
support for byo databases
1 parent cadf3f0 commit 3965487

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

docs-source/site/docs/setup/obaas.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@ You must edit the **values.yaml** file as follows:
2020

2121
- (Optional) If you want to install any components in this chart into their own separate namespace, you can override the global namespace by setting a value in the **namespace** property inside the section for that component.
2222

23-
- You must provide the OCID of your ADB-S instance in the setting **database.oci_db.ocid**
24-
- You must update the values in the **database.oci_config** section as follows:
25-
- The **oke** setting must be **false**. Setting this to true is not supported in 2.0.0-M4.
26-
- Supply your **tenancy**, **user ocid**, **fingerprint**, and **region**. These must match the details you provided when you created the OCI configuration secret earlier.
23+
- (Optional) To use an existing Oracle database in your applications, set **database.enabled** to **true** and provide following configurations:
24+
- If the database is an Oracle Autonomous Database in OCI and you want Oracle Database Operator to access and create **tns** and **wallet** secrets containing the connection information for the database:
25+
- Provide **database.type** as **"ADB-S"**.
26+
- You must provide the OCID of your ADB-S instance in the setting **database.oci_db.ocid**
27+
- You must update the values in the **database.oci_config** section as follows:
28+
- The **oke** setting must be **false**. Setting this to true is not supported in 2.0.0-M4.
29+
- Supply your **tenancy**, **user ocid**, **fingerprint**, and **region**. These must match the details you provided when you created the OCI configuration secret earlier.
30+
- If the database is not an Oracle Autonomous Database in OCI or you do not want Oracle Database Operator to create the **tns** secret containing the connection information for the database:
31+
- Modify/Create the [Database Credentials Secret](./secrets.md#database-credentials-secret) to include the **dbhost** and **dbport** for the database instance.
32+
- Leave **database.type** as blank.
2733

2834
**Important note**: Please pause to double check all of the values are correct. If there are any errors here, the OBaaS provisioning will fail.
2935

docs-source/site/docs/setup/secrets.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,19 @@ metadata:
168168
If you are planning to install multiple OBaaS instances, AND you want to use different databases, you need to create one of these secrets for EACH instance, and they must have different names.
169169
:::
170170
171+
:::note
172+
If you want to use an existing Oracle Database in your applications which is not deployed as an Oracle Autonomous Database in OCI or you do not want Oracle Database Operator to create/sync the **tns** secret containing the connection information for the database, provide the **dbhost** and **dbport** for the database instance while creating the secret as follows:.
173+
```bash
174+
kubectl create secret generic admin-user-authn \
175+
--from-literal=username=ADMIN \
176+
--from-literal=password="Welcome-12345" \
177+
--from-literal=service="demo1_tp" \
178+
--from-literal=dbname="demo1" \
179+
--from-literal=dbhost="demodb.demohost" \
180+
--from-literal=dbport="1522"
181+
```
182+
:::
183+
171184
### OCI Credentials Secret
172185

173186
Run the provided script to generate the appropriate command for you from your OCI configuration. Note: You must have a working OCI CLI configured with access to your tenancy and the region where you want to install, on the machine where you run this command. The python script generated a command that you need to execute. to create the key.

0 commit comments

Comments
 (0)