Added restart policy to job
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
HELM_CHART_VERSION: "1.0.19"
|
HELM_CHART_VERSION: "1.0.20"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
|||||||
@@ -7,8 +7,10 @@ metadata:
|
|||||||
{{- include "..labels" . | nindent 4 }}
|
{{- include "..labels" . | nindent 4 }}
|
||||||
cloudyne.systems/component: site-init
|
cloudyne.systems/component: site-init
|
||||||
spec:
|
spec:
|
||||||
|
backoffLimit: 2
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
restartPolicy: "OnFailure"
|
||||||
affinity: {{ include "..affinity-labels" . | nindent 8 }}
|
affinity: {{ include "..affinity-labels" . | nindent 8 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 101
|
fsGroup: 101
|
||||||
|
|||||||
Reference in New Issue
Block a user