Integrate¶
This is the part of the Apache ZooKeeper K8s charm tutorial about using Apache ZooKeeper with other charms. Make sure to complete instruction from the Deploy page before reading further.
The main way to use the Apache ZooKeeper K8s charm is to integrate it with another charm via Juju relations. For that reason we will deploy Apache Kafka K8s charm and integrate them via the zookeeper interface.
Deploy Apache Kafka K8s¶
Deploy Apache Kafka K8s charm to the same model:
juju deploy kafka-k8s --channel 3/stable -n 3 --trust
Make sure Apache Kafka cluster is deployed by checking its status:
juju status --watch 1s
Wait until all units have active
and idle
status.
Integrate Apache Kafka and Apache ZooKeeper¶
Integrate Apache ZooKeeper and Apache Kafka applications for them to be able to work together:
juju integrate kafka-k8s zookeeper-k8s
Juju finds a common interface to integrate the charms together. In this case, it’s the zookeeper
interface. See the interface’s documentation for more information.
Check the Juju applications status, including the information on existing relations:
juju status --relations --watch 1s
Next step¶
Continue to the Cleanup page of the tutorial to finish this Tutorial and free the resources.