You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Java Sample Using an Oracle Wallet as a Kubernetes Secret
2
+
3
+
In this minimalistic Java sample we show you how to use a wallet downloaded by the Oracle Database Operator for Kubernetes.
4
+
5
+
An example is also provided to use a wallet downloaded from the Cloud Console.
6
+
7
+
This microservice can also be used to validate connectivity with the database by looking at its log or issuing http requests.
8
+
9
+
## Configuration
10
+
11
+
To configure the database wallet you only need to update [src/main/k8s/app.yaml](src/main/k8s/app.yaml) to use the same secret name that you used to download the wallet with the Operator.
12
+
13
+
The key part to understand its simplicity is that the deployment file uses the same mount path that the container configures in the oracle.net.wallet_location VM parameter [src/main/docker/Dockerfile](src/main/docker/Dockerfile). You don't need to change this file if you are going to use the example's mount path.
14
+
15
+
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:
0 commit comments