I am running mysql as an init container of a kubernetes deployment.
For various reasons, I need to start mysql/restore a backup of mysql in the init container -> save it into a pvc, then the main pod will be a mysql pod with the data attached.
This is because I need to take a snapshot of the disk, and I will have CI monitor the snapshot before the pod is ready/running.
�%
You can start mysql sleeping in the background before mysqld. Does this work for you?