From b687ddac906990e8ff8acd6b2da82763cb3477fa Mon Sep 17 00:00:00 2001 From: outductor Date: Sat, 9 Sep 2023 20:07:55 +0900 Subject: [PATCH] fix --- .../apps/seichi-minecraft/mariadb/mariadb.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml index 0f6cabb7b..ce83924a4 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml @@ -24,21 +24,23 @@ spec: replicas: 3 replication: + enabled: true primary: podIndex: 0 automaticFailover: true - service: - type: ClusterIP - connection: - secretName: primary-mariadb-conn - secretTemplate: - key: dsn replica: waitPoint: AfterSync connectionTimeout: 10s connectionRetries: 10 syncTimeout: 10s + primaryService: + type: ClusterIP + primaryConnection: + secretName: primary-mariadb-conn + secretTemplate: + key: dsn + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: