zookeeper

by kubelauncher

Helm chartv0.2.13App 3.9.3Apache-2.0Verified publisher

Apache ZooKeeper distributed coordination service

About this chart

zookeeper

Apache ZooKeeper distributed coordination service

TL;DR

helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-zk kubelauncher/zookeeper

Or via OCI:

helm install my-zk oci://ghcr.io/kubelauncher/charts/zookeeper

Introduction

This chart deploys Apache ZooKeeper on Kubernetes using the kubelauncher/zookeeper Docker image.

The values structure follows the same conventions as popular community charts, allowing easy migration.

Architecture

Single node (default)

A single ZooKeeper node. Suitable for development and testing.

helm install my-zk kubelauncher/zookeeper

Ensemble

Scale the ensemble by increasing replicaCount. Use an odd number (3, 5, 7) for proper quorum. ZooKeeper uses a leader election protocol — a majority of nodes must be available for the cluster to operate.

helm install my-zk kubelauncher/zookeeper \
  --set replicaCount=3

The client port is 2181, the follower port is 2888, and the election port is 3888. Persistence is enabled by default with 8Gi volumes.

Installing the Chart

helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-zk kubelauncher/zookeeper \
  --set replicaCount=3

Or via OCI:

helm install my-zk oci://ghcr.io/kubelauncher/charts/zookeeper \
  --set replicaCount=3

Uninstalling the Chart

helm uninstall my-zk

Values

KeyTypeDefaultDescription
affinityobject{}
clusterDomainstring"cluster.local"
commonAnnotationsobject{}
commonLabelsobject{}
containerPorts.clientint2181
containerPorts.electionint3888
containerPorts.followerint2888
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.enabledbooltrue
containerSecurityContext.readOnlyRootFilesystemboolfalse
containerSecurityContext.runAsGroupint1001
containerSecurityContext.runAsNonRootbooltrue
containerSecurityContext.runAsUserint1001
containerSecurityContext.seccompProfile.typestring"RuntimeDefault"
enableServiceLinksboolfalse
extraDeploylist[]
extraEnvVarslist[]
extraVolumeMountslist[]
extraVolumeslist[]
fullnameOverridestring""
global.defaultStorageClassstring""
global.imagePullSecretslist[]
global.imageRegistrystring""
global.storageClassstring""
image.digeststring"sha256:9ddea25f05665c380d7b4da260b6cc5b57375dd76bea5cae6554a4d5725b639d"
image.pullPolicystring"Always"
image.pullSecretslist[]
image.registrystring"ghcr.io"
image.repositorystring"kubelauncher/zookeeper"
image.tagstring"3.9.3"
initContainerslist[]
livenessProbe.enabledbooltrue
livenessProbe.failureThresholdint6
livenessProbe.initialDelaySecondsint20
livenessProbe.periodSecondsint10
livenessProbe.successThresholdint1
livenessProbe.timeoutSecondsint5
metrics.enabledboolfalse
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.intervalstring""
metrics.serviceMonitor.labelsobject{}
metrics.serviceMonitor.scrapeTimeoutstring""
nameOverridestring""
namespaceOverridestring""
networkPolicy.additionalRuleslist[]
networkPolicy.allowExternalbooltrue
networkPolicy.enabledboolfalse
nodeSelectorobject{}
persistence.accessModes[0]string"ReadWriteOnce"
persistence.annotationsobject{}
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.labelsobject{}
persistence.mountPathstring"/data/zookeeper"
persistence.sizestring"8Gi"
persistence.storageClassstring""
podAnnotationsobject{}
podLabelsobject{}
podSecurityContext.enabledbooltrue
podSecurityContext.fsGroupint1001
readinessProbe.enabledbooltrue
readinessProbe.failureThresholdint6
readinessProbe.initialDelaySecondsint5
readinessProbe.periodSecondsint10
readinessProbe.successThresholdint1
readinessProbe.timeoutSecondsint5
replicaCountint1
resourcesobject{}
resourcesPresetstring"micro"
service.annotationsobject{}
service.clusterIPstring""
service.headless.annotationsobject{}
service.labelsobject{}
service.nodePorts.clientstring""
service.nodePorts.electionstring""
service.nodePorts.followerstring""
service.ports.clientint2181
service.ports.electionint3888
service.ports.followerint2888
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountServiceAccountTokenboolfalse
serviceAccount.createbooltrue
serviceAccount.namestring""
sidecarslist[]
startupProbe.enabledbooltrue
startupProbe.failureThresholdint30
startupProbe.initialDelaySecondsint10
startupProbe.periodSecondsint10
startupProbe.successThresholdint1
startupProbe.timeoutSecondsint5
tickTimeint2000
tolerationslist[]

Maintainers

NameEmailUrl
kubelauncher[email protected]https://www.kubelauncher.com

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartzookeeper is pinned at v0.2.13 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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