fix: set the defaultVolumeMounts instead of using extraVolumeMounts
Without this, the daemonset will inject customConfig.data_dir as a default mount, which will collide with extraVolumeMounts.
This commit is contained in:
1 file changed
+32
-5
@@ -28,16 +28,43 @@ readinessProbe:
|
|||||||
path: /health
|
path: /health
|
||||||
port: api
|
port: api
|
||||||
|
|
||||||
extraVolumes:
|
# Replace the chart's defaults so /vector-data-dir is backed by a host directory
|
||||||
- name: vector-data-dir
|
# instead of the chart-managed emptyDir. Other defaults (var-log, var-lib, procfs,
|
||||||
|
# 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
|
||||||
|
|
||||||
extraVolumeMounts:
|
defaultVolumeMounts:
|
||||||
- name: vector-data-dir
|
- name: data
|
||||||
mountPath: /vector-data-dir
|
mountPath: /vector-data-dir
|
||||||
readOnly: false
|
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: /vector-data-dir
|
||||||
@@ -61,7 +88,7 @@ customConfig:
|
|||||||
- kubernetes_logs
|
- kubernetes_logs
|
||||||
source: |
|
source: |
|
||||||
.container = .kubernetes.container_name
|
.container = .kubernetes.container_name
|
||||||
.pod = .kubernetes.pod_name
|
.pod = .kubernetes.pod_name
|
||||||
.namespace = .kubernetes.pod_namespace
|
.namespace = .kubernetes.pod_namespace
|
||||||
|
|
||||||
sinks:
|
sinks:
|
||||||
|
|||||||
Reference in new issue
Block a user