Deploy an Opensearch cluster with ISM policies attached - Kubernetes

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
I would like to deploy an Opensearch cluster with ISM policies attached and configured per a specific index/template. I would like to configure an ISM policy and then attach the policy to one or more indexes, like the link below:

Is there a way to do so or just via Opensearch Dashboard?

Thanks in advance,