values.yaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. ---
  2. daemonset:
  3. # Annotations to apply to the daemonset
  4. annotations: {}
  5. # additionals labels
  6. labels: {}
  7. affinity: {}
  8. # Include the daemonset
  9. enabled: true
  10. # Extra environment variables for Filebeat container.
  11. envFrom: []
  12. # - configMapRef:
  13. # name: config-secret
  14. extraEnvs: []
  15. # - name: MY_ENVIRONMENT_VAR
  16. # value: the_value_goes_here
  17. extraVolumes:
  18. []
  19. # - name: extras
  20. # emptyDir: {}
  21. extraVolumeMounts:
  22. []
  23. # - name: extras
  24. # mountPath: /usr/share/extras
  25. # readOnly: true
  26. hostNetworking: false
  27. # Allows you to add any config files in /usr/share/filebeat
  28. # such as filebeat.yml for daemonset
  29. filebeatConfig:
  30. filebeat.yml: |
  31. filebeat.inputs:
  32. - type: container
  33. paths:
  34. - /var/log/containers/*.log
  35. processors:
  36. - add_kubernetes_metadata:
  37. host: ${NODE_NAME}
  38. matchers:
  39. - logs_path:
  40. logs_path: "/var/log/containers/"
  41. output.elasticsearch:
  42. host: '${NODE_NAME}'
  43. hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}'
  44. # Only used when updateStrategy is set to "RollingUpdate"
  45. maxUnavailable: 1
  46. nodeSelector: {}
  47. # A list of secrets and their paths to mount inside the pod
  48. # This is useful for mounting certificates for security other sensitive values
  49. secretMounts: []
  50. # - name: filebeat-certificates
  51. # secretName: filebeat-certificates
  52. # path: /usr/share/filebeat/certs
  53. # Various pod security context settings. Bear in mind that many of these have an impact on Filebeat functioning properly.
  54. #
  55. # - User that the container will execute as. Typically necessary to run as root (0) in order to properly collect host container logs.
  56. # - Whether to execute the Filebeat containers as privileged containers. Typically not necessarily unless running within environments such as OpenShift.
  57. securityContext:
  58. runAsUser: 0
  59. privileged: false
  60. resources:
  61. requests:
  62. cpu: "100m"
  63. memory: "100Mi"
  64. limits:
  65. cpu: "1000m"
  66. memory: "200Mi"
  67. tolerations: []
  68. deployment:
  69. # Annotations to apply to the deployment
  70. annotations: {}
  71. # additionals labels
  72. labels: {}
  73. affinity: {}
  74. # Include the deployment
  75. enabled: false
  76. # Extra environment variables for Filebeat container.
  77. envFrom: []
  78. # - configMapRef:
  79. # name: config-secret
  80. extraEnvs: []
  81. # - name: MY_ENVIRONMENT_VAR
  82. # value: the_value_goes_here
  83. # Allows you to add any config files in /usr/share/filebeat
  84. extraVolumes: []
  85. # - name: extras
  86. # emptyDir: {}
  87. extraVolumeMounts: []
  88. # - name: extras
  89. # mountPath: /usr/share/extras
  90. # readOnly: true
  91. # such as filebeat.yml for deployment
  92. filebeatConfig:
  93. filebeat.yml: |
  94. filebeat.inputs:
  95. - type: tcp
  96. max_message_size: 10MiB
  97. host: "localhost:9000"
  98. output.elasticsearch:
  99. host: '${NODE_NAME}'
  100. hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}'
  101. nodeSelector: {}
  102. # A list of secrets and their paths to mount inside the pod
  103. # This is useful for mounting certificates for security other sensitive values
  104. secretMounts: []
  105. # - name: filebeat-certificates
  106. # secretName: filebeat-certificates
  107. # path: /usr/share/filebeat/certs
  108. #
  109. # - User that the container will execute as.
  110. # Not necessary to run as root (0) as the Filebeat Deployment use cases do not need access to Kubernetes Node internals
  111. # - Typically not necessarily unless running within environments such as OpenShift.
  112. securityContext:
  113. runAsUser: 0
  114. privileged: false
  115. resources:
  116. requests:
  117. cpu: "100m"
  118. memory: "100Mi"
  119. limits:
  120. cpu: "1000m"
  121. memory: "200Mi"
  122. tolerations: []
  123. # Replicas being used for the filebeat deployment
  124. replicas: 1
  125. extraContainers: ""
  126. # - name: dummy-init
  127. # image: busybox
  128. # command: ['echo', 'hey']
  129. extraInitContainers: []
  130. # - name: dummy-init
  131. # Root directory where Filebeat will write data to in order to persist registry data across pod restarts (file position and other metadata).
  132. hostPathRoot: /var/lib
  133. dnsConfig: {}
  134. # options:
  135. # - name: ndots
  136. # value: "2"
  137. hostAliases: []
  138. #- ip: "127.0.0.1"
  139. # hostnames:
  140. # - "foo.local"
  141. # - "bar.local"
  142. image: "docker.elastic.co/beats/filebeat"
  143. imageTag: "7.17.3"
  144. imagePullPolicy: "IfNotPresent"
  145. imagePullSecrets: []
  146. livenessProbe:
  147. exec:
  148. command:
  149. - sh
  150. - -c
  151. - |
  152. #!/usr/bin/env bash -e
  153. curl --fail 127.0.0.1:5066
  154. failureThreshold: 3
  155. initialDelaySeconds: 10
  156. periodSeconds: 10
  157. timeoutSeconds: 5
  158. readinessProbe:
  159. exec:
  160. command:
  161. - sh
  162. - -c
  163. - |
  164. #!/usr/bin/env bash -e
  165. filebeat test output
  166. failureThreshold: 3
  167. initialDelaySeconds: 10
  168. periodSeconds: 10
  169. timeoutSeconds: 5
  170. # Whether this chart should self-manage its service account, role, and associated role binding.
  171. managedServiceAccount: true
  172. clusterRoleRules:
  173. - apiGroups:
  174. - ""
  175. resources:
  176. - namespaces
  177. - nodes
  178. - pods
  179. verbs:
  180. - get
  181. - list
  182. - watch
  183. - apiGroups:
  184. - "apps"
  185. resources:
  186. - replicasets
  187. verbs:
  188. - get
  189. - list
  190. - watch
  191. podAnnotations:
  192. {}
  193. # iam.amazonaws.com/role: es-cluster
  194. # Custom service account override that the pod will use
  195. serviceAccount: ""
  196. # Annotations to add to the ServiceAccount that is created if the serviceAccount value isn't set.
  197. serviceAccountAnnotations:
  198. {}
  199. # eks.amazonaws.com/role-arn: arn:aws:iam::111111111111:role/k8s.clustername.namespace.serviceaccount
  200. # How long to wait for Filebeat pods to stop gracefully
  201. terminationGracePeriod: 30
  202. # This is the PriorityClass settings as defined in
  203. # https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
  204. priorityClassName: ""
  205. updateStrategy: RollingUpdate
  206. # Override various naming aspects of this chart
  207. # Only edit these if you know what you're doing
  208. nameOverride: ""
  209. fullnameOverride: ""
  210. # DEPRECATED
  211. affinity: {}
  212. envFrom: []
  213. extraEnvs: []
  214. extraVolumes: []
  215. extraVolumeMounts: []
  216. # Allows you to add any config files in /usr/share/filebeat
  217. # such as filebeat.yml for both daemonset and deployment
  218. filebeatConfig: {}
  219. nodeSelector: {}
  220. podSecurityContext: {}
  221. resources: {}
  222. secretMounts: []
  223. tolerations: []
  224. labels: {}