Browse Source

Adjusted parameters for audiencias cron

master
Fábio Kaiser Rauber 2 years ago
parent
commit
f2e03be714
  1. 6
      charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml
  2. 12
      charts/edemocracia/v0.4.0/values.yaml

6
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

12
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:

Loading…
Cancel
Save