This is the Kafka charm for Kubernetes using the Python Operator Framework.
$ git clone https://github.com/martinrusev/kafka-operator
$ cd kafka-operator
$ sudo snap install charmcraft --beta
$ charmcraft build
Created 'kafka.charm'.
$ juju deploy ./kafka.charm --resource kafka-image=bitnami/kafka:2.8.0
Create and activate a virtualenv with the development requirements:
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt
The Python operator framework includes a very nice harness for testing
operator behaviour without full deployment. Just run_tests
:
./run_tests
The Kafka Charm is still a work in progress.