fix: set log mount dir to /var/log/nginx

This commit is contained in:
Jose Diaz-Gonzalez
2024-02-06 01:24:39 -05:00
parent 416a119904
commit 7dbd9adc33

View File

@@ -4,12 +4,12 @@ controller:
config:
# Print access log to file instead of stdout
# Separating acces logs from the rest
access-log-path: "/data/access.log"
error-log-path: "/data/error.log"
access-log-path: "/var/log/nginx/access.log"
error-log-path: "/var/log/nginx/error.log"
log-format-escape-json: "true"
extraVolumeMounts:
- name: data
mountPath: /data
mountPath: /var/log/nginx
extraVolumes:
- name: data
emptyDir: {}
@@ -19,13 +19,13 @@ controller:
args:
- /bin/sh
- -c
- tail -n+1 -F /data/access.log
- tail -n+1 -F /var/log/nginx/access.log
imagePullPolicy: Always
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
- mountPath: /var/log/nginx
name: data
extraContainers:
- name: stream-errorlog
@@ -33,13 +33,13 @@ controller:
args:
- /bin/sh
- -c
- tail -n+1 -F /data/error.log
- tail -n+1 -F /var/log/nginx/error.log
imagePullPolicy: Always
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
- mountPath: /var/log/nginx
name: data
allowSnippetAnnotations: true
podAnnotations: