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 -}} {{- $edemoUrl := .Values.edemocracia.hostname -}}
apiVersion: batch/v1beta1 apiVersion: batch/v1beta1
kind: CronJob kind: CronJob
@ -7,7 +7,7 @@ metadata:
labels: labels:
{{- include "edemocracia.labels" . | nindent 4 }} {{- include "edemocracia.labels" . | nindent 4 }}
spec: spec:
schedule: "*/10 * * * *" schedule: {{ .Values.audiencias.cron.schedule | quote }}
concurrencyPolicy: Forbid concurrencyPolicy: Forbid
jobTemplate: jobTemplate:
spec: spec:
@ -112,7 +112,7 @@ spec:
- name: WORDS_BLACK_LIST - name: WORDS_BLACK_LIST
value: {{ .Values.audiencias.wordsBlacklist | quote }} value: {{ .Values.audiencias.wordsBlacklist | quote }}
resources: resources:
{{- toYaml .Values.audiencias.resources | nindent 16 }} {{- toYaml .Values.audiencias.cron.resources | nindent 16 }}
volumeMounts: volumeMounts:
- mountPath: /var/labhacker/audiencias/public/ - mountPath: /var/labhacker/audiencias/public/
name: {{ include "edemocracia.fullname" . }}-audiencias name: {{ include "edemocracia.fullname" . }}-audiencias

12
charts/edemocracia/v0.4.0/values.yaml

@ -126,7 +126,17 @@ audiencias:
memory: 300Mi memory: 300Mi
requests: requests:
cpu: 50m cpu: 50m
memory: 100Mi memory: 90Mi
cron:
enabled: true
schedule: "*/10 * * * *"
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 50m
memory: 50Mi
smtp: smtp:

Loading…
Cancel
Save