rpk cluster fencing

Manage fencing of the cluster.

Fencing rejects new writes and changes to user topics, consumer groups, Schema Registry, ACLs, and roles. Use it on the source cluster of a Shadow Link before you fail over the link.

This command was introduced in version v26.3.1.

Usage

rpk cluster fencing [flags]

Subcommands

Command Description

rpk cluster fencing config

Manage the fencing settings. The settings decide what fencing covers and which fetches it blocks.

rpk cluster fencing disable

Disable fencing of the cluster. After you disable fencing, the cluster accepts writes, changes, and fetches again.

rpk cluster fencing enable

Enable fencing to reject new writes. Fencing rejects new writes and changes to user topics, consumer groups, Schema Registry, ACLs, and roles.

rpk cluster fencing status

Get the fencing status of the cluster. The command shows fencing as the controller leader has it.

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.