This commit is contained in:
2026-04-06 21:36:15 +07:00
commit 35874bf520
29 changed files with 1625 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "loki-stack.fullname" . }}-vector
labels:
{{- include "loki-stack.labels" . | nindent 4 }}
app.kubernetes.io/component: vector
spec:
selector:
matchLabels:
{{- include "loki-stack.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: vector
template:
metadata:
labels:
{{- include "loki-stack.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: vector
spec:
serviceAccountName: {{ include "loki-stack.fullname" . }}-vector
containers:
- name: vector
image: {{ .Values.vector.image.repository }}:{{ .Values.vector.image.tag }}
securityContext:
privileged: true
env:
- name: VECTOR_SELF_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: config
mountPath: /etc/vector/vector.yaml
subPath: vector.yaml
- name: var-log
mountPath: /var/log
readOnly: true
- name: var-lib-containers
mountPath: /var/log/pods
readOnly: true
- name: data
mountPath: /vector-data-dir
resources:
{{- toYaml .Values.vector.resources | nindent 12 }}
{{- with .Values.vector.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: config
configMap:
name: {{ include "loki-stack.fullname" . }}-vector
- name: var-log
hostPath:
path: /var/log
- name: var-lib-containers
hostPath:
path: /var/log/pods
- name: data
hostPath:
path: /var/lib/vector