Command Line Interface for Strimzi Kafka Operator
Project description
Strimzi Kafka CLI
Strimzi Kafka CLI is a CLI that helps traditional Apache Kafka users -both developers and administrators- to easily adapt Strimzi, a Kubernetes operator for Apache Kafka.
Intention here is to ramp up Strimzi usage by creating a similar CLI experience with traditional Apache Kafka binaries.
kfk command stands for the usual kafka-* prefix of the Apache Kafka runnable files which are located in bin directory. There are options provided like topics, console-consumer, etc. which also mostly stand for the rest of the runnable file names like kafka-topic.sh.
However, because of the nature of Strimzi and its capabilities, there are also unusual options like clusters which is used for cluster configuration or users which is used for user management and configuration.
Following is the high-level output of the Strimzi Kafka CLI:
Usage: kfk [OPTIONS] COMMAND [ARGS]...
Strimzi Kafka CLI
Options:
--help Show this message and exit.
Commands:
acls Manages ACLs on Kafka.
clusters Creates, alters, deletes, describes Kafka cluster(s).
configs Adds/Removes entity config for a topic, client, user or...
connect Creates, alters, deletes, describes Kafka connect...
console-consumer Reads data from Kafka topics and outputs it to standard...
console-producer Reads data from standard input and publish it to Kafka.
env Prints the environment variable values for Strimzi Kafka CLI
operator Installs/Uninstalls Strimzi Kafka Operator
topics Creates, alters, deletes, describes Kafka topic(s).
users Creates, alters, deletes, describes Kafka users(s).
version Prints the version of Strimzi Kafka CLI
Please take a look at the relevant article Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way for more details.
Installation
Strimzi Kafka CLI can be installed via pip (python package installer).
sudo pip install strimzi-kafka-cli
Project requires: Python >=3.6
Examples
Dependencies
Python Dependencies
Please see requirements.txt file.
External Dependencies
kubectl
and Strimzi resources
are the tools that Strimzi Kafka CLI uses. These dependencies are automatically downloaded when the first kfk
command is run. You can always check the dependency versions of your CLI with the following command:
kfk version
If you want to change the kubectl
and Strimzi resources
folder, you can simply change their version with the help of some environment veriables in order to let Strimzi Kafka CLI download the version you want, or change the PATH of any if you want to use a custom kubectl or Strimzi binary folder. Current versions are recommended, so use these environment variables at your own risk.
STRIMZI_KAFKA_CLI_BASE_PATH: Set this if you want to have a custom Strimzi Kafka CLI folder. It is set in ~/.strimzi-kafka-cli
as default.
STRIMZI_KAFKA_CLI_STRIMZI_VERSION: Set this if you want to use a different Strimzi version.
STRIMZI_KAFKA_CLI_STRIMZI_PATH: Set this if you want to use a custom Strimzi/AMQ Streams.
STRIMZI_KAFKA_CLI_KUBECTL_VERSION Set this if you want to use a different kubectl version.
STRIMZI_KAFKA_CLI_KUBECTL_PATH: Set this if you want to use a custom kubectl.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for strimzi-kafka-cli-0.1.0a49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea1291d896410e2d521d0b7bcfbcff3fa88db1baa1c1af8367ba1547e12ffc0 |
|
MD5 | 2c4b839e23b2302bb227761025a45875 |
|
BLAKE2b-256 | 2a4eb59eaf80afdff4ed908339f19e5fff6e2664fe23b3c10b82fdc1852cb9ff |
Hashes for strimzi_kafka_cli-0.1.0a49-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1640363b60299ff77ae677fcd71b9b0d6c52545d8fc0fb286d40bff9f7410f |
|
MD5 | 883903b10f26a366c4fe3f75a399f6a8 |
|
BLAKE2b-256 | a376531ea3753dd60469c060192f8fdd26c2945a11f8250f6828eff6fab10655 |