Skip to content

Commit fde45af

Browse files
authored
Merge pull request #1621 from rackerlabs/galera-affinity-fix
fix(mariadb-galera): configure affinity and anti-affinity
2 parents de29b33 + bf99b9c commit fde45af

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

components/openstack/templates/mariadb-instance.yaml.tpl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ spec:
4343

4444
galera:
4545
{{ toYaml .Values.mariadb.galera | indent 4 }}
46-
46+
affinity:
47+
antiAffinityEnabled: {{ .Values.mariadb.antiAffinityEnabled | default true }}
48+
nodeAffinity:
49+
requiredDuringSchedulingIgnoredDuringExecution:
50+
nodeSelectorTerms:
51+
- matchExpressions:
52+
- key: openstack-control-plane
53+
operator: In
54+
values:
55+
- enabled
4756
---
4857
# mariadb-operator backups for openstack
4958
# https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/BACKUP.md

0 commit comments

Comments
 (0)