feat: add Helm chart
This commit is contained in:
parent
67d826cd43
commit
7161a5e290
7 changed files with 166 additions and 0 deletions
28
deploy/chart/wsj-standup/templates/job.yaml
Normal file
28
deploy/chart/wsj-standup/templates/job.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: {{ include "wsj-standup.fullname" . }}-job
|
||||
spec:
|
||||
schedule: "0 8 * * 1"
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 4
|
||||
activeDeadlineSeconds: 10
|
||||
ttlSecondsAfterFinished: 300
|
||||
template:
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 14 }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "wsj-standup.fullname" . }}-config
|
||||
restartPolicy: OnFailure
|
||||
Reference in a new issue