Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#18572]yugabyted: Binding advertise_address to hostname for docker b…
…ased deployments. Summary: In docker based deployments, yugabyted by default binds to the ip_address of the container. When the hostname machine restarts, yugabyted fails to restart as the ip-address of the container would have changed. Updating the default behavior of yugabyted to bind with container `hostname` in docker deployments. ### Tests 1. Start yugabyted node docker ```sh docker run -d --name yugabyte --hostname yugabyte -p7000:7000 -p9000:9000 -p15433:15433 -p5433:5433 -p9042:9042 nchandrappa/yugabyte:2.25.0.0-hostname bin/yugabyted start --background=false ``` 2. Stop YB container ```sh docker stop <container-id> ``` 3. Start YB container ```sh docker start <container-id> ``` Jira: DB-7509 Test Plan: manual test Reviewers: sgarg-yb Reviewed By: sgarg-yb Subscribers: yugabyted-dev Differential Revision: https://phorge.dev.yugabyte.com/D39786
- Loading branch information