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: