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

@@ -7,8 +7,10 @@ metadata:
{{- include "..labels" . | nindent 4 }}
cloudyne.systems/component: site-init
spec:
backoffLimit: 2
template:
spec:
restartPolicy: "OnFailure"
affinity: {{ include "..affinity-labels" . | nindent 8 }}
securityContext:
fsGroup: 101