we want cron jobs in openshift to be restartPolicy never because OnFilure k8s just keeps restarting and gives up with no logs, but Never allows the openshift job manager to restart it and keep the error pods around to see whats going on

This commit is contained in:
Kevin Fenzi 2018-09-19 19:15:37 +00:00
parent 158b4e4fa3
commit f06a45f82f

View file

@ -23,7 +23,7 @@ spec:
- mountPath: /etc/anitya
name: config-volume
readOnly: true
restartPolicy: OnFailure
restartPolicy: Never
volumes:
- configMap:
defaultMode: 420