I´m working on a cluster of Kubernetes and I´m using docker. I have created a deployment with the Oracle 23 ai image and when I restart the pod the changes I´ve made have dissapeared. this is my declaration of the volume at the yaml archive:
volumeMounts:
- mountPath: /opt/oracle/oradata
name: oraclelite-data-volume
If I let this configuration, the pod doesn´t work because of an error of permission denied and checking the official website I´ve found this: -v /opt/oracle/oradata
The data volume to use for the database.
Has to be writable by the Unix "oracle" (uid: 54321) user inside the container.
If omitted the database will not be persisted over container recreation.
But I can´t grant those permissions or I don´t know how to do it.
Thank you very much