zookeeper
by [riftbit]
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 repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release 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.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/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 |
|---|---|---|
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 (value evaluated as a template) | [] |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed 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 deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["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.7.0-debian-10-r157 |
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 |
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 |
fourlwCommandsWhitelist | A list of comma separated Four Letter Words commands to use | srvr, mntr, ruok |
listenOnAllIPs | Allow Zookeeper to listen for connections from its peers on all available IP addresses | false |
allowAnonymousLogin | Allow to accept connections from unauthenticated users | true |
autopurge.snapRetainCount | Retains the snapRetainCount most recent snapshots and the corresponding transaction logs and deletes the rest | 3 |
autopurge.purgeInterval | The time interval in hours for which the purge task has to be triggered | 0 |
maxSessionTimeout | Maximum session timeout in milliseconds that the server will allow the client to negotiate | 40000 |
auth.existingSecret | Use existing secret (ignores previous password) | "" |
auth.enabled | Enable Zookeeper auth. It uses SASL/Digest-MD5 | false |
auth.clientUser | User that will use ZooKeeper clients to auth | "" |
auth.clientPassword | Password that will use ZooKeeper clients to auth | "" |
auth.serverUsers | Comma, semicolon or whitespace separated list of user to be created | "" |
auth.serverPasswords | Comma, semicolon or whitespace separated list of passwords to assign to users when created | "" |
heapSize | Size in MB for the Java Heap options (Xmx and XMs) | 1024 |
logLevel | Log level for the Zookeeper server. ERROR by default | ERROR |
dataLogDir | Data log directory. Specifying this option will direct zookeeper to write the transaction log to the dataLogDir rather than the dataDir. | "" |
jvmFlags | Default JVMFLAGS for the ZooKeeper process | "" |
config | Configure ZooKeeper with a custom zoo.cfg file | "" |
namespaceOverride | Namespace for ZooKeeper resources | "" |
hostAliases | Deployment pod host aliases | [] |
Statefulset parameters
| Name | Description | Value |
|---|---|---|
extraVolumes | Extra volumes | [] |
extraVolumeMounts | Mount extra volume(s) | [] |
updateStrategy | StatefulSet controller supports automated updates. There are two valid update strategies: RollingUpdate and OnDelete | RollingUpdate |
podDisruptionBudget.maxUnavailable | Max number of pods down simultaneously | 1 |
rollingUpdatePartition | Partition update strategy | "" |
podManagementPolicy | StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel | Parallel |
replicaCount | Number of ZooKeeper nodes | 1 |
containerPort | ZooKeeper port | 2181 |
tlsContainerPort | ZooKeeper TLS port | 3181 |
followerContainerPort | ZooKeeper follower port | 2888 |
electionContainerPort | ZooKeeper election port | 3888 |
minServerId | Minimal SERVER_ID value, nodes increment their IDs respectively | 1 |
securityContext.enabled | Enable security context (ZooKeeper master pod) |
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 v7.4.5 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