Consider a kubernetes deployment with database statefulset defined with 3 replicas. Also the application pod has 3 replicas.
The database schema creation scripts are