values.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. ---
  2. # Allows you to add any config files in /usr/share/filebeat
  3. # such as filebeat.yml
  4. filebeatConfig:
  5. filebeat.yml: |
  6. filebeat.inputs:
  7. - type: container
  8. paths:
  9. - /var/log/containers/*.log
  10. processors:
  11. - add_kubernetes_metadata:
  12. host: ${NODE_NAME}
  13. matchers:
  14. - logs_path:
  15. logs_path: "/var/log/containers/"
  16. output.elasticsearch:
  17. host: '${NODE_NAME}'
  18. hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}'
  19. # Extra environment variables to append to the DaemonSet pod spec.
  20. # This will be appended to the current 'env:' key. You can use any of the kubernetes env
  21. # syntax here
  22. extraEnvs: []
  23. # - name: MY_ENVIRONMENT_VAR
  24. # value: the_value_goes_here
  25. extraVolumeMounts: []
  26. # - name: extras
  27. # mountPath: /usr/share/extras
  28. # readOnly: true
  29. extraVolumes: []
  30. # - name: extras
  31. # emptyDir: {}
  32. extraContainers: ""
  33. # - name: dummy-init
  34. # image: busybox
  35. # command: ['echo', 'hey']
  36. extraInitContainers: []
  37. # - name: dummy-init
  38. # image: busybox
  39. # command: ['echo', 'hey']
  40. envFrom: []
  41. # - configMapRef:
  42. # name: configmap-name
  43. # Root directory where Filebeat will write data to in order to persist registry data across pod restarts (file position and other metadata).
  44. hostPathRoot: /var/lib
  45. hostNetworking: false
  46. image: "docker.elastic.co/beats/filebeat"
  47. imageTag: "7.8.1"
  48. imagePullPolicy: "IfNotPresent"
  49. imagePullSecrets: []
  50. livenessProbe:
  51. exec:
  52. command:
  53. - sh
  54. - -c
  55. - |
  56. #!/usr/bin/env bash -e
  57. curl --fail 127.0.0.1:5066
  58. failureThreshold: 3
  59. initialDelaySeconds: 10
  60. periodSeconds: 10
  61. timeoutSeconds: 5
  62. readinessProbe:
  63. exec:
  64. command:
  65. - sh
  66. - -c
  67. - |
  68. #!/usr/bin/env bash -e
  69. filebeat test output
  70. failureThreshold: 3
  71. initialDelaySeconds: 10
  72. periodSeconds: 10
  73. timeoutSeconds: 5
  74. # Whether this chart should self-manage its service account, role, and associated role binding.
  75. managedServiceAccount: true
  76. # additionals labels
  77. labels: {}
  78. podAnnotations: {}
  79. # iam.amazonaws.com/role: es-cluster
  80. # Various pod security context settings. Bear in mind that many of these have an impact on Filebeat functioning properly.
  81. #
  82. # - User that the container will execute as. Typically necessary to run as root (0) in order to properly collect host container logs.
  83. # - Whether to execute the Filebeat containers as privileged containers. Typically not necessarily unless running within environments such as OpenShift.
  84. podSecurityContext:
  85. runAsUser: 0
  86. privileged: false
  87. resources:
  88. requests:
  89. cpu: "100m"
  90. memory: "100Mi"
  91. limits:
  92. cpu: "1000m"
  93. memory: "200Mi"
  94. # Custom service account override that the pod will use
  95. serviceAccount: ""
  96. # Annotations to add to the ServiceAccount that is created if the serviceAccount value isn't set.
  97. serviceAccountAnnotations: {}
  98. # eks.amazonaws.com/role-arn: arn:aws:iam::111111111111:role/k8s.clustername.namespace.serviceaccount
  99. # A list of secrets and their paths to mount inside the pod
  100. # This is useful for mounting certificates for security other sensitive values
  101. secretMounts: []
  102. # - name: filebeat-certificates
  103. # secretName: filebeat-certificates
  104. # path: /usr/share/filebeat/certs
  105. # How long to wait for Filebeat pods to stop gracefully
  106. terminationGracePeriod: 30
  107. tolerations: []
  108. nodeSelector: {}
  109. affinity: {}
  110. # This is the PriorityClass settings as defined in
  111. # https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
  112. priorityClassName: ""
  113. updateStrategy: RollingUpdate
  114. # Override various naming aspects of this chart
  115. # Only edit these if you know what you're doing
  116. nameOverride: ""
  117. fullnameOverride: ""