Closed AceHack closed 3 years ago
Describe the bug Gets the following error and restarts "Error reading/parsing logging configuration"
Expected behavior channel controller to start
To Reproduce Install kafka channel controller
Knative release version 0.17.2 serving, 0.17.3 eventing, 0.17.1 contrib
Additional context here is the config-logging
apiVersion: v1 data: loglevel.controller: debug loglevel.webhook: debug zap-logger-config: | { "level": "info", "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": "" } } kind: ConfigMap metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"v1","data":{"loglevel.controller":"debug","loglevel.webhook":"debug","zap-logger-config":"{\n \"level\": \"info\",\n \"development\": false,\n \"outputPaths\": [\"stdout\"],\n \"errorOutputPaths\": [\"stderr\"],\n \"encoding\": \"json\",\n \"encoderConfig\": {\n \"timeKey\": \"ts\",\n \"levelKey\": \"level\",\n \"nameKey\": \"logger\",\n \"callerKey\": \"caller\",\n \"messageKey\": \"msg\",\n \"stacktraceKey\": \"stacktrace\",\n \"lineEnding\": \"\",\n \"levelEncoder\": \"\",\n \"timeEncoder\": \"iso8601\",\n \"durationEncoder\": \"\",\n \"callerEncoder\": \"\"\n }\n}\n"},"kind":"ConfigMap","metadata":{"labels":{"eventing.knative.dev/release":"v0.17.3","knative.dev/config-category":"eventing","knative.dev/config-propagation":"original"},"name":"config-logging","namespace":"knative-eventing","ownerReferences":[{"apiVersion":"operator.knative.dev/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"KnativeEventing","name":"knative-eventing","uid":"acbf8e84-2c2e-449e-8b95-acd422a643c9"}]}} creationTimestamp: "2020-09-10T05:23:22Z" labels: eventing.knative.dev/release: v0.17.3 knative.dev/config-category: eventing knative.dev/config-propagation: original name: config-logging namespace: knative-eventing ownerReferences: - apiVersion: operator.knative.dev/v1alpha1 blockOwnerDeletion: true controller: true kind: KnativeEventing name: knative-eventing uid: acbf8e84-2c2e-449e-8b95-acd422a643c9 resourceVersion: "112153294" selfLink: /api/v1/namespaces/knative-eventing/configmaps/config-logging uid: d5859ea7-77b2-48d7-8bf1-2266c9f3d291
The config map sounds fine, can you show the log you see?
I found the issue, I missed a --- in my yaml for cluster roles so it was an RBAC issue.
Describe the bug Gets the following error and restarts "Error reading/parsing logging configuration"
Expected behavior channel controller to start
To Reproduce Install kafka channel controller
Knative release version 0.17.2 serving, 0.17.3 eventing, 0.17.1 contrib
Additional context here is the config-logging