-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpk/config: Make redpanda.advertised* optional #100
Conversation
@@ -316,6 +316,9 @@ func writeNodeConfig( | |||
conf := config.DefaultConfig() | |||
conf.Redpanda.Id = int(nodeID) | |||
|
|||
conf.Redpanda.AdvertisedKafkaApi = &config.SocketAddress{} | |||
conf.Redpanda.AdvertisedRPCAPI = &config.SocketAddress{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this the main problem, that they are not null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. rpk container
never left them as null. The problem appeared when running it standalone.
d88a252
to
cdd910b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I tested manually too.
agallego in ~/Downloads/test λ ./rpk version && ./rpk container purge && ./rpk container start -n 3 && ./rpk api status
(rev 680dd828)
Stopping node 1
Stopping node 2
Stopping node 0
Deleted data for node 0
Deleted data for node 2
Deleted data for node 1
Deleted cluster data.
Downloading latest version of Redpanda
Starting cluster
NODE ID ADDRESS CONFIG
0 127.0.0.1:59457 /Users/agallego/.rpk/cluster/node-0/conf/redpanda.yaml
1 127.0.0.1:59459 /Users/agallego/.rpk/cluster/node-1/conf/redpanda.yaml
2 127.0.0.1:59460 /Users/agallego/.rpk/cluster/node-2/conf/redpanda.yaml
Cluster started! You may use 'rpk api' to interact with the cluster. E.g:
rpk api status
Redpanda Cluster Status
0 (127.0.0.1:59457) (No partitions)
@dotnwat I think it does. |
ok when we find out let's make sure to update the pr message so that it links this pr to the issue. |
also @0x5d we should update the release notes. |
Checklist
When referencing a related issue, remember to migrate duplicate stories from the
external tracker. This is not relevant for most users.