<p>I need to update all the pods(rolling updates), with env variable changes</p>

<p>I am not using kubectl, but using REST api.</p>

<p>Right not i am deleting the service and pods; And then recreating both services and pods. (It usually take around minutes, and there is downtime). Wanted similar with rolling update, without downtime.</p>

<p>If you want to restart all pod attached to a deployment, then you can do that by running</p>

<pre><code>$ curl -k --data '{"spec":{"template":{"metadata":{"annotations":{"kubectl.kubrnetes.io/restartedAt":"'"$(date +%Y-%m-%dT%T%z)"'"}}}}}' -XPATCH   -H "Accept: application/json, */*" -H "Content-Type: application/strategic-merge-patch+json" localhost:8001/apis/extensions/v1beta1/namespaces/default/deployments/mydeployment

</code></pre>
