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
<kb.sanke...@gmail.com> wrote:
> 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 deployment and we need the
> certificates to be auto renewed before expiry, and hence the cron would
> restart
> the pods before expiry. On a container startup, it would fetch certificates.
>
> Is this possible with Deployments construct and API?
>
> From documentation,  -
>>
>>  A Deployment’s rollout is triggered if and only if the Deployment’s pod
>> template (that is, .spec.template) is changed, for example if the labels or
>> container images of the template are updated. Other updates, such as scaling
>> the Deployment, do not trigger a rollout.
>
>
> So, i wanted to ask whether - is it possible to have rolling restart of
> containers periodically?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes-user... Keshava Bharadwaj
    • Re: [kubern... 'Tim Hockin' via Kubernetes user discussion and Q&A
      • Re: [ku... 'Timo Reimann' via Kubernetes user discussion and Q&A
        • Re:... 'Timo Reimann' via Kubernetes user discussion and Q&A
          • ... Keshava Bharadwaj

Reply via email to