daemonset-vector.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: vector
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. app: vector
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: vector
  12. template:
  13. metadata:
  14. labels:
  15. app: vector
  16. spec:
  17. serviceAccountName: default
  18. nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
  19. tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
  20. affinity: {{ toYaml .Values.affinity | nindent 8 }}
  21. containers:
  22. - name: vector
  23. image: "{{ .Values.vector.image.repository }}:{{ .Values.vector.image.tag }}"
  24. imagePullPolicy: IfNotPresent
  25. resources:
  26. limits:
  27. cpu: {{ .Values.vector.resources.limits.cpu }}
  28. memory: {{ .Values.vector.resources.limits.memory }}
  29. requests:
  30. cpu: {{ .Values.vector.resources.requests.cpu }}
  31. memory: {{ .Values.vector.resources.requests.memory }}
  32. env:
  33. - name: VECTOR_CONFIG
  34. value: /etc/vector/vector.toml
  35. volumeMounts:
  36. - name: varlog
  37. mountPath: /var/log
  38. readOnly: true
  39. - name: vector-config
  40. mountPath: /etc/vector
  41. readOnly: true
  42. volumes:
  43. - name: varlog
  44. hostPath:
  45. path: /var/log
  46. type: DirectoryOrCreate
  47. - name: vector-config
  48. configMap:
  49. name: vector-config
  50. terminationGracePeriodSeconds: 30