How to import OpenSearch Dashboards as part of Kubernetes deployment when pod is ready

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

Describe the issue:
I want to import the OpenSearch Dashboards automatically once the deployment using Kubernetes is successful and OpenSearch Dashboard pod is running


Relevant Logs or Screenshots:

I personally don’t know of an elegant way of doing this, but I would try with a startup probe that checks if OpenSearch Dashboards is running OK and if it does, import the dashboard. Alternatively, you could run a CronJob that does it.