Opensearch Helm Installation Issue

Hi,
I’m trying to install Opensearch using the Helm chart.

  1. In case i need 3 Master and 3 Data pods - Do i need to have 2 deployments ? One for master and one for data ?

  2. As part of the value yml i have enable the Initcontainer in order to update the vm.max_map_count. When i’m running the deployment i can see that the pods are restarting i’m getting the an error message that the vm.max_map_count should be updated. In the first time when the pod is starting i can see that the init container is running successfully, i have also took the Initcontainer configuration and place it on a different deployment and it is working . Any suggestion ?