For those securityContext.fsGroup not working case.
user-defined InitContainers should run before init and any other existing init containers.
Then user-defined InitContainers can run chown -R 999:999 /var/lib/mysql to change the permission.
Probably need to modify code here