rpk redpanda config bootstrap
This command is not supported on macOS, Windows. |
Initialize the configuration to bootstrap a cluster.
This command generates a redpanda.yaml
configuration file to bootstrap a
cluster. If you are modifying the configuration file further, it is recommended
to first bootstrap and then modify. If the file already exists, this command
will set fields as requested by flags, and this may undo some of your earlier
edits.
The --ips
flag specifies seed servers (ips, ip:ports, or hostnames) that this
broker will use to form a cluster.
By default, redpanda
expects your machine to have one private IP address, and
redpanda
will listen on it. If your machine has multiple private IP addresses,
you must use the --self
flag to specify which ip redpanda
should listen on.
The flags --advertised-kafka
and --advertised-rpc
specify the advertised addresses that this broker will use to advertise the corresponding listeners. If not set, it will default to the private IP address or the one specified with the --self
flag.
Flags
Value | Type | Description |
---|---|---|
|
string |
Optional <address>:<port> for Redpanda to advertise the Kafka listener; if empty, defaults to |
|
string |
Optional <address>:<port> for Redpanda to advertise the RPC listener; if empty, defaults to |
|
- |
Help for bootstrap. |
|
strings |
Comma-separated list of the seed node addresses or hostnames; at least three are recommended. |
|
string |
Optional IP address for redpanda to listen on; if empty, defaults to a private address. |
|
string |
Redpanda or |
|
stringArray |
Override |
|
string |
Profile to use. See |
|
- |
Enable verbose logging. |