Skip to content

Commit

Permalink
fix: modify service port from 5432 to 26000 (apecloud#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinji authored Mar 12, 2024
1 parent 0ef41ab commit 2a9a4e6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions addons/mogdb/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
service:
ports:
- name: tcp-mogdb
port: 5432
port: 26000
targetPort: tcp-mogdb
volumeTypes:
- name: data
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2a9a4e6

Please sign in to comment.