@Mamdouh You can also try using an init container that will remove the plugin from the OpenSearch pod before deploying it. That way you’ll avoid building a custom image.
Alternatively, if you just looking to disable ML in OpenSearch Dashboards you can disable it through opensearch_dashbaords.yml by setting: