[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OKD 3.10 restartPolicy into DC

Deployment Configs do not allow batch behavior, but they do allow “test” behavior that allows you to trigger a scale up when a change happens, and if everything succeeds you’ll get a “passing” deployment.  When success or failure happens it is scaled down to zero.  This can be used to validate that things deploy correctly.

But if you are doing actual batch workloads, jobs would be more appropriate.

On Nov 12, 2018, at 9:01 AM, François VILLAIN <f villain linkbynet com> wrote:



Maybe you should create a Job object instead of a DC object.





De : users-bounces lists openshift redhat com <users-bounces lists openshift redhat com> De la part de Marcello Lorenzi
Envoyé : lundi 12 novembre 2018 14:56
À : users <users lists openshift redhat com>
Objet : OKD 3.10 restartPolicy into DC


Hi All,

we're trying to configure a DC with a pod executed in a batch mode. This pod completes its job and we would not restart it if the exit code is 0. 

We tried to configure the restartPolicy on DC configuration to Never but the master-api doesn't permit this change.


Is it possible to configure this behavior on DC?


Thanks a lot,


users mailing list
users lists openshift redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]