You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ji...@apache.org on 2020/07/29 02:24:56 UTC

[openwhisk-deploy-kube] branch master updated: Make loglevel for controller and invoker configurable (#621)

This is an automated email from the ASF dual-hosted git repository.

jiangpengcheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d33638  Make loglevel for controller and invoker configurable (#621)
5d33638 is described below

commit 5d33638b76908e82fb56c62a9121bc1cf60fa35b
Author: ningyougang <41...@qq.com>
AuthorDate: Wed Jul 29 10:24:47 2020 +0800

    Make loglevel for controller and invoker configurable (#621)
    
    Co-authored-by: ning.yougang <ni...@navercorp.com>
---
 helm/openwhisk/templates/controller-pod.yaml | 2 ++
 helm/openwhisk/templates/invoker-pod.yaml    | 2 ++
 helm/openwhisk/values.yaml                   | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/helm/openwhisk/templates/controller-pod.yaml b/helm/openwhisk/templates/controller-pod.yaml
index 8066596..12a2000 100644
--- a/helm/openwhisk/templates/controller-pod.yaml
+++ b/helm/openwhisk/templates/controller-pod.yaml
@@ -186,6 +186,8 @@ spec:
         - name: "CONFIG_whisk_userEvents_enabled"
           value: "true"
 {{ end }}
+        - name: "CONFIG_logback_log_level"
+          value: "{{ .Values.controller.loglevel }}"
 {{- if eq .Values.activationStoreBackend "ElasticSearch" }}
         - name: "CONFIG_whisk_activationStore_elasticsearch_protocol"
           value: "{{ .Values.elasticsearch.protocol }}"
diff --git a/helm/openwhisk/templates/invoker-pod.yaml b/helm/openwhisk/templates/invoker-pod.yaml
index d71ceef..8e27264 100644
--- a/helm/openwhisk/templates/invoker-pod.yaml
+++ b/helm/openwhisk/templates/invoker-pod.yaml
@@ -189,6 +189,8 @@ spec:
           - name: "CONFIG_whisk_userEvents_enabled"
             value: "true"
 {{ end }}
+          - name: "CONFIG_logback_log_level"
+            value: "{{ .Values.invoker.loglevel }}"
 {{- if eq .Values.activationStoreBackend "ElasticSearch" }}
           - name: "CONFIG_whisk_activationStore_elasticsearch_protocol"
             value: "{{ .Values.elasticsearch.protocol }}"
diff --git a/helm/openwhisk/values.yaml b/helm/openwhisk/values.yaml
index 1bfca21..a28ece2 100644
--- a/helm/openwhisk/values.yaml
+++ b/helm/openwhisk/values.yaml
@@ -259,6 +259,7 @@ controller:
   options: ""
   jvmHeapMB: "1024"
   jvmOptions: ""
+  loglevel: "INFO"
 
 # Invoker configurations
 invoker:
@@ -270,6 +271,7 @@ invoker:
   options: ""
   jvmHeapMB: "512"
   jvmOptions: ""
+  loglevel: "INFO"
   containerFactory:
     useRunc: false
     impl: "kubernetes"