Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-428

Support debug config for Kourier on operator

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

      Kourier can enable debug logging by following configs:

      For 3scale-kourier-gateway (setting in 3scale-kourier-gateway's deployment):

      args:
        - -l
        - debug
        - -c 
        - /tmp/config/envoy-bootstrap.yaml
      

      For 3scale-kourier-controller:

      cat <<EOF | oc apply -f -
      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: config-logging
        namespace: knative-serving-ingress
      data:
            zap-logger-config: |
              {
                "level": "debug",
                "development": false,
                "outputPaths": ["stdout"],
                "errorOutputPaths": ["stderr"],
                "encoding": "json",
                "encoderConfig": {
                  "timeKey": "ts",
                  "levelKey": "level",
                  "nameKey": "logger",
                  "callerKey": "caller",
                  "messageKey": "msg",
                  "stacktraceKey": "stacktrace",
                  "lineEnding": "",
                  "levelEncoder": "",
                  "timeEncoder": "iso8601",
                  "durationEncoder": "",
                  "callerEncoder": ""
                }
              }
      EOF
      

      However, due to the same reason with SRVKS-200, it cannot be persistent. We need to improve it.

              Unassigned Unassigned
              rhn-support-knakayam Kenjiro Nakayama (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: