24 lines
682 B
YAML
24 lines
682 B
YAML
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: {{ .Chart.Name }}-update-cluster
|
|
annotations:
|
|
"helm.sh/hook": post-install,post-upgrade
|
|
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
|
|
"helm.sh/hook-weight": "20"
|
|
spec:
|
|
template:
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: run-update
|
|
image: {{ .Values.app.image }}
|
|
command: [ "php", "yii", "util/update-cluster" ]
|
|
env:
|
|
{{- include "envs_all" . | indent 12 }}
|
|
{{- include "jobs_resources" . | indent 10 }}
|
|
restartPolicy: OnFailure
|
|
terminationGracePeriodSeconds: 5
|
|
backoffLimit: 6 |