Browse Source

Try to schedule plone in same server as zeoserver

master
Fábio Kaiser Rauber 2 years ago
parent
commit
798de3e1c4
  1. 21
      charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml

21
charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml

@ -116,6 +116,27 @@ spec:
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- if .Values.instance.zeoclient }}
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "portalmodelo.name" . }}
- key: app.kubernetes.io/component
operator: In
values:
- zeoserver
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: kubernetes.io/hostname
{{- end }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}

Loading…
Cancel
Save