请求提供rpk topic create命令的主题配置规范参考文档及选项获取指引
rpk topic create Hey there! I totally get the frustration of trying to track down the full list of topic config options for Redpanda when using rpk topic create with the -c/--topic-config flag— it’s annoying that the docs don’t link directly to that list. Let me share a few solid ways to get this info, right from your setup or official resources:
Pull the list directly via
rpk(most reliable):
Redpanda’s ownrpktool has a built-in command to list every supported topic-level configuration, complete with default values, data types, and descriptions. Just run this in your terminal:rpk topic config listThis is the most up-to-date source because it pulls directly from your Redpanda cluster’s current version, so you’ll see exactly what’s available for your setup.
Use Kafka compatibility + Redpanda-specific docs:
Redpanda is fully Kafka API-compatible, so almost all standard Kafka topic configurations work seamlessly with it. For Redpanda-exclusive tweaks (like tiered storage or partition auto-balancing settings), head to the official Redpanda docs and search for "Topic Configuration"— you’ll find a dedicated section that breaks down both standard and Redpanda-specific options. Key Redpanda-only configs to look out for includeredpanda.remote.write(for tiered storage) andredpanda.partition_autobalance_mode(for automated partition balancing).Use Kafka’s
kafka-configstool (if you have it):
Since Redpanda supports Kafka’s admin APIs, you can use thekafka-configs.shutility (from a standard Kafka distribution) to inspect configs for an existing topic. Run this command (swap in your broker address and topic name):kafka-configs.sh --bootstrap-server <your-redpanda-broker>:9092 --entity-type topics --describe --entity-name <your-topic-name>This will show you all applied and default configs for the topic, including both standard Kafka and Redpanda-specific ones.
内容的提问来源于stack exchange,提问作者Notinlist

