<p>Is there a way to reload currently running <code>pods</code> created by <code>replicationcontroller</code> to reapply newly created <code>services</code>?</p>

<p>Example:</p>

<p>I have a running pods created by <code>ReplicationController</code> config file. I have deleted a service called <code>mongo-svc</code> and recreated it again using different port. Is there a way for the pod's env file to be updated with the new IP and ports from the new <code>mongo-svc</code>?</p>

<p>You can <em>restart</em> pods by simply deleting them: if they are linked to a Replication controller, the RC will take care of restarting them</p>

<p><code>kubectl delete pod &lt;your-pod-name&gt;</code></p>

<p>if you have a couple pods, it's easy enougth to copy/paste the pod names, but if you have many pods it can become cumbersome. </p>

<p>So another way to delete pods and restart them is to scale the RC down to 0 instances and back up to the number you need.</p>

<pre><code>kubectl scale --replicas=0 rc &lt;your-rc&gt;
kubectl scale --replicas=&lt;n&gt; rc &lt;your-rc&gt;
</code></pre>

<p>By-the-way, you may also want to look at '<a href="https://github.com/kubernetes/kubernetes/blob/master/docs/design/simple-rolling-update.md" rel="nofollow">rolling-updates</a>' to do this in a more production friendly manner, but that implies updating the RC config.</p>
