values.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. ## Global Docker image parameters
  2. ## Please, note that this will override the image parameters, including dependencies, configured to use the global value
  3. ## Current available global Docker image parameters: imageRegistry and imagePullSecrets
  4. ##
  5. # global:
  6. # imageRegistry: myRegistryName
  7. # imagePullSecrets:
  8. # - myRegistryKeySecretName
  9. # storageClass: myStorageClass
  10. ## Bitnami Zookeeper image version
  11. ## ref: https://hub.docker.com/r/bitnami/zookeeper/tags/
  12. ##
  13. image:
  14. registry: docker.io
  15. repository: bitnami/zookeeper
  16. tag: 3.7.0-debian-10-r56
  17. ## Specify a imagePullPolicy
  18. ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  19. ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  20. ##
  21. pullPolicy: IfNotPresent
  22. ## Optionally specify an array of imagePullSecrets.
  23. ## Secrets must be manually created in the namespace.
  24. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  25. ##
  26. # pullSecrets:
  27. # - myRegistryKeySecretName
  28. ## Set to true if you would like to see extra information on logs
  29. ## It turns BASH and/or NAMI debugging in the image
  30. ##
  31. debug: false
  32. ## String to partially override common.names.fullname template (will maintain the release name)
  33. # nameOverride:
  34. ## String to fully override common.names.fullname template
  35. # fullnameOverride:
  36. ## Deployment pod host aliases
  37. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  38. ##
  39. hostAliases: []
  40. ## Kubernetes Cluster Domain
  41. ##
  42. clusterDomain: cluster.local
  43. ## Extra objects to deploy (value evaluated as a template)
  44. ##
  45. extraDeploy: []
  46. ## Add labels to all the deployed resources
  47. ##
  48. commonLabels: {}
  49. ## Add annotations to all the deployed resources
  50. ##
  51. commonAnnotations: {}
  52. ## Init containers parameters:
  53. ## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
  54. ##
  55. volumePermissions:
  56. enabled: false
  57. image:
  58. registry: docker.io
  59. repository: bitnami/bitnami-shell
  60. tag: 10-debian-10-r97
  61. pullPolicy: Always
  62. ## Optionally specify an array of imagePullSecrets.
  63. ## Secrets must be manually created in the namespace.
  64. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  65. ##
  66. # pullSecrets:
  67. # - myRegistryKeySecretName
  68. resources: {}
  69. ## extraVolumes and extraVolumeMounts allows you to mount other volumes
  70. ## Example Use Cases:
  71. ## mount certificates to enable tls
  72. # extraVolumes:
  73. # - name: zookeeper-keystore
  74. # secret:
  75. # defaultMode: 288
  76. # secretName: zookeeper-keystore
  77. # - name: zookeeper-trustsore
  78. # secret:
  79. # defaultMode: 288
  80. # secretName: zookeeper-truststore
  81. # extraVolumeMounts:
  82. # - name: zookeeper-keystore
  83. # mountPath: /certs/keystore
  84. # readOnly: true
  85. # - name: zookeeper-truststore
  86. # mountPath: /certs/truststore
  87. # readOnly: true
  88. ## StatefulSet controller supports automated updates. There are two valid update strategies: RollingUpdate and OnDelete
  89. ## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
  90. ##
  91. updateStrategy: RollingUpdate
  92. ## Limits the number of pods of the replicated application that are down simultaneously from voluntary disruptions
  93. ## The PDB will only be created if replicaCount is greater than 1
  94. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions
  95. ##
  96. podDisruptionBudget:
  97. maxUnavailable: 1
  98. ## Partition update strategy
  99. ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
  100. ##
  101. # rollingUpdatePartition:
  102. ## StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel
  103. ## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
  104. ##
  105. podManagementPolicy: Parallel
  106. ## Number of ZooKeeper nodes
  107. ##
  108. replicaCount: 1
  109. ## Minimal server ID (ZooKeeper myid) value
  110. ## servers increment their ID starting at this minimal value.
  111. ## E.g., with `minServerId=10` and 3 replicas, server IDs will be 10, 11, 12 for z-0, z-1 and z-2 respectively.
  112. ##
  113. minServerId: 1
  114. ## Basic time unit in milliseconds used by ZooKeeper for heartbeats
  115. ##
  116. tickTime: 2000
  117. ## ZooKeeper uses to limit the length of time the ZooKeeper servers in quorum have to connect to a leader
  118. ##
  119. initLimit: 10
  120. ## How far out of date a server can be from a leader
  121. ##
  122. syncLimit: 5
  123. ## Limits the number of concurrent connections that a single client may make to a single member of the ZooKeeper ensemble
  124. ##
  125. maxClientCnxns: 60
  126. ## A list of comma separated Four Letter Words commands to use
  127. ##
  128. fourlwCommandsWhitelist: srvr, mntr, ruok
  129. ## Allow zookeeper to listen for peers on all IPs
  130. ##
  131. listenOnAllIPs: false
  132. ## Allow to accept connections from unauthenticated users
  133. ##
  134. allowAnonymousLogin: true
  135. autopurge:
  136. ## Retains the snapRetainCount most recent snapshots and the corresponding transaction logs and deletes the rest
  137. ##
  138. snapRetainCount: 3
  139. ## The time interval in hours for which the purge task has to be triggered. Set to a positive integer (1 and above) to enable the auto purging.
  140. ##
  141. purgeInterval: 0
  142. ## Maximum session timeout in milliseconds that the server will allow the client to negotiate. Defaults to 20 times the tickTime.
  143. ##
  144. maxSessionTimeout: 40000
  145. auth:
  146. ## Use existing secret (ignores previous password)
  147. ##
  148. # existingSecret:
  149. ## Enable Zookeeper auth. It uses SASL/Digest-MD5
  150. ##
  151. enabled: false
  152. ## User that will use Zookeeper clients to auth
  153. ##
  154. clientUser:
  155. ## Password that will use Zookeeper clients to auth
  156. ##
  157. clientPassword:
  158. ## Comma, semicolon or whitespace separated list of user to be created. Specify them as a string, for example: "user1,user2,admin"
  159. ##
  160. serverUsers:
  161. ## Comma, semicolon or whitespace separated list of passwords to assign to users when created. Specify them as a string, for example: "pass4user1, pass4user2, pass4admin"
  162. ##
  163. serverPasswords:
  164. ## Size in MB for the Java Heap options (Xmx and XMs). This env var is ignored if Xmx an Xms are configured via JVMFLAGS
  165. ##
  166. heapSize: 1024
  167. ## Log level for the Zookeeper server. ERROR by default. Have in mind if you set it to INFO or WARN the ReadinessProve will produce a lot of logs.
  168. ##
  169. logLevel: ERROR
  170. ## Data log directory. Specifying this option will direct zookeeper to write the transaction log to the dataLogDir rather than the dataDir.
  171. ## This allows a dedicated log device to be used, and helps avoid competition between logging and snaphots.
  172. ## Example:
  173. ## dataLogDir: /bitnami/zookeeper/dataLog
  174. ##
  175. dataLogDir: ''
  176. ## Default JVMFLAGS for the ZooKeeper process
  177. ##
  178. # jvmFlags:
  179. ## Configure ZooKeeper with a custom zoo.cfg file
  180. ##
  181. # config:
  182. ## Namespace for ZooKeeper resources
  183. # namespaceOverride:
  184. ## Kubernetes configuration
  185. ## For minikube, set this to NodePort, elsewhere use LoadBalancer
  186. ##
  187. service:
  188. type: ClusterIP
  189. ## loadBalancerIP for the Zookeper Service (optional, cloud specific)
  190. ## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer
  191. ##
  192. # loadBalancerIP:
  193. port: 2181
  194. followerPort: 2888
  195. electionPort: 3888
  196. publishNotReadyAddresses: true
  197. tls:
  198. client_enable: false
  199. quorum_enable: false
  200. disable_base_client_port: false
  201. client_port: 3181
  202. client_keystore_path: /tls_key_store/key_store_file
  203. client_keystore_password: ''
  204. client_truststore_path: /tls_trust_store/trust_store_file
  205. client_truststore_password: ''
  206. quorum_keystore_path: /tls_key_store/key_store_file
  207. quorum_keystore_password: ''
  208. quorum_truststore_path: /tls_trust_store/trust_store_file
  209. quorum_truststore_password: ''
  210. annotations: {}
  211. headless:
  212. annotations: {}
  213. ## Service account for Zookeeper to use.
  214. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  215. ##
  216. serviceAccount:
  217. ## Specifies whether a ServiceAccount should be created
  218. ##
  219. create: false
  220. ## The name of the ServiceAccount to use.
  221. ## If not set and create is true, a name is generated using the common.names.fullname template
  222. # name:
  223. # Allows auto mount of ServiceAccountToken on the serviceAccount created
  224. # Can be set to false if pods using this serviceAccount do not need to use K8s API
  225. automountServiceAccountToken: true
  226. ## Zookeeper Pod Security Context
  227. ##
  228. securityContext:
  229. enabled: true
  230. fsGroup: 1001
  231. runAsUser: 1001
  232. ## Add initContainers to the web pods.
  233. ## Example:
  234. ## initContainers:
  235. ## - name: your-image-name
  236. ## image: your-image
  237. ## imagePullPolicy: Always
  238. ## ports:
  239. ## - name: portname
  240. ## containerPort: 1234
  241. ##
  242. initContainers: []
  243. ## Zookeeper data Persistent Volume Storage Class
  244. ## If defined, storageClassName: <storageClass>
  245. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  246. ## If undefined (the default) or set to null, no storageClassName spec is
  247. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  248. ## GKE, AWS & OpenStack)
  249. ##
  250. persistence:
  251. ## A manually managed Persistent Volume and Claim
  252. ## If defined, PVC must be created manually before volume will be bound
  253. ## The value is evaluated as a template
  254. ##
  255. # existingClaim:
  256. enabled: true
  257. # storageClass: "-"
  258. accessModes:
  259. - ReadWriteOnce
  260. size: 8Gi
  261. annotations: {}
  262. dataLogDir:
  263. size: 8Gi
  264. ## A manually managed Persistent Volume and Claim
  265. ## If defined, PVC must be created manually before volume will be bound
  266. ## The value is evaluated as a template
  267. ##
  268. # existingClaim:
  269. ## Pod affinity preset
  270. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  271. ## Allowed values: soft, hard
  272. ##
  273. podAffinityPreset: ''
  274. ## Pod anti-affinity preset
  275. ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  276. ## Allowed values: soft, hard
  277. ##
  278. podAntiAffinityPreset: soft
  279. ## Node affinity preset
  280. ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  281. ## Allowed values: soft, hard
  282. ##
  283. nodeAffinityPreset:
  284. ## Node affinity type
  285. ## Allowed values: soft, hard
  286. ##
  287. type: ''
  288. ## Node label key to match
  289. ## E.g.
  290. ## key: "kubernetes.io/e2e-az-name"
  291. ##
  292. key: ''
  293. ## Node label values to match
  294. ## E.g.
  295. ## values:
  296. ## - e2e-az1
  297. ## - e2e-az2
  298. ##
  299. values: []
  300. ## Affinity for pod assignment
  301. ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  302. ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
  303. ##
  304. affinity: {}
  305. ## Node labels for pod assignment
  306. ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
  307. ##
  308. nodeSelector: {}
  309. ## Tolerations for pod assignment
  310. ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  311. ##
  312. tolerations: []
  313. ## Labels
  314. ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  315. ##
  316. podLabels: {}
  317. ## Annotations
  318. ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  319. ##
  320. podAnnotations: {}
  321. ## Name of the priority class to be used by zookeeper pods, priority class needs to be created beforehand
  322. ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  323. ##
  324. priorityClassName: ''
  325. ## Scheduler name
  326. ## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  327. ##
  328. # schedulerName: stork
  329. ## Configure resource requests and limits
  330. ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
  331. ##
  332. resources:
  333. requests:
  334. memory: 256Mi
  335. cpu: 250m
  336. ## Configure extra options for liveness and readiness probes
  337. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
  338. ##
  339. livenessProbe:
  340. enabled: true
  341. initialDelaySeconds: 30
  342. periodSeconds: 10
  343. timeoutSeconds: 5
  344. failureThreshold: 6
  345. successThreshold: 1
  346. probeCommandTimeout: 2
  347. readinessProbe:
  348. enabled: true
  349. initialDelaySeconds: 5
  350. periodSeconds: 10
  351. timeoutSeconds: 5
  352. failureThreshold: 6
  353. successThreshold: 1
  354. probeCommandTimeout: 2
  355. ## Network policies
  356. ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
  357. ##
  358. networkPolicy:
  359. ## Specifies whether a NetworkPolicy should be created
  360. ##
  361. enabled: false
  362. ## The Policy model to apply. When set to false, only pods with the correct
  363. ## client label will have network access to the port Redis(TM) is listening
  364. ## on. When true, zookeeper accept connections from any source
  365. ## (with the correct destination port).
  366. ##
  367. # allowExternal: true
  368. ## Zookeeper Prometheus Exporter configuration
  369. ##
  370. metrics:
  371. enabled: false
  372. ## Zookeeper Prometheus Exporter container port
  373. ##
  374. containerPort: 9141
  375. ## Service configuration
  376. ##
  377. service:
  378. ## Zookeeper Prometheus Exporter service type
  379. ##
  380. type: ClusterIP
  381. ## Zookeeper Prometheus Exporter service port
  382. ##
  383. port: 9141
  384. ## Annotations for the Zookeeper Prometheus Exporter metrics service
  385. ##
  386. annotations:
  387. prometheus.io/scrape: 'true'
  388. prometheus.io/port: '{{ .Values.metrics.service.port }}'
  389. prometheus.io/path: '/metrics'
  390. ## Prometheus Operator ServiceMonitor configuration
  391. ##
  392. serviceMonitor:
  393. enabled: false
  394. ## Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
  395. ##
  396. namespace:
  397. ## Interval at which metrics should be scraped.
  398. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  399. ##
  400. # interval: 10s
  401. ## Timeout after which the scrape is ended
  402. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  403. ##
  404. # scrapeTimeout: 10s
  405. ## ServiceMonitor selector labels
  406. ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
  407. ##
  408. # selector:
  409. # prometheus: my-prometheus
  410. ## Prometheus Operator PrometheusRule configuration
  411. ##
  412. prometheusRule:
  413. enabled: false
  414. ## Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
  415. ##
  416. namespace:
  417. ## PrometheusRule selector labels
  418. ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
  419. ##
  420. # selector:
  421. # prometheus: my-prometheus
  422. ## Some example rules.
  423. ##
  424. rules: []
  425. # - alert: ZookeeperSyncedFollowers
  426. # annotations:
  427. # message: The number of synced followers for the leader node in Zookeeper deployment my-release is less than 2. This usually means that some of the Zookeeper nodes aren't communicating properly. If it doesn't resolve itself you can try killing the pods (one by one).
  428. # expr: max(synced_followers{service="my-release-metrics"}) < 2
  429. # for: 5m
  430. # labels:
  431. # severity: critical
  432. # - alert: ZookeeperOutstandingRequests
  433. # annotations:
  434. # message: The number of outstanding requests for Zookeeper pod {{ $labels.pod }} is greater than 10. This can indicate a performance issue with the Pod or cluster a whole.
  435. # expr: outstanding_requests{service="my-release-metrics"} > 10
  436. # for: 5m
  437. # labels:
  438. # severity: critical