| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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
- - name: VECTOR_LOG_LEVEL
- value: trace
- - name: VECTOR_INTERNAL_LOG_RATE_SECS
- value: "0"
- 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
|