Skip to content

Commit 5d33638

Browse files
authored
Make loglevel for controller and invoker configurable (#621)
Co-authored-by: ning.yougang <[email protected]>
1 parent 3899c47 commit 5d33638

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

helm/openwhisk/templates/controller-pod.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ spec:
186186
- name: "CONFIG_whisk_userEvents_enabled"
187187
value: "true"
188188
{{ end }}
189+
- name: "CONFIG_logback_log_level"
190+
value: "{{ .Values.controller.loglevel }}"
189191
{{- if eq .Values.activationStoreBackend "ElasticSearch" }}
190192
- name: "CONFIG_whisk_activationStore_elasticsearch_protocol"
191193
value: "{{ .Values.elasticsearch.protocol }}"

helm/openwhisk/templates/invoker-pod.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ spec:
189189
- name: "CONFIG_whisk_userEvents_enabled"
190190
value: "true"
191191
{{ end }}
192+
- name: "CONFIG_logback_log_level"
193+
value: "{{ .Values.invoker.loglevel }}"
192194
{{- if eq .Values.activationStoreBackend "ElasticSearch" }}
193195
- name: "CONFIG_whisk_activationStore_elasticsearch_protocol"
194196
value: "{{ .Values.elasticsearch.protocol }}"

helm/openwhisk/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ controller:
259259
options: ""
260260
jvmHeapMB: "1024"
261261
jvmOptions: ""
262+
loglevel: "INFO"
262263

263264
# Invoker configurations
264265
invoker:
@@ -270,6 +271,7 @@ invoker:
270271
options: ""
271272
jvmHeapMB: "512"
272273
jvmOptions: ""
274+
loglevel: "INFO"
273275
containerFactory:
274276
useRunc: false
275277
impl: "kubernetes"

0 commit comments

Comments
 (0)