values.yaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. ---
  2. replicas: 1
  3. # Allows you to add any config files in /usr/share/logstash/config/
  4. # such as logstash.yml and log4j2.properties
  5. #
  6. # Note that when overriding logstash.yml, `http.host: 0.0.0.0` should always be included
  7. # to make default probes work.
  8. logstashConfig: {}
  9. # logstash.yml: |
  10. # key:
  11. # nestedkey: value
  12. # log4j2.properties: |
  13. # key = value
  14. # Allows you to add any pipeline files in /usr/share/logstash/pipeline/
  15. ### ***warn*** there is a hardcoded logstash.conf in the image, override it first
  16. logstashPipeline: {}
  17. # logstash.conf: |
  18. # input {
  19. # exec {
  20. # command => "uptime"
  21. # interval => 30
  22. # }
  23. # }
  24. # output { stdout { } }
  25. # Extra environment variables to append to this nodeGroup
  26. # This will be appended to the current 'env:' key. You can use any of the kubernetes env
  27. # syntax here
  28. extraEnvs: []
  29. # - name: MY_ENVIRONMENT_VAR
  30. # value: the_value_goes_here
  31. # Allows you to load environment variables from kubernetes secret or config map
  32. envFrom: []
  33. # - secretRef:
  34. # name: env-secret
  35. # - configMapRef:
  36. # name: config-map
  37. # Add sensitive data to k8s secrets
  38. secrets: []
  39. # - name: "env"
  40. # value:
  41. # ELASTICSEARCH_PASSWORD: "LS1CRUdJTiBgUFJJVkFURSB"
  42. # api_key: ui2CsdUadTiBasRJRkl9tvNnw
  43. # - name: "tls"
  44. # value:
  45. # ca.crt: |
  46. # LS0tLS1CRUdJT0K
  47. # LS0tLS1CRUdJT0K
  48. # LS0tLS1CRUdJT0K
  49. # LS0tLS1CRUdJT0K
  50. # cert.crt: "LS0tLS1CRUdJTiBlRJRklDQVRFLS0tLS0K"
  51. # cert.key.filepath: "secrets.crt" # The path to file should be relative to the `values.yaml` file.
  52. # A list of secrets and their paths to mount inside the pod
  53. secretMounts: []
  54. image: "docker.elastic.co/logstash/logstash"
  55. imageTag: "7.8.1"
  56. imagePullPolicy: "IfNotPresent"
  57. imagePullSecrets: []
  58. podAnnotations: {}
  59. # additionals labels
  60. labels: {}
  61. logstashJavaOpts: "-Xmx1g -Xms1g"
  62. resources:
  63. requests:
  64. cpu: "100m"
  65. memory: "1536Mi"
  66. limits:
  67. cpu: "1000m"
  68. memory: "1536Mi"
  69. volumeClaimTemplate:
  70. accessModes: [ "ReadWriteOnce" ]
  71. resources:
  72. requests:
  73. storage: 1Gi
  74. rbac:
  75. create: false
  76. serviceAccountAnnotations: {}
  77. serviceAccountName: ""
  78. podSecurityPolicy:
  79. create: false
  80. name: ""
  81. spec:
  82. privileged: true
  83. fsGroup:
  84. rule: RunAsAny
  85. runAsUser:
  86. rule: RunAsAny
  87. seLinux:
  88. rule: RunAsAny
  89. supplementalGroups:
  90. rule: RunAsAny
  91. volumes:
  92. - secret
  93. - configMap
  94. - persistentVolumeClaim
  95. persistence:
  96. enabled: false
  97. annotations: {}
  98. extraVolumes: ""
  99. # - name: extras
  100. # emptyDir: {}
  101. extraVolumeMounts: ""
  102. # - name: extras
  103. # mountPath: /usr/share/extras
  104. # readOnly: true
  105. extraContainers: ""
  106. # - name: do-something
  107. # image: busybox
  108. # command: ['do', 'something']
  109. extraInitContainers: ""
  110. # - name: do-something
  111. # image: busybox
  112. # command: ['do', 'something']
  113. # This is the PriorityClass settings as defined in
  114. # https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
  115. priorityClassName: ""
  116. # By default this will make sure two pods don't end up on the same node
  117. # Changing this to a region would allow you to spread pods across regions
  118. antiAffinityTopologyKey: "kubernetes.io/hostname"
  119. # Hard means that by default pods will only be scheduled if there are enough nodes for them
  120. # and that they will never end up on the same node. Setting this to soft will do this "best effort"
  121. antiAffinity: "hard"
  122. # This is the node affinity settings as defined in
  123. # https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
  124. nodeAffinity: {}
  125. # The default is to deploy all pods serially. By setting this to parallel all pods are started at
  126. # the same time when bootstrapping the cluster
  127. podManagementPolicy: "Parallel"
  128. httpPort: 9600
  129. # Custom ports to add to logstash
  130. extraPorts: []
  131. # - name: beats
  132. # containerPort: 5001
  133. updateStrategy: RollingUpdate
  134. # This is the max unavailable setting for the pod disruption budget
  135. # The default value of 1 will make sure that kubernetes won't allow more than 1
  136. # of your pods to be unavailable during maintenance
  137. maxUnavailable: 1
  138. podSecurityContext:
  139. fsGroup: 1000
  140. runAsUser: 1000
  141. securityContext:
  142. capabilities:
  143. drop:
  144. - ALL
  145. # readOnlyRootFilesystem: true
  146. runAsNonRoot: true
  147. runAsUser: 1000
  148. # How long to wait for logstash to stop gracefully
  149. terminationGracePeriod: 120
  150. # Probes
  151. # Default probes are using `httpGet` which requires that `http.host: 0.0.0.0` is part of
  152. # `logstash.yml`. If needed probes can be disabled or overrided using the following syntaxes:
  153. #
  154. # disable livenessProbe
  155. # livenessProbe: null
  156. #
  157. # replace httpGet default readinessProbe by some exec probe
  158. # readinessProbe:
  159. # httpGet: null
  160. # exec:
  161. # command:
  162. # - curl
  163. # - localhost:9600
  164. livenessProbe:
  165. httpGet:
  166. path: /
  167. port: http
  168. initialDelaySeconds: 300
  169. periodSeconds: 10
  170. timeoutSeconds: 5
  171. failureThreshold: 3
  172. successThreshold: 1
  173. readinessProbe:
  174. httpGet:
  175. path: /
  176. port: http
  177. initialDelaySeconds: 60
  178. periodSeconds: 10
  179. timeoutSeconds: 5
  180. failureThreshold: 3
  181. successThreshold: 3
  182. ## Use an alternate scheduler.
  183. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  184. ##
  185. schedulerName: ""
  186. nodeSelector: {}
  187. tolerations: []
  188. nameOverride: ""
  189. fullnameOverride: ""
  190. lifecycle: {}
  191. # preStop:
  192. # exec:
  193. # command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
  194. # postStart:
  195. # exec:
  196. # command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
  197. service: {}
  198. # annotations: {}
  199. # type: ClusterIP
  200. # ports:
  201. # - name: beats
  202. # port: 5044
  203. # protocol: TCP
  204. # targetPort: 5044
  205. # - name: http
  206. # port: 8080
  207. # protocol: TCP
  208. # targetPort: 8080