Browse Source

Configured pod affinity for repozo cronjob

master
Fábio Kaiser Rauber 3 years ago
parent
commit
46a7bb68f6
  1. 22
      charts/portalmodelo/v0.5.0/templates/repozo-cronjob.yaml

22
charts/portalmodelo/v0.5.0/templates/repozo-cronjob.yaml

@ -33,7 +33,7 @@ spec:
- "/bin/bash"
- "-c"
args:
- "/plone/instance/bin/backup"
- "/plone/Python-2.7/bin/python /plone/instance/bin/backup"
env:
- name: TZ
value: {{ .Values.portal.timeZone }}
@ -62,10 +62,24 @@ spec:
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "portalmodelo.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
- key: app.kubernetes.io/component
operator: In
values:
- zeoserver
topologyKey: kubernetes.io/hostname
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}

Loading…
Cancel
Save