[stable/zed] Upgrade monitoring stack (#1093)
Resolves #1075
Reviewed-by: Mohammed Naser <mnaser@vexxhost.com>
diff --git a/charts/vector/templates/_pod.tpl b/charts/vector/templates/_pod.tpl
index 3d5b64f..51e1fb0 100644
--- a/charts/vector/templates/_pod.tpl
+++ b/charts/vector/templates/_pod.tpl
@@ -13,6 +13,9 @@
{{- with .Values.podPriorityClassName }}
priorityClassName: {{ . }}
{{- end }}
+{{- with .Values.shareProcessNamespace }}
+shareProcessNamespace: {{ . }}
+{{- end }}
{{- with .Values.dnsPolicy }}
dnsPolicy: {{ . }}
{{- end }}
@@ -49,6 +52,8 @@
{{- toYaml . | nindent 6 }}
{{- end }}
env:
+ - name: VECTOR_LOG
+ value: "{{ .Values.logLevel | default "info" }}"
{{- if .Values.env }}
{{- with .Values.env }}
{{- toYaml . | nindent 6 }}
@@ -140,18 +145,9 @@
mountPath: "/etc/vector/"
readOnly: true
{{- if (eq .Values.role "Agent") }}
- - 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
+{{- with .Values.defaultVolumeMounts }}
+{{- toYaml . | nindent 6 }}
+{{- end }}
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 6 }}
@@ -201,20 +197,15 @@
{{- end }}
{{- if (eq .Values.role "Agent") }}
- name: data
+ {{- if .Values.persistence.hostPath.enabled }}
hostPath:
path: {{ .Values.persistence.hostPath.path | quote }}
- - name: var-log
- hostPath:
- path: "/var/log/"
- - name: var-lib
- hostPath:
- path: "/var/lib/"
- - name: procfs
- hostPath:
- path: "/proc"
- - name: sysfs
- hostPath:
- path: "/sys"
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
+ {{- with .Values.defaultVolumes }}
+ {{- toYaml . | nindent 2 }}
+ {{- end }}
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 2 }}