added repo
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: contour-cert-checker-cron
|
||||
namespace: {{ .Values.rbac.namespace }}
|
||||
spec:
|
||||
schedule: "0 12 * * *"
|
||||
successfulJobsHistoryLimit: {{ .Values.cronJob.historyLimit.successfulJobs }}
|
||||
failedJobsHistoryLimit: {{ .Values.cronJob.historyLimit.failedJobs }}
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector: {{ .Values.cronJob.nodeSelector | toYaml | nindent 12 }}
|
||||
tolerations: {{ .Values.cronJob.tolerations | toYaml | nindent 12 }}
|
||||
containers:
|
||||
- name: contour-cert-checker
|
||||
image: {{ .Values.cronJob.image.repository }}:{{ .Values.cronJob.image.tag }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["./contour-cert-checker"]
|
||||
args: {{ .Values.cronJob.args | toYaml | nindent 12 }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.cronJob.resources.requests.memory }}
|
||||
cpu: {{ .Values.cronJob.resources.requests.cpu }}
|
||||
limits:
|
||||
memory: {{ .Values.cronJob.resources.limits.memory }}
|
||||
cpu: {{ .Values.cronJob.resources.limits.cpu }}
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: {{ .Values.rbac.serviceAccountName }}
|
||||
backoffLimit: {{ .Values.cronJob.backoffLimit }}
|
||||
Reference in New Issue
Block a user