Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-3929

Unable to configure the default log limit for the front end requests

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Before this update, the plugin configuration defined in the Cluster Operator instance was not applied. With this update, the configuration is applied correctly.

      Description:  Seeing an error in logging-view-plugin pod after creating ConfigMap for logsLimit: 

      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: logging-view-plugin-config
        namespace: openshift-logging
        labels:
          app: logging-view-plugin
          app.kubernetes.io/part-of: logging-view-plugin
      data:
        config.yaml: |-
          logsLimit: 200
          timeout: '60s'

      error message  in logging-view-plugin pod: 

      time="2023-04-06T09:59:01Z" level=warning msg="cannot read config file, serving plugin with default configuration, tried /etc/plugin/config.yaml" error="read /etc/plugin/config.yaml: is a directory" module=server

      Here is how the configmap is mounted on the  logging-view-plugin deployment:

          spec:
            containers:
            - args:
              - -plugin-config-path
              - /etc/plugin/config.yaml
              ...
      
              volumeMounts:
              - mountPath: /var/serving-cert
                name: serving-cert
                readOnly: true
              - mountPath: /etc/plugin/config.yaml
                name: plugin-config
                readOnly: true
            ...
      
            volumes:
            - name: serving-cert
              secret:
                defaultMode: 420
                secretName: logging-view-plugin
            - configMap:
                defaultMode: 420
                name: logging-view-plugin
                optional: true
              name: plugin-config

            gbernal@redhat.com Gabriel Bernal
            gkarager Giriyamma Karagere Ramaswamy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: