Skip to content

Commit

Permalink
fix: polarx role probe
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun committed Mar 11, 2024
1 parent 81d5e10 commit 19e9dde
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions addons/polardbx/templates/clusterDefintion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,10 @@ spec:
customHandler:
- image: "arey/mysql-client:latest"
command:
- mysql
- "-h127.0.0.1"
- "-P3306"
- "-uroot"
- "-N"
- "-B"
- "-e"
- "\"select role from information_schema.alisql_cluster_local\""
- "|"
- "xargs echo -n"
- 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:
ports:
Expand Down Expand Up @@ -251,16 +245,10 @@ spec:
customHandler:
- image: "arey/mysql-client:latest"
command:
- mysql
- "-h127.0.0.1"
- "-P3306"
- "-uroot"
- "-N"
- "-B"
- "-e"
- "\"select role from information_schema.alisql_cluster_local\""
- "|"
- "xargs echo -n"
- 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:
ports:
Expand Down

0 comments on commit 19e9dde

Please sign in to comment.