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: config:
# 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: "/var/log/nginx/access.log"
error-log-path: "/data/error.log" error-log-path: "/var/log/nginx/error.log"
log-format-escape-json: "true" log-format-escape-json: "true"
extraVolumeMounts: extraVolumeMounts:
- name: data - name: data
mountPath: /data mountPath: /var/log/nginx
extraVolumes: extraVolumes:
- name: data - name: data
emptyDir: {} emptyDir: {}
@@ -19,13 +19,13 @@ controller:
args: args:
- /bin/sh - /bin/sh
- -c - -c
- tail -n+1 -F /data/access.log - tail -n+1 -F /var/log/nginx/access.log
imagePullPolicy: Always imagePullPolicy: Always
resources: {} resources: {}
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File terminationMessagePolicy: File
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /var/log/nginx
name: data name: data
extraContainers: extraContainers:
- name: stream-errorlog - name: stream-errorlog
@@ -33,13 +33,13 @@ controller:
args: args:
- /bin/sh - /bin/sh
- -c - -c
- tail -n+1 -F /data/error.log - tail -n+1 -F /var/log/nginx/error.log
imagePullPolicy: Always imagePullPolicy: Always
resources: {} resources: {}
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File terminationMessagePolicy: File
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /var/log/nginx
name: data name: data
allowSnippetAnnotations: true allowSnippetAnnotations: true
podAnnotations: podAnnotations: