From f06a45f82f8487e4b8cb7595a9ef7a9d6b2fed74 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 19 Sep 2018 19:15:37 +0000 Subject: [PATCH] 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 --- roles/openshift-apps/release-monitoring/files/cron.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/openshift-apps/release-monitoring/files/cron.yml b/roles/openshift-apps/release-monitoring/files/cron.yml index 385d1900c1..3b2ac29780 100644 --- a/roles/openshift-apps/release-monitoring/files/cron.yml +++ b/roles/openshift-apps/release-monitoring/files/cron.yml @@ -23,7 +23,7 @@ spec: - mountPath: /etc/anitya name: config-volume readOnly: true - restartPolicy: OnFailure + restartPolicy: Never volumes: - configMap: defaultMode: 420