Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changing secret name
  • Loading branch information
psilberk committed Oct 27, 2021
commit cc858c34ac482fa0165d4c20771b5fd2919425bd
4 changes: 2 additions & 2 deletions java/autonomousdb-wallet-secret-sample/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Java Sample Using an Oracle Wallet as a Kubernetes Secret

In this minimalistic Java sample we show you how to use a wallet downloaded by the Oracle Database Operator for Kubernetes.
In this minimalistic Java sample we show you how to use a wallet downloaded by the [Oracle Database Operator for Kubernetes](https://github.com/oracle/oracle-database-operator).

An example is also provided to use a wallet downloaded from the Cloud Console.

Expand All @@ -15,7 +15,7 @@ The key part to understand its simplicity is that the deployment file uses the s
If you want to configure a previously downloaded wallet you can just create the secret (and use the same secret name for the Pod's spec) pointing to the directory where you unzipped the wallet:

```sh
kubectl create secret generic database-wallet --from-file=<path-to-wallets-unzipped-folder>
kubectl create secret generic instance-wallet --from-file=<path-to-wallets-unzipped-folder>
```
The Java microservice retrieves username, password and url also from a secret. To create it you can use the following script as an example:

Expand Down
5 changes: 2 additions & 3 deletions java/autonomousdb-wallet-secret-sample/src/main/k8s/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ spec:
# Either the secret name of the downloaded wallet with the kubernetes operator
# TODO add link to operator
# Or the secret name holding the wallet created ad-hoc:
# kubectl create secret generic database-wallet --from-file=<path to wallet dir>
# secretName: database-wallet
secretName: bindadblocal-instance-wallet
# kubectl create secret generic instance-wallet --from-file=<path to wallet dir>
secretName: instance-wallet
containers:
- name: adb-health-check
image: adb-health-check
Expand Down