Skip to content

Commit

Permalink
getting ip and set
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Jun 25, 2024
1 parent e341efe commit c568823
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/en/docs/tutorials/disaster-recovery-replica-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,12 @@ Next, we need to get the IP addresses of the MongoDB members and set them to the

```bash
kubectl -n plgd get services | grep mongodb | grep LoadBalancer | awk '{print $1 ":" $4}'
mongodb-0-external:192.168.1.222
mongodb-1-external:192.168.1.220
mongodb-2-external:192.168.1.221
```

```bash
echo "
192.168.1.222 mongodb-0.standby.plgd.cloud mongodb.standby.plgd.cloud
192.168.1.220 mongodb-1.standby.plgd.cloud mongodb.standby.plgd.cloud
Expand Down

0 comments on commit c568823

Please sign in to comment.