Skip to content

Commit

Permalink
Merge pull request redpanda-data#14630 from dotnwat/fix-dev-cluster-py
Browse files Browse the repository at this point in the history
dev_cluster: fix advertised apis
  • Loading branch information
dotnwat authored Nov 3, 2023
2 parents 88f913e + 7b6b41d commit ddb4225
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/dev_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class RedpandaConfig:
data_directory: pathlib.Path
rpc_server: NetworkAddress
advertised_rpc_api: NetworkAddress
advertised_kafka_api: NetworkAddress
kafka_api: NetworkAddress
admin: NetworkAddress
seed_servers: list[NetworkAddress]
Expand Down Expand Up @@ -168,7 +169,7 @@ async def main():
parser.add_argument("--listen-address",
type=str,
help="listening address",
default="0.0.0.0")
default="127.0.0.1")
parser.add_argument("--racks",
dest='racks',
help="racks for each of node",
Expand All @@ -194,6 +195,8 @@ def make_node_config(i, data_dir, config_path, rack):
redpanda = RedpandaConfig(data_directory=data_dir,
rpc_server=rpc_address,
advertised_rpc_api=rpc_address,
advertised_kafka_api=make_address(
args.base_kafka_port),
kafka_api=make_address(args.base_kafka_port),
admin=make_address(args.base_admin_port),
seed_servers=rpc_addresses[:3],
Expand Down

0 comments on commit ddb4225

Please sign in to comment.