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.

Usage

rpk cluster fencing config update [flags]

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

-c, --config-file

string

Path to a file with the settings that replace all settings.

--expected-revision

int64

Fail if fencing is not at this revision, as rpk cluster fencing status reports it.

--format

string

Output format (json,yaml,text,wide,help). Default: text.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.