Skip to content

Zookeeper

Zookeeper

Monitor your zookeeper status, create/terminate nodes. More to follow

Description

Zookeeper integration gives you ability to manage your zookeeper cluster using maira commands.

Installation

For integrating with zookeeper cluster, you need to provide the list of addresses and authentication information. Maira supports mTLS and SASL authentication methods. You can manage multiple clusters from Maira.

Helm Config

Below is sample configuration for enabling zookeeper integration through Helm Chart Values file

zookeeper:
  disabled: false
  clusters:
    default:
      addresses: [ localhost:2181,localhost:2182,localhost:2183 ]
      tls_config:
        enabled: true
        cert_file: ./certs/dev/localhost.crt
        key_file: ./certs/dev/localhost.key
        ca_cert: ./certs/dev/CA.crt
        insecure: true
  • disabled tag can be set to true to temporarily disable the service without removing the config

Direct Config

Below is sample configuration for enabling zookeeper integration

If running in cluster, you only need to enable k8s module and service in maira-agent config file

Make sure that there is one cluster named default. This will be used by maira commands if no cluster argument is specified.

modules:
  - name: maira_io.module.zookeeper
services:
  - name: maira_io.service.zookeeper
    typed_config:
      "@type": types.google.com/maira_io.config.service.zookeeper.v1.Config
      clusters:
        cluster1:
          addresses: [localhost:2181]
        default:
          addresses: [localhost:2181,localhost:2182,localhost:2183]
          tls_config:
            cert_file: ./certs/dev/localhost.crt
            key_file: ./certs/dev/localhost.key
            ca_cert: ./certs/dev/CA.crt
            insecure: true