rpk cluster fencing config update
Update the fencing settings.
By default, this command opens your editor with the saved settings. Use
--config-file to apply a file instead. In both modes, the new settings
replace all settings, and a field that you leave out goes back to its default.
rpk cluster fencing enable uses the saved settings. If fencing is enabled,
the change also applies in place. Use rpk cluster fencing config template to
print the settings format with a description of each field.
If 'read_policy.allow_all_reads' is false, fencing blocks fetches from all users except the exempt principals. Use bare user names, not 'User:name'.
| This command was introduced in version v26.3.1. |
Examples
This section provides examples of how to use rpk cluster fencing config update.
Edit the settings in your editor:
rpk cluster fencing config update
Save a template of the settings to a file, then apply the file:
rpk cluster fencing config template > fencing.yaml
rpk cluster fencing config update --config-file fencing.yaml
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Path to a file with the settings that replace all settings. |
|
int64 |
Fail if fencing is not at this revision, as |
|
string |
Output format ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |