rpk cluster config set
Set a single cluster configuration property.
This command is provided for use in scripts. For interactive editing, or bulk
changes, use the edit and import commands respectively.
You may also use <key>=<value> notation for setting configuration properties:
rpk cluster config set log_retention_ms=-1
If an empty string is given as the value, the property is reset to its default.
Use the flag --no-confirm to avoid the confirmation prompt.
The output returns an operation ID. Use the status command to check the progress of the configuration change.
Flags
| Value | Type | Description |
|---|---|---|
|
bool |
Disable confirmation prompt. |
|
duration |
Maximum time to poll for operation completion before displaying operation ID for manual status checking (for example, 300ms, 1.5s, 30s). |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |
|
Setting properties to non-number values (such as setting string values with
Workaround: Use
|