kubectl describe kafkatopic --retention-bytes

apiVersion: karsten.cloud/v1
kind: RetentionCalculator
metadata:
name: kafka-retention-calc
namespace: kafka-prod
spec:
purpose: Calculate optimal retention.bytes per topic
inputs:
- PVC count & size
- storage overhead
- topic partitions & replication
noBackend: true
status:
phase: Running
message: configure storage and topics below
ConfigMap kafka-retention/storage ns/kafka
Reserved for Kafka operations (min 10% recommended)
ConfigMap kafka-retention/events beta optional
Average event size in kilobytes
?
Important: Combined event rate per second for this topic only. Does not account for events routed across multiple topics.
Expected events per second
Pods kafka-retention/topics ns/kafka

Topic 1

Storage allocation priority (1-100%)
Status kafka-retention/results ns/kafka

// configure storage and topics to see retention calculations