fix: use extraVolumeMount just for the vector state

This commit is contained in:
Jose Diaz-Gonzalez
2026-04-27 16:06:07 -04:00
committed by GitHub
parent 099c358a1e
commit 5dcefe7ffa

View File

@@ -28,46 +28,18 @@ readinessProbe:
path: /health path: /health
port: api port: api
# Replace the chart's defaults so /vector-data-dir is backed by a host directory extraVolumes:
# instead of the chart-managed emptyDir. Other defaults (var-log, var-lib, procfs, - name: vector-state
# sysfs) are preserved as the chart ships them.
defaultVolumes:
- name: data
hostPath: hostPath:
path: /var/lib/vector path: /var/lib/vector
type: DirectoryOrCreate type: DirectoryOrCreate
- name: var-log
hostPath:
path: /var/log/
- name: var-lib
hostPath:
path: /var/lib/
- name: procfs
hostPath:
path: /proc
- name: sysfs
hostPath:
path: /sys
defaultVolumeMounts: extraVolumeMounts:
- name: data - name: vector-state
mountPath: /vector-data-dir mountPath: /var/lib/vector-state
readOnly: false
- name: var-log
mountPath: /var/log/
readOnly: true
- name: var-lib
mountPath: /var/lib
readOnly: true
- name: procfs
mountPath: /host/proc
readOnly: true
- name: sysfs
mountPath: /host/sys
readOnly: true
customConfig: customConfig:
data_dir: /vector-data-dir data_dir: /var/lib/vector-state
api: api:
enabled: true enabled: true
@@ -87,9 +59,10 @@ customConfig:
inputs: inputs:
- kubernetes_logs - kubernetes_logs
source: | source: |
.container = .kubernetes.container_name .container = del(.kubernetes.container_name)
.pod = .kubernetes.pod_name .pod = del(.kubernetes.pod_name)
.namespace = .kubernetes.pod_namespace .namespace = del(.kubernetes.pod_namespace)
del(.kubernetes)
sinks: sinks:
default_global_sink: default_global_sink: