Re: [kubernetes-users] Rolling restart of pods in deployment

2017-12-18 Thread Keshava Bharadwaj
Thanks for the inputs. Using annotations and updating them using patch serves the purpose. - Keshava On Saturday, December 16, 2017 at 1:31:51 PM UTC+5:30, Timo Reimann wrote: > > Actually, it's the Deployment's pod template (.spec.template) that needs > to host the annotation. Always

Re: [kubernetes-users] Rolling restart of pods in deployment

2017-12-16 Thread 'Timo Reimann' via Kubernetes user discussion and Q
Actually, it's the Deployment's pod template (.spec.template) that needs to host the annotation. Always getting confused. https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment has it formally defined. -- You received this message because you are

Re: [kubernetes-users] Rolling restart of pods in deployment

2017-12-15 Thread 'Timo Reimann' via Kubernetes user discussion and Q
I believe you can also update / create an annotation inside the pod spec's metadata section if you fear that an environment variable might collide or just pollute your application's env var space. More discussions, tips, and related issues regarding the subject of forced restarts can be found

Re: [kubernetes-users] Rolling restart of pods in deployment

2017-12-15 Thread 'Tim Hockin' via Kubernetes user discussion and Q
What I have seen several people do for this is to increment an env var, or use a timestamp - something trivial that doesn't impact the app, but forces a restart. Updating an env var can not ever be done without restart. On Fri, Dec 15, 2017 at 2:00 AM, Keshava Bharadwaj

[kubernetes-users] Rolling restart of pods in deployment

2017-12-15 Thread Keshava Bharadwaj
Hi, We have a simple deployment of 3 replicas. We have a requirement to have a kubernetes cron job , that would need to restart(rolling restart) the pods in the deployment. Use-case: we use certs in our services in