Apache Zookeeper - K8s
- Canonical
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 10 | 09 Mar 2022 | |
latest/beta | 8 | 08 Jun 2021 | |
latest/edge | 21 | 12 Apr 2023 | |
latest/edge | 16 | 15 Oct 2022 | |
3/stable | 51 | 27 Feb 2024 | |
3/candidate | 51 | 27 Feb 2024 | |
3/beta | 51 | 27 Feb 2024 | |
3/edge | 67 | 16 Oct 2024 |
juju deploy zookeeper-k8s --channel 3/stable
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.zookeeper_k8s.v0.cluster
-
- Last updated 15 Feb 2022
- Revision Library version 0.1
Library for the ZooKeeper Cluster peer relation.
Index
class ZooKeeperClusterEvents
ZooKeeper cluster events.
Description
This class defines the events that the ZooKeeper cluster can emit.
Events: servers_changed (_ServersChangedEvent)
class ZooKeeperCluster
ZooKeeper cluster peer relation.
Methods
ZooKeeperCluster. __init__( self , charm: CharmBase , client_port: int , server_port: int , election_port: int )
Constructor.
Arguments
The charm that implements the relation.
Client port. Defaults to 2181.
Server port. Defaults to 2888.
Election port. Defaults to 3888.
ZooKeeperCluster. cluster_addresses( self )
Get the zookeeper servers from the relation.
Returns
list containing the zookeeper servers. The servers are represented with a string that follows this format: <host>:<server-port>:<election-port>
ZooKeeperCluster. client_addresses( self )
Get the zookeeper servers from the relation.
Returns
list containing the zookeeper servers. The servers are represented with a string that follows this format: <host>:<server-port>:<election-port>
ZooKeeperCluster. register_server( self , host: str )
Register a server as part of the cluster.
Arguments
IP or hostname of the zookeeper server to be registered.
Description
This method will cause a relation-changed event in the other units, since it sets the key "host" in the unit relation data.