<p>I have created 2 PODS. In one POD I have kept all the machine learning model pickle file and in another one I have kept flask api code(app.py). How flaskapi POD will communicate with mlPickleFile POD?</p>

Saurabh Kumar
<p>There are two ways the pods can communicate with each other.</p>
<p><strong>1. Shared Storage</strong></p>
<p>The pod configuration allows specifying shared storage volumes. There are <a href="https://kubernetes.io/docs/concepts/storage/" rel="nofollow noreferrer">multiple options</a> for shared volumes in Kubernetes. Each has its own behavior and working configuration. However it is less likely in your use case that you should create a shared volume and share information with eachother.</p>
<p><strong>2. Pod Networking</strong></p>
<p>The pods are available for each other via <a href="https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking" rel="nofollow noreferrer">network</a>. The network configuration depends on how you create your pods. In the most simplistic configuration, the pods are configured to be operated in a virtual local network. All the pods are operated in the same subnet in the cluster in this config. One pod can be reached out by anothers via its cluster ip or cluster dns entry which exposes your pod under a service name.</p>
<p>For example -</p>
<p>The application X, if creates the service service-x, it is available for all other pods by:</p>
<pre><code>http://service-x
</code></pre>
<p>inside the cluster.</p>
