Hi, I’m using the rancher-logging
Chart via the Rancher Logging plugin. I’d like to create a File Output to store logs into a volume. This might look something like this :
apiVersion: logging.banzaicloud.io/v1beta1
kind: Output
metadata:
name: logs-file.output
namespace: my-namespace
spec:
file:
buffer:
chunk_limit_size: 16MB
flush_at_shutdown: true
flush_interval: 5s
flush_mode: interval
flush_thread_count: 8
overflow_action: drop_oldest_chunk
retry_max_interval: 30s
retry_timeout: 1h
retry_type: exponential_backoff
path: /var/nfs/logs
But I don’t know how to mount a PersistentVolumeClaim on Fluentd. I’m pretty sure I can specify the extraVolumes
property on the Logging
resource :
apiVersion: logging.banzaicloud.io/v1beta1
kind: Logging
metadata:
name: rancher-logging-root
spec:
controlNamespace: cattle-logging-system
fluentbit:
...
fluentd:
...
extraVolumes:
- containerName: fluentd
path: /var/nfs/logs
volume:
pvc:
source:
claimName: logs-storage-nfs
...
But since it’s managed by HELM, I shouldn’t modify it manually, but I don’t know how to configure this via the chart values.