|
@ -124,6 +124,19 @@ spec: |
|
|
values: |
|
|
values: |
|
|
- {{ .Release.Name }} |
|
|
- {{ .Release.Name }} |
|
|
topologyKey: kubernetes.io/hostname |
|
|
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 }} |
|
|
{{- with .Values.affinity }} |
|
|
{{- toYaml . | nindent 8 }} |
|
|
{{- toYaml . | nindent 8 }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|