2
0

values.yaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. ## Affinity for pod assignment
  2. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  3. affinity: {}
  4. annotations: {}
  5. # The update strategy to apply to the DaemonSet
  6. ##
  7. deploymentStrategy: {}
  8. # rollingUpdate:
  9. # maxUnavailable: 1
  10. # type: RollingUpdate
  11. initContainer:
  12. enabled: false
  13. fsInotifyMaxUserInstances: 128
  14. image:
  15. repository: registry.cn-beijing.aliyuncs.com/dotbalo/promtail
  16. tag: 2.1.0
  17. pullPolicy: IfNotPresent
  18. ## Optionally specify an array of imagePullSecrets.
  19. ## Secrets must be manually created in the namespace.
  20. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  21. ##
  22. # pullSecrets:
  23. # - myRegistryKeySecretName
  24. livenessProbe: {}
  25. loki:
  26. serviceName: "" # Defaults to "${RELEASE}-loki" if not set
  27. servicePort: 3100
  28. serviceScheme: http
  29. # user: user
  30. # password: pass
  31. nameOverride: promtail
  32. ## Node labels for pod assignment
  33. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  34. nodeSelector: {}
  35. pipelineStages:
  36. - docker: {}
  37. ## Pod Labels
  38. podLabels: {}
  39. podAnnotations:
  40. prometheus.io/scrape: "true"
  41. prometheus.io/port: "http-metrics"
  42. ## Assign a PriorityClassName to pods if set
  43. # priorityClassName:
  44. rbac:
  45. create: true
  46. pspEnabled: true
  47. podSecurityPolicy:
  48. privileged: false
  49. allowPrivilegeEscalation: false
  50. volumes:
  51. - 'secret'
  52. - 'configMap'
  53. - 'hostPath'
  54. - 'projected'
  55. - 'downwardAPI'
  56. - 'emptyDir'
  57. hostNetwork: false
  58. hostIPC: false
  59. hostPID: false
  60. runAsUser:
  61. rule: 'RunAsAny'
  62. seLinux:
  63. rule: 'RunAsAny'
  64. supplementalGroups:
  65. rule: 'RunAsAny'
  66. fsGroup:
  67. rule: 'RunAsAny'
  68. readOnlyRootFilesystem: true
  69. requiredDropCapabilities:
  70. - ALL
  71. readinessProbe:
  72. failureThreshold: 5
  73. httpGet:
  74. path: /ready
  75. port: http-metrics
  76. initialDelaySeconds: 10
  77. periodSeconds: 10
  78. successThreshold: 1
  79. timeoutSeconds: 1
  80. resources: {}
  81. # limits:
  82. # cpu: 200m
  83. # memory: 128Mi
  84. # requests:
  85. # cpu: 100m
  86. # memory: 128Mi
  87. # Custom scrape_configs to override the default ones in the configmap
  88. scrapeConfigs: []
  89. # Custom scrape_configs together with the default ones in the configmap
  90. extraScrapeConfigs: []
  91. securityContext:
  92. readOnlyRootFilesystem: true
  93. runAsGroup: 0
  94. runAsUser: 0
  95. serviceAccount:
  96. create: true
  97. name:
  98. ## Tolerations for pod assignment
  99. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  100. tolerations:
  101. - key: node-role.kubernetes.io/master
  102. operator: Exists
  103. effect: NoSchedule
  104. # Extra volumes to scrape logs from
  105. volumes:
  106. - name: docker
  107. hostPath:
  108. path: /var/lib/docker/containers
  109. - name: pods
  110. hostPath:
  111. path: /var/log/pods
  112. # Custom volumes together with the default ones
  113. extraVolumes: []
  114. volumeMounts:
  115. - name: docker
  116. mountPath: /var/lib/docker/containers
  117. readOnly: true
  118. - name: pods
  119. mountPath: /var/log/pods
  120. readOnly: true
  121. # Custom volumeMounts together with the default ones
  122. extraVolumeMounts: []
  123. # Add extra Commandline args while starting up promtail.
  124. # more info : https://github.com/grafana/loki/pull/1530
  125. extraCommandlineArgs: []
  126. # example:
  127. # extraCommandlineArgs:
  128. # - -client.external-labels=hostname=$(HOSTNAME)
  129. config:
  130. client:
  131. # Maximum wait period before sending batch
  132. batchwait: 1s
  133. # Maximum batch size to accrue before sending, unit is byte
  134. batchsize: 1048576
  135. # Maximum time to wait for server to respond to a request
  136. timeout: 10s
  137. backoff_config:
  138. # Initial backoff time between retries
  139. min_period: 500ms
  140. # Maximum backoff time between retries
  141. max_period: 5m
  142. # Maximum number of retries when sending batches, 0 means infinite retries
  143. max_retries: 10
  144. # The labels to add to any time series or alerts when communicating with loki
  145. external_labels: {}
  146. server:
  147. http_listen_port: 3101
  148. positions:
  149. filename: /run/promtail/positions.yaml
  150. target_config:
  151. # Period to resync directories being watched and files being tailed
  152. sync_period: 10s
  153. serviceMonitor:
  154. enabled: false
  155. interval: ""
  156. additionalLabels: {}
  157. annotations: {}
  158. # scrapeTimeout: 10s
  159. # Extra env variables to pass to the promtail container
  160. env: []
  161. # enable and configure if using the syslog scrape config
  162. syslogService:
  163. enabled: false
  164. type: ClusterIP
  165. port: 1514
  166. # externalIPs: []
  167. ## Specify the nodePort value for the LoadBalancer and NodePort service types.
  168. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  169. ##
  170. # nodePort:
  171. ## Provide any additional annotations which may be required. This can be used to
  172. ## set the LoadBalancer service type to internal only.
  173. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  174. ##
  175. annotations: {}
  176. labels: {}
  177. ## Use loadBalancerIP to request a specific static IP,
  178. ## otherwise leave blank
  179. ##
  180. loadBalancerIP:
  181. # loadBalancerSourceRanges: []
  182. ## Set the externalTrafficPolicy in the Service to either Cluster or Local
  183. # externalTrafficPolicy: Cluster