<p>I was deploying an integration solution using Integration Studio, after deploying it to my kubernetes cluster the service appeared fine in my services list in the publisher.</p>
<p><strong>Problem</strong>: after creating an API from that service, the endpoint ends up being <strong>localhost:{port}</strong>, of course this endpoint doesn't work when using the gateway since it must be <strong>{service IP of integration}:{port}</strong></p>
<p>Do I have to manually change the endpoint every time ? I want to know if there's something I can do to make this process easier</p>
<p>here's my metadata.yaml folder</p>
<pre><code>serviceUrl: &quot;https://{MI_HOST}:{MI_PORT}/mock&quot;
</code></pre>
<p>Thank you</p>

Hyperion
<p>If you need to parameterize the serviceUrl in the metadata file, you must inject the parameterized values as environment variables in the MI instance.</p>
<p>Refer the point 5 in step 4 in here - <a href="https://apim.docs.wso2.com/en/latest/tutorials/develop-an-integration-with-a-managed-api/#step-4-configure-the-micro-integrator" rel="nofollow noreferrer">https://apim.docs.wso2.com/en/latest/tutorials/develop-an-integration-with-a-managed-api/#step-4-configure-the-micro-integrator</a></p>
