From b2734297081ed7d15e09d7b2f7368d423a1c8d57 Mon Sep 17 00:00:00 2001 From: "yabin.ji" Date: Tue, 12 Mar 2024 10:55:47 +0800 Subject: [PATCH] fix: modify service port from 5432 to 26000 --- addons/mogdb/templates/clusterdefinition.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/mogdb/templates/clusterdefinition.yaml b/addons/mogdb/templates/clusterdefinition.yaml index e326e29ea..64be2c0b9 100644 --- a/addons/mogdb/templates/clusterdefinition.yaml +++ b/addons/mogdb/templates/clusterdefinition.yaml @@ -75,7 +75,7 @@ spec: service: ports: - name: tcp-mogdb - port: 5432 + port: 26000 targetPort: tcp-mogdb volumeTypes: - name: data @@ -114,13 +114,12 @@ spec: else MogDB_Role="standby" + pgport="5432" if [ -n "$PGPORT" ];then - ha_port=$(expr $PGPORT + 1) - ha_service_port=$(expr $PGPORT + 2) - else - ha_port=$(expr 5432 + 1) - ha_service_port=$(expr 5432 + 2) + pgport="$PGPORT" fi + ha_port=$(expr $pgport + 1) + ha_service_port=$(expr $pgport + 2) cat >/tmp/replconninfo.conf for ((i=0; i<$ordinal; i++)); do