From 1c5307818ddfd7179861ef8656c0a3359464c025 Mon Sep 17 00:00:00 2001 From: Chris Breu Date: Sat, 21 Dec 2024 11:24:52 -0600 Subject: [PATCH] disable antiaffintiy as its not currently supported (#632) --- .../base/mariadb-replication.yaml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/base-kustomize/mariadb-cluster/base/mariadb-replication.yaml b/base-kustomize/mariadb-cluster/base/mariadb-replication.yaml index a0531758..875e1b54 100644 --- a/base-kustomize/mariadb-cluster/base/mariadb-replication.yaml +++ b/base-kustomize/mariadb-cluster/base/mariadb-replication.yaml @@ -11,7 +11,6 @@ spec: username: mariadb database: mariadb image: mariadb:10.11.7 - affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -21,15 +20,16 @@ spec: operator: In values: - worker - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - mariadb-cluster - topologyKey: kubernetes.io/hostname + # NOTE: (brew) uncomment below when we update to a newer mariadb crd +# podAntiAffinity: +# requiredDuringSchedulingIgnoredDuringExecution: +# - labelSelector: +# matchExpressions: +# - key: app.kubernetes.io/instance +# operator: In +# values: +# - mariadb-cluster +# topologyKey: kubernetes.io/hostname storage: size: 10Gi