<p>I plan to deploy Hasura Docker container into Kubernetes cluster.<br/>
So I got a Hasura metadata JSON file (hasura_metadata_2023_02_23_16_59_45_407.json), which was generated form one Hasura via its setting in web console.<br/></p>
<p>My question how can I use this metadata JSON file to automatically pre-configure a Hasura container (which will be created inside a Pod in Kubernetes) each time the container is created ?</p>
<p>The configuration would be something like : connect to multiple databases, set role permissions, set event-trigger ... etc. I want all this configurations to be all finished when the Hasura container is created.</p>

Jackk-Doe
<p>Apparently it's not supported yet, here is a ticket about it <a href="https://github.com/hasura/graphql-engine/issues/8423" rel="nofollow noreferrer">https://github.com/hasura/graphql-engine/issues/8423</a></p>
<p>As an alternative, what you can currently do is to use the yaml metadata files generated by <code>hasura init .</code> to automatically pre-configure a Hasura container.</p>
<ul>
<li><a href="https://hasura.io/docs/latest/hasura-cli/commands/hasura_init/" rel="nofollow noreferrer">doc on how to <code>hasura init</code></a></li>
<li><a href="https://hasura.io/docs/latest/migrations-metadata-seeds/manage-metadata/" rel="nofollow noreferrer">doc on Hasura metadata</a></li>
<li><a href="https://hasura.io/docs/latest/migrations-metadata-seeds/auto-apply-migrations/" rel="nofollow noreferrer">doc on applying migrations and metadata with docker</a></li>
</ul>
