zookeeper

by joaquinito2051

Helm chartv2.2.1App 3.4.14

A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.

About this chart

Zookeeper

Zookeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or other by distributed applications.

TL;DR;

$ helm install <helm-repo>/zookeeper

$ helm install bitnami/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. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/zookeeper

$ helm install --name my-release bitnami/zookeeper The command deploys Zookeeper on the Kubernetes cluster in the default configuration. The configuration 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.

Log level

You can configure the Zookeeper log level using the ZOO_LOG_LEVEL environment variable. By default, it is set to ERROR because of each readiness probe produce an INFO message on connection and a WARN message on disconnection.

Configuration

The following tables lists the configurable parameters of the Zookeeper chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.registryZookeeper image registrydocker.io
image.repositoryZookeeper Image namebitnami/zookeeper
image.tagZookeeper Image tag{VERSION}
image.pullPolicyZookeeper image pull policyAlways
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.debugSpecify if debug values should be setfalse
nameOverrideString to partially override zookeeper.fullname template with a string (will append the release name)nil
fullnameOverrideString to fully override zookeeper.fullname template with a stringnil
updateStrategyUpdate strategiesRollingUpdate
podDisruptionBudget.maxUnavailableMax number of pods down simultaneously1
rollingUpdatePartitionPartition update strategynil
podManagementpolicyPod management policyParallel
replicaCountNumber of ZooKeeper nodes1
tickTimeBasic time unit in milliseconds used by ZooKeeper for heartbeats2000
initLimitTime the ZooKeeper servers in quorum have to connect to a leader10
syncLimitHow far out of date a server can be from a leader5
maxClientCnxnsNumber of concurrent connections that a single client may make to a single member60
allowAnonymousLoginAllow to accept connections from unauthenticated usersyes
auth.existingSecretUse existing secret (ignores previous password)nil
auth.enabledEnable Zookeeper authfalse
auth.clientUserUser that will use Zookeeper clients to authnil
auth.clientPasswordPassword that will use Zookeeper clients to authnil
auth.serverUsersList of user to be created[]
auth.serverPasswordsList of passwords to assign to users when created[]
heapSizeSize in MB for the Java Heap options (Xmx and XMs)[]
logLevelLog level of Zookeeper serverERROR
jvmFlagsDefault JVMFLAGS for the ZooKeeper processnil
configConfigure ZooKeeper with a custom zoo.conf filenil
service.typeKubernetes Service typeClusterIP
service.portZooKeeper port2181
service.followerPortZooKeeper follower port2888
service.electionPortZooKeeper election port3888
service.publishNotReadyAddressesIf the ZooKeeper headless service should publish DNS records for not ready podstrue
securityContext.enabledEnable security context (ZooKeeper master pod)true
securityContext.fsGroupGroup ID for the container (ZooKeeper master pod)1001
securityContext.runAsUserUser ID for the container (ZooKeeper master pod)1001
persistence.enabledEnable persistence using PVCtrue
persistence.storageClassPVC Storage Class for Zookeeper volumenil
persistence.accessModePVC Access Mode for Zookeeper volumeReadWriteOnce
persistence.sizePVC Storage Request for Zookeeper volume8Gi
persistence.annotationsAnnotations for the PVC{}
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityMap of node/pod affinities{}
resourcesCPU/Memory resource requests/limitsMemory: 256Mi, CPU: 250m
livenessProbe.enabledwould you like a livessProbed to be enabledtrue
livenessProbe.initialDelaySecondsDelay before liveness probe is initiated30
livenessProbe.periodSecondsHow often to perform the probe10
livenessProbe.timeoutSecondsWhen the probe times out5
livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded6
livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
readinessProbe.enabledWould you like a readinessProbe to be enabledtrue
readinessProbe.initialDelaySecondsDelay before liveness probe is initiated5
readinessProbe.periodSecondsHow often to perform the probe10
readinessProbe.timeoutSecondsWhen the probe times out5
readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded6
readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
metrics.enabledStart a side-car prometheus exporterfalse
metrics.image.registryZooKeeper exporter image registrydocker.io
metrics.image.repositoryZooKeeper exporter image namejavsalgar/zookeeper-exporter
metrics.image.tagZooKeeper exporter image taglatest
metrics.image.pullPolicyImage pull policyIfNotPresent
metrics.image.pullSecretsSpecify docker-registry secret names as an arraynil
metrics.podLabelsAdditional labels for Metrics exporter pod{}
metrics.podAnnotationsAdditional annotations for Metrics exporter pod{prometheus.io/scrape: "true", prometheus.io/port: "9141"}

|

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 v2.2.1 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