diff --git a/addons/polardbx/templates/clusterDefintion.yaml b/addons/polardbx/templates/clusterDefintion.yaml index 620b052e5..0cd995676 100644 --- a/addons/polardbx/templates/clusterDefintion.yaml +++ b/addons/polardbx/templates/clusterDefintion.yaml @@ -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: @@ -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: