Merge pull request #1187 from bitnami/zookeeper_logs

Add ZOO_LOG_LEVEL env var
This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2019-05-21 12:21:40 +02:00
committed by GitHub
3 changed files with 11 additions and 0 deletions

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 `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.
@@ -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

@@ -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: