Added restart policy to job

This commit is contained in:
2023-09-23 13:28:50 +00:00
parent 6287a199b8
commit c514a76b5e
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
variables: variables:
HELM_CHART_VERSION: "1.0.19" HELM_CHART_VERSION: "1.0.20"
stages: stages:
- deploy - deploy

View File

@@ -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