daemonset.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. # Source: loki-stack/charts/fluent-bit/templates/daemonset.yaml
  3. apiVersion: apps/v1
  4. kind: DaemonSet
  5. metadata:
  6. name: loki-fluent-bit-loki
  7. namespace: loki
  8. labels:
  9. app: fluent-bit-loki
  10. chart: fluent-bit-0.0.2
  11. release: loki
  12. heritage: Tiller
  13. annotations:
  14. {}
  15. spec:
  16. selector:
  17. matchLabels:
  18. app: fluent-bit-loki
  19. release: loki
  20. updateStrategy:
  21. type: RollingUpdate
  22. template:
  23. metadata:
  24. labels:
  25. app: fluent-bit-loki
  26. release: loki
  27. annotations:
  28. checksum/config: b15de805dfc12b6609c7b03af98727686ba86afc16c9f8956324777b7e85138c
  29. prometheus.io/path: /api/v1/metrics/prometheus
  30. prometheus.io/port: "2020"
  31. prometheus.io/scrape: "true"
  32. spec:
  33. serviceAccountName: loki-fluent-bit-loki
  34. containers:
  35. - name: fluent-bit-loki
  36. image: "grafana/fluent-bit-plugin-loki:0.1"
  37. imagePullPolicy: IfNotPresent
  38. volumeMounts:
  39. - name: config
  40. mountPath: /fluent-bit/etc
  41. - name: run
  42. mountPath: /run/fluent-bit
  43. - mountPath: /var/log
  44. name: varlog
  45. - mountPath: /var/lib/docker/containers
  46. name: varlibdockercontainers
  47. readOnly: true
  48. ports:
  49. - containerPort: 2020
  50. name: http-metrics
  51. resources:
  52. limits:
  53. memory: 100Mi
  54. requests:
  55. cpu: 100m
  56. memory: 100Mi
  57. nodeSelector:
  58. {}
  59. affinity:
  60. {}
  61. tolerations:
  62. - effect: NoSchedule
  63. key: node-role.kubernetes.io/master
  64. terminationGracePeriodSeconds: 10
  65. volumes:
  66. - name: config
  67. configMap:
  68. name: loki-fluent-bit-loki
  69. - name: run
  70. hostPath:
  71. path: /run/fluent-bit
  72. - hostPath:
  73. path: /var/log
  74. name: varlog
  75. - hostPath:
  76. path: /var/lib/docker/containers
  77. name: varlibdockercontainers