values.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. ---
  2. loki:
  3. serviceName: "" # Defaults to "${RELEASE}-loki" if not set
  4. servicePort: 3100
  5. serviceScheme: http
  6. servicePath: /api/prom/push
  7. # user: user
  8. # password: pass
  9. config:
  10. port: 2020
  11. tenantID: '""'
  12. batchWait: 1
  13. batchSize: 1048576
  14. loglevel: warn
  15. lineFormat: json
  16. k8sLoggingExclude: "Off"
  17. k8sLoggingParser: "Off"
  18. memBufLimit: "5MB"
  19. bufChunkSize: "32k"
  20. bufMaxSize: "32k"
  21. removeKeys:
  22. - kubernetes
  23. - stream
  24. autoKubernetesLabels: false
  25. labels: '{job="fluent-bit"}'
  26. labelMap:
  27. kubernetes:
  28. namespace_name: namespace
  29. labels:
  30. app: app
  31. release: release
  32. host: node
  33. container_name: container
  34. pod_name: instance
  35. stream: stream
  36. # parsers: # Allow to define custom parsers. The key here is the same as the one in the [PARSER] section of parsers.conf file.
  37. # - Name: json
  38. # Format: json
  39. # Time_Key: time
  40. # Time_Format: "%d/%b/%Y:%H:%M:%S %z"
  41. # extraOutputs: # Allow to define extra outputs in addition to the one automatically created
  42. # - Name: stdout
  43. # Format: json
  44. # json_date_format: time
  45. affinity: {}
  46. annotations: {}
  47. deploymentStrategy: RollingUpdate
  48. image:
  49. repository: grafana/fluent-bit-plugin-loki
  50. tag: 2.1.0-amd64
  51. pullPolicy: IfNotPresent
  52. ## Optionally specify an array of imagePullSecrets.
  53. ## Secrets must be present in the namespace.
  54. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  55. # pullSecrets:
  56. # - myRegistrKeySecretName
  57. nameOverride: fluent-bit-loki
  58. ## Node labels for pod assignment
  59. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  60. nodeSelector: {}
  61. ## Pod Labels
  62. podLabels: {}
  63. podAnnotations:
  64. prometheus.io/scrape: "true"
  65. prometheus.io/port: "2020"
  66. prometheus.io/path: /api/v1/metrics/prometheus
  67. ## Assign a PriorityClassName to pods if set
  68. # priorityClassName:
  69. rbac:
  70. create: true
  71. pspEnabled: true
  72. resources:
  73. limits:
  74. memory: 100Mi
  75. requests:
  76. cpu: 100m
  77. memory: 100Mi
  78. serviceAccount:
  79. create: true
  80. name:
  81. ## Tolerations for pod assignment
  82. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  83. tolerations:
  84. - key: node-role.kubernetes.io/master
  85. effect: NoSchedule
  86. # Extra volumes to scrape logs from
  87. volumes:
  88. - name: varlog
  89. hostPath:
  90. path: /var/log
  91. - name: varlibdockercontainers
  92. hostPath:
  93. path: /var/lib/docker/containers
  94. volumeMounts:
  95. - name: varlog
  96. mountPath: /var/log
  97. - name: varlibdockercontainers
  98. mountPath: /var/lib/docker/containers
  99. readOnly: true
  100. serviceMonitor:
  101. enabled: false
  102. interval: ""
  103. additionalLabels: {}
  104. annotations: {}
  105. # scrapeTimeout: 10s