Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs-source/site/docs/setup/obaas.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ You must edit the **values.yaml** file as follows:

- (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.

- You must provide the OCID of your ADB-S instance in the setting **database.oci_db.ocid**
- You must update the values in the **database.oci_config** section as follows:
- The **oke** setting must be **false**. Setting this to true is not supported in 2.0.0-M4.
- Supply your **tenancy**, **user ocid**, **fingerprint**, and **region**. These must match the details you provided when you created the OCI configuration secret earlier.
- (Optional) To use an existing Oracle database in your applications, set **database.enabled** to **true** and provide following configurations:
- 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:
- Provide **database.type** as **"ADB-S"**.
- You must provide the OCID of your ADB-S instance in the setting **database.oci_db.ocid**
- You must update the values in the **database.oci_config** section as follows:
- The **oke** setting must be **false**. Setting this to true is not supported in 2.0.0-M4.
- Supply your **tenancy**, **user ocid**, **fingerprint**, and **region**. These must match the details you provided when you created the OCI configuration secret earlier.
- 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:
- Modify/Create the [Database Credentials Secret](./secrets.md#database-credentials-secret) to include the **dbhost** and **dbport** for the database instance.
- Leave **database.type** as blank.

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

Expand Down
13 changes: 13 additions & 0 deletions docs-source/site/docs/setup/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,19 @@ metadata:
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.
:::

:::note
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:.
```bash
kubectl create secret generic admin-user-authn \
--from-literal=username=ADMIN \
--from-literal=password="Welcome-12345" \
--from-literal=service="demo1_tp" \
--from-literal=dbname="demo1" \
--from-literal=dbhost="demodb.demohost" \
--from-literal=dbport="1522"
```
:::

### OCI Credentials Secret

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.
Expand Down