rpk cluster maintenance enable
Enable maintenance mode on a broker. While in maintenance mode, the broker drains partition leadership to other brokers. Use this command before performing broker upgrades or hardware maintenance. After maintenance is complete, run rpk cluster maintenance disable <broker-id> to restore normal operation.
Flags
| Value | Type | Description |
|---|---|---|
|
bool |
Wait for the node to finish draining before returning. Useful for scripted rolling operations. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |