I use initContainers inside a deployment. An init container is created for each pods.
It is possible to get only one init container for the whole deployment ?
edit:
use case: need to run some db migration commands before creating the pods. So i have put these commands inside init pods.
problems: - each time a pod is created, the init container is created - on scale up init container is created
solution: I have finally found a good example for solving this problem in this article