Add ZOO_LOG_LEVEL env var

This commit is contained in:
Miguel A. Cabrera Minagorri
2019-05-15 11:41:36 +00:00
parent be23aa945e
commit eba9fe2dc8
4 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: zookeeper
version: 2.2.0
version: 2.2.1
appVersion: 3.4.14
description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.
keywords:

View File

@@ -41,6 +41,10 @@ $ 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 `FALSE` because of each readiness prove 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.
@@ -74,6 +78,7 @@ The following tables lists the configurable parameters of the Zookeeper chart an
| `auth.serverUsers` | List of user to be created | `[]` |
| `auth.serverPasswords` | List of passwords to assign to users when created | `[]` |
| `heapSize` | Size in MB for the Java Heap options (Xmx and XMs) | `[]` |
| `logLevel` | Log level of Zookeeper server | `ERROR` |
| `jvmFlags` | Default JVMFLAGS for the ZooKeeper process | `nil` |
| `config` | Configure ZooKeeper with a custom zoo.conf file | `nil` |
| `service.type` | Kubernetes Service type | `ClusterIP` |

View File

@@ -115,6 +115,8 @@ spec:
{{- end }}
- name: ZOO_HEAP_SIZE
value: {{ .Values.heapSize | quote }}
- name: ZOO_LOG_LEVEL
value: {{ .Values.logLevel | quote }}
- name: ALLOW_ANONYMOUS_LOGIN
value: {{ ternary "yes" "no" .Values.allowAnonymousLogin | quote }}
{{- if .Values.jvmFlags }}

View File

@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/zookeeper
tag: 3.4.14
tag: 3.4.15
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -107,6 +107,10 @@ auth:
##
heapSize: 1024
## 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.
##
logLevel: ERROR
## Default JVMFLAGS for the ZooKeeper process
##
# jvmFlags: