1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
wsj-discord-drink-notification/deploy/charts/wsj-drink/templates/job.yaml

29 lines
977 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "wsj-drink.fullname" . }}-job
spec:
timeZone: "Asia/Seoul"
schedule: "0 7-21 * * *"
jobTemplate:
spec:
backoffLimit: 4
activeDeadlineSeconds: 10
ttlSecondsAfterFinished: 300
template:
spec:
{{- if .Values.image.pullSecretBase64 }}
imagePullSecrets:
- name: {{ include "wsj-drink.fullname" . }}-registry-credentials
{{- end }}
serviceAccountName: {{ include "wsj-drink.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-drink.fullname" . }}-config
restartPolicy: OnFailure