<p>I have a local Kubernetes cluster running, and I'm working on Spring Boot Microservices from IntelliJ. Is there a way I can deploy the Microservice Docker images directly into that Kubernetes cluster by just hitting 'Run' for regular development and debugging?</p>

<p><strong>WHY</strong>
In the environment, one microservice can call another service with,</p>

<pre><code>http://another-service:80
</code></pre>

<p>but everytime I need to run the service from local, I have to change all references to:</p>

<pre><code>http://localhost:&lt;some-port&gt;
</code></pre>

<p>I understand I can use local config but there are similar issues. If I am able to do this, I can replicate production into the local machine as well.</p>

<p>I tried various IDE plugins, the docker files I have works fine into production but not sure what I can proceed with on local. I know this is quite wide question.</p>

Shubham A.
<p>You can use google <a href="https://cloud.google.com/code/docs/intellij/install" rel="nofollow noreferrer">cloud code</a> extension plugin for IntelliJ to deploy spring boot apps to a Kubernetes cluster. This uses <a href="https://skaffold.dev" rel="nofollow noreferrer">skaffold</a> internally which handles the workflow for building, pushing and deploying your application to kubernetes cluster.</p>

<p><a href="https://cloud.google.com/code/docs/intellij/deploying-a-k8-app" rel="nofollow noreferrer">https://cloud.google.com/code/docs/intellij/deploying-a-k8-app</a></p>
