rpk topic alter-config

An rpk command that changes topic properties such as retention.ms or min.insync.replicas on an existing topic.

In more detail

Each -s (or --set) flag takes a key=value pair, and several can be combined in one call. The change takes effect without restarting the broker.

Example

rpk topic alter-config events -s retention.ms=3600000

Related terms

Taught in

References