radondb-mysql-kubernetes
radondb-mysql-kubernetes copied to clipboard
Failed to start pod for the first time
Is your feature request related to a problem? Please describe.
1、The slowlog and auditlog in the pod will report an error when the mysql pod starts up for the first time each time, which will trigger a restart. 2、both slowlog and auditlog use tail -f as the startup command, and at the same time, it is the "/var/log/mysql/" of the container directory mounts an empty directory. When mysql is not started, the log file is not generated,so the log container cannot be started for the first time, resulting in a restart record
Describe the solution you'd like
It is recommended to add readiness probe or liveness probe. , to define the startup sequence
Describe alternatives you've considered
Additional context
Thanks for your suggestion, we will fix it right away