zookeeper
Apache ZooKeeper provides a reliable, centralized register of configuration data and services for distributed applications.
About this chart
Apache ZooKeeper packaged by Bitnami
Apache ZooKeeper provides a reliable, centralized register of configuration data and services for distributed applications.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/zookeeper
Introduction
This chart bootstraps a ZooKeeper deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/zookeeper
These commands deploy ZooKeeper on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
extraDeploy | Extra objects to deploy (evaluated as a template) | [] |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
namespaceOverride | Override namespace for ZooKeeper resources | "" |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the statefulset | ["sleep"] |
diagnosticMode.args | Args to override all containers in the statefulset | ["infinity"] |
ZooKeeper chart parameters
| Name | Description | Value |
|---|---|---|
image.registry | ZooKeeper image registry | docker.io |
image.repository | ZooKeeper image repository | bitnami/zookeeper |
image.tag | ZooKeeper image tag (immutable tags are recommended) | 3.8.0-debian-11-r47 |
image.digest | ZooKeeper image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | ZooKeeper image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug values should be set | false |
auth.client.enabled | Enable ZooKeeper client-server authentication. It uses SASL/Digest-MD5 | false |
auth.client.clientUser | User that will use ZooKeeper clients to auth | "" |
auth.client.clientPassword | Password that will use ZooKeeper clients to auth | "" |
auth.client.serverUsers | Comma, semicolon or whitespace separated list of user to be created | "" |
auth.client.serverPasswords | Comma, semicolon or whitespace separated list of passwords to assign to users when created | "" |
auth.client.existingSecret | Use existing secret (ignores previous passwords) | "" |
auth.quorum.enabled | Enable ZooKeeper server-server authentication. It uses SASL/Digest-MD5 | false |
auth.quorum.learnerUser | User that the ZooKeeper quorumLearner will use to authenticate to quorumServers. | "" |
auth.quorum.learnerPassword | Password that the ZooKeeper quorumLearner will use to authenticate to quorumServers. | "" |
auth.quorum.serverUsers | Comma, semicolon or whitespace separated list of users for the quorumServers. | "" |
auth.quorum.serverPasswords | Comma, semicolon or whitespace separated list of passwords to assign to users when created | "" |
auth.quorum.existingSecret | Use existing secret (ignores previous passwords) | "" |
tickTime | Basic time unit (in milliseconds) used by ZooKeeper for heartbeats | 2000 |
initLimit | ZooKeeper uses to limit the length of time the ZooKeeper servers in quorum have to connect to a leader | 10 |
syncLimit | How far out of date a server can be from a leader | 5 |
preAllocSize | Block size for transaction log file | 65536 |
snapCount | The number of transactions recorded in the transaction log before a snapshot can be taken (and the transaction log rolled) | 100000 |
maxClientCnxns | Limits the number of concurrent connections that a single client may make to a single member of the ZooKeeper ensemble | 60 |
maxSessionTimeout | Maximum session timeout (in milliseconds) that the server will allow the client to negotiate | 40000 |
heapSize | Size (in MB) for the Java Heap options (Xmx and Xms) | 1024 |
fourlwCommandsWhitelist | A list of comma separated Four Letter Words commands that can be executed | srvr, mntr, ruok |
minServerId | Minimal SERVER_ID value, nodes increment their IDs respectively | 1 |
listenOnAllIPs | Allow ZooKeeper to listen for connections from its peers on all available IP addresses | false |
autopurge.snapRetainCount | The most recent snapshots amount (and corresponding transaction logs) to retain | 3 |
autopurge.purgeInterval | The time interval (in hours) for which the purge task has to be triggered | 0 |
logLevel | Log level for the ZooKeeper server. ERROR by default | ERROR |
jvmFlags | Default JVM flags for the ZooKeeper process | "" |
dataLogDir | Dedicated data log directory | "" |
configuration | Configure ZooKeeper with a custom zoo.cfg file | "" |
existingConfigmap | The name of an existing ConfigMap with your custom configuration for ZooKeeper | "" |
extraEnvVars | Array with extra environment variables to add to ZooKeeper nodes | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for ZooKeeper nodes | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars for ZooKeeper nodes | "" |
command | Override default container command (useful when using custom images) | ["/scripts/setup.sh"] |
args | Override default container args (useful when using custom images) | [] |
Statefulset parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of ZooKeeper nodes | 1 |
containerPorts.client | ZooKeeper client container port | 2181 |
containerPorts.tls | ZooKeeper TLS container port |
Deploy zookeeper with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zookeeper on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartzookeeper is pinned at v10.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply