apiVersion: apps/v1 kind: DaemonSet metadata: name: vector namespace: {{ .Release.Namespace }} labels: app: vector spec: selector: matchLabels: app: vector template: metadata: labels: app: vector spec: serviceAccountName: vector nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} tolerations: {{ toYaml .Values.tolerations | nindent 8 }} affinity: {{ toYaml .Values.affinity | nindent 8 }} containers: - name: vector image: "{{ .Values.vector.image.repository }}:{{ .Values.vector.image.tag }}" imagePullPolicy: IfNotPresent resources: limits: cpu: {{ .Values.vector.resources.limits.cpu }} memory: {{ .Values.vector.resources.limits.memory }} requests: cpu: {{ .Values.vector.resources.requests.cpu }} memory: {{ .Values.vector.resources.requests.memory }} env: - name: VECTOR_CONFIG value: /etc/vector/vector.toml - name: VECTOR_SELF_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName volumeMounts: - name: varlog mountPath: /var/log readOnly: true - name: docker-containers mountPath: /var/lib/docker/containers readOnly: true - name: kubelet-pods mountPath: /var/lib/kubelet/pods readOnly: true - name: vector-data mountPath: /var/lib/vector - name: vector-config mountPath: /etc/vector readOnly: true volumes: - name: varlog hostPath: path: /var/log type: DirectoryOrCreate - name: docker-containers hostPath: path: /var/lib/docker/containers type: DirectoryOrCreate - name: kubelet-pods hostPath: path: /var/lib/kubelet/pods type: DirectoryOrCreate - name: vector-data hostPath: path: /var/lib/vector type: DirectoryOrCreate - name: vector-config configMap: name: vector-config terminationGracePeriodSeconds: 30