zookeeper

by KubeGems

Helm chartv5.2.0App 3.5.6

Zookeeper Service, Support single node and multi node

About this chart

Zookeeper

基于bitnami zookeeper

ZooKeeper

ZooKeeper 是用于维护配置信息、命名、提供分布式同步和提供组服务的集中服务。所有这些类型的服务都被分布式应用程序以某种形式或其他形式使用。

安装

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install bitnami/zookeeper

需求

  • Kubernetes 1.12+
  • Helm 2.11+ or Helm 3.0-beta3+
  • PV provisioner support in the underlying infrastructure

参数

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil
image.registryZooKeeper image registrydocker.io
image.repositoryZooKeeper Image namebitnami/zookeeper
image.tagZooKeeper Image tag{TAG_NAME}
image.pullPolicyZooKeeper image pull policyIfNotPresent
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
volumePermissions.enabledEnable init container that changes volume permissions in the data directory (for cases where the default k8s runAsUser and fsUser values do not work)false
volumePermissions.image.registryInit container volume-permissions image registrydocker.io
volumePermissions.image.repositoryInit container volume-permissions image namebitnami/minideb
volumePermissions.image.tagInit container volume-permissions image tagstretch
volumePermissions.image.pullPolicyInit container volume-permissions image pull policyAlways
volumePermissions.resourcesInit container resource requests/limitnil
updateStrategyUpdate strategiesRollingUpdate
podDisruptionBudget.maxUnavailableMax number of pods down simultaneously1
rollingUpdatePartitionPartition update strategynil
clusterDomainKubernetes cluster domaincluster.local
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
fourlwCommandsWhitelistA list of comma separated Four Letter Words commands to usesrvr, mntr
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 creatednil
auth.serverPasswordsList of passwords to assign to users when creatednil
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.accessModesPVC Access Mode for ZooKeeper volume

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 v5.2.0 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