I have deployed and setup mysql in kubernetes via the stable/mysql helm chart backed by NFS storage class. When I deploy a second copy of the mysql chart for another app it fails with the following error:
[ERROR] --initialize specified but the data directory has files in it. Aborting.
I have tried adding a subPath
property to the values config but didn't help. It seems like it is mounting to the same path as the first mysql deployment. To my knowledge PersistentVolumeClaims should be isolated from one another and theirfore be an empty directory for mysql to mount into?
Any help of tips are appreciated.