From 593b15f25a9956817952468086d4fcaa23eb63a6 Mon Sep 17 00:00:00 2001 From: Dirk Wilden Date: Wed, 14 Aug 2024 14:11:13 +0200 Subject: [PATCH] update changelog / readme --- CHANGELOG.md | 2 ++ README.adoc | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28dde21..2cd3132 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added - [#203](https://github.com/deviceinsight/kafkactl/pull/203) Add pod override fields affinity and tolerations +- [#210](https://github.com/deviceinsight/kafkactl/pull/210) Create topic from file ## 5.2.0 - 2024-08-08 diff --git a/README.adoc b/README.adoc index 531a30f..5220763 100644 --- a/README.adoc +++ b/README.adoc @@ -816,6 +816,42 @@ or with protoset kafkactl consume --key-proto-type TopicKey --value-proto-type TopicValue --protoset-file kafkamsg.protoset ---- +=== Create topics + +The `create topic` allows you to create one or multiple topics. + +Basic usage: +[,bash] +---- +kafkactl create topic my-topic +---- + +The partition count can be specified with: +[,bash] +---- +kafkactl create topic my-topic --partitions 32 +---- + +The replication factor can be specified with: +[,bash] +---- +kafkactl create topic my-topic --replication-factor 3 +---- + +Configs can also be provided: +[,bash] +---- +kafkactl create topic my-topic --config retention.ms=3600000 --config=cleanup.policy=compact +---- + +The topic configuration can also be taken from an existing topic using the following: +[,bash] +---- +kafkactl describe topic my-topic -o json > my-topic-config.json +kafkactl create topic my-topic-clone --file my-topic-config.json +---- + + === Altering topics Using the `alter topic` command allows you to change the partition count, replication factor and topic-level