Browse Source

Try to schedule SAPL pod on same node as postgres

master
Fábio Kaiser Rauber 3 years ago
parent
commit
795ab3d116
  1. 13
      charts/sapl/v0.2.0/templates/deployment.yaml

13
charts/sapl/v0.2.0/templates/deployment.yaml

@ -124,6 +124,19 @@ spec:
values:
- {{ .Release.Name }}
topologyKey: kubernetes.io/hostname
- weight: 50
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- postgresql
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: kubernetes.io/hostname
{{- with .Values.affinity }}
{{- toYaml . | nindent 8 }}
{{- end }}

Loading…
Cancel
Save