diff --git a/charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml b/charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml index cc66055..27f9898 100644 --- a/charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml +++ b/charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml @@ -1,4 +1,4 @@ -{{- if .Values.audiencias.enabled }} +{{- if .Values.audiencias.cron.enabled }} {{- $edemoUrl := .Values.edemocracia.hostname -}} apiVersion: batch/v1beta1 kind: CronJob @@ -7,7 +7,7 @@ metadata: labels: {{- include "edemocracia.labels" . | nindent 4 }} spec: - schedule: "*/10 * * * *" + schedule: {{ .Values.audiencias.cron.schedule | quote }} concurrencyPolicy: Forbid jobTemplate: spec: @@ -112,7 +112,7 @@ spec: - name: WORDS_BLACK_LIST value: {{ .Values.audiencias.wordsBlacklist | quote }} resources: - {{- toYaml .Values.audiencias.resources | nindent 16 }} + {{- toYaml .Values.audiencias.cron.resources | nindent 16 }} volumeMounts: - mountPath: /var/labhacker/audiencias/public/ name: {{ include "edemocracia.fullname" . }}-audiencias diff --git a/charts/edemocracia/v0.4.0/values.yaml b/charts/edemocracia/v0.4.0/values.yaml index 6dac839..767788b 100755 --- a/charts/edemocracia/v0.4.0/values.yaml +++ b/charts/edemocracia/v0.4.0/values.yaml @@ -126,7 +126,17 @@ audiencias: memory: 300Mi requests: cpu: 50m - memory: 100Mi + memory: 90Mi + cron: + enabled: true + schedule: "*/10 * * * *" + resources: + limits: + cpu: 200m + memory: 200Mi + requests: + cpu: 50m + memory: 50Mi smtp: