3.6.5 Create a Kubernetes Secret for Oracle Database Credentials
MicroTx Distributed Transactions and MicroTx Workflows support using Oracle Database as a persistent store to keep track of logs, metadata, and other operation details.
values.yaml file. MicroTx uses the
credentials secret to establish a connection to the database after the service is
installed.
Create a Kubernetes secret for MicroTx Workflows
To create a Kubernetes secret for MicroTx Workflows with the Oracle Database login details:
Create a Kubernetes secret for MicroTx Distributed Transactions
To create a Kubernetes secret for MicroTx Distributed Transactions with the Oracle Database login details:
-
Create a Kubernetes secret with the Oracle Database login details. Ensure that you create the Kubernetes secret in the namespace where you want to deploy MicroTx Distributed Transactions.
The following command creates a Kubernetes secret with the name
db-secretin theotmmnamespace with the password of useracme. When you run this command in your environment, replace these values with values specific to your environment.kubectl create secret generic db-secret \ --from-literal=secret='{"password":"*****", "username":"acme"}' -n otmm - Note down the name of the Kubernetes secret that you have created. You will need
to provide this name in the
values.yamlfile while deploying MicroTx Distributed Transactions.
values.yaml with the name of the Kubernetes secret that you have created to store the Oracle Database credentials and the connection string. Additionally, provide the name of the configuration map if you are using an Autonomous Database instance.
Parent topic: Set Up Oracle Database as Data Store