diff --git a/addons/polardbx/templates/clusterDefintion.yaml b/addons/polardbx/templates/clusterDefintion.yaml index 7ca98eb3f..635ae9e0e 100644 --- a/addons/polardbx/templates/clusterDefintion.yaml +++ b/addons/polardbx/templates/clusterDefintion.yaml @@ -22,15 +22,13 @@ spec: defaultMode: 0555 workloadType: Consensus characterType: polardbx - rsmSpec: - roles: - - name: "leader" - accessMode: ReadWrite - isLeader: true - canVote: true - - name: "follower" + consensusSpec: + leader: + name: leader + accessMode: ReadWrite + followers: + - name: follower accessMode: Readonly - canVote: true roleProbe: roleUpdateMechanism: DirectAPIServerEventUpdate customHandler: @@ -38,7 +36,7 @@ spec: command: - sh - -c - - | + - | mysql -h127.0.0.1 -P3306 -uroot -N -B -e "select role from information_schema.alisql_cluster_local" | xargs echo -n memberUpdateStrategy: Serial service: @@ -231,15 +229,13 @@ spec: - name: GMS_SVC_NAME valueFrom: type: ServiceRef - rsmSpec: - roles: - - name: "leader" - accessMode: ReadWrite - isLeader: true - canVote: true - - name: "follower" + consensusSpec: + leader: + name: leader + accessMode: ReadWrite + followers: + - name: follower accessMode: Readonly - canVote: true roleProbe: roleUpdateMechanism: DirectAPIServerEventUpdate customHandler: