How about some kind of startup condition as a proxy for your original entrypoint?
May I ask why you're running DB and stateful systems in k8s in the first place? The benefits of doing it is not likely to outweigh the difficulty of getting it right.
May I ask why you're running DB and stateful systems in k8s in the first place? The benefits of doing it is not likely to outweigh the difficulty of getting it right.
Because it is the easiest way to get our integration tests in CI working fine. We may change in future, if there is a need.
A dockerfile based docker on with simple shell script should do. Maybe even a docker exec but that's pushing it.
I love k8s but in this case it seems like wrong tool for the job.
Tell me uf you'd like some sample code.