feat: add support for displaying error logs
This commit is contained in:
@@ -5,8 +5,8 @@ controller:
|
|||||||
# Print access log to file instead of stdout
|
# Print access log to file instead of stdout
|
||||||
# Separating acces logs from the rest
|
# Separating acces logs from the rest
|
||||||
access-log-path: "/data/access.log"
|
access-log-path: "/data/access.log"
|
||||||
|
error-log-path: "/data/error.log"
|
||||||
log-format-escape-json: "true"
|
log-format-escape-json: "true"
|
||||||
|
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
@@ -27,6 +27,20 @@ controller:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
|
extraContainers:
|
||||||
|
- name: stream-errorlog
|
||||||
|
image: busybox
|
||||||
|
args:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- tail -n+1 -F /data/error.log
|
||||||
|
imagePullPolicy: Always
|
||||||
|
resources: {}
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: data
|
||||||
allowSnippetAnnotations: true
|
allowSnippetAnnotations: true
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
prometheus.io/path: /metrics
|
prometheus.io/path: /metrics
|
||||||
|
|||||||
Reference in New Issue
Block a user