2
0

values.yaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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. # Allows you to add any pattern files in your custom pattern dir
  26. logstashPatternDir: "/usr/share/logstash/patterns/"
  27. logstashPattern: {}
  28. # pattern.conf: |
  29. # DPKG_VERSION [-+~<>\.0-9a-zA-Z]+
  30. # Extra environment variables to append to this nodeGroup
  31. # This will be appended to the current 'env:' key. You can use any of the kubernetes env
  32. # syntax here
  33. extraEnvs: []
  34. # - name: MY_ENVIRONMENT_VAR
  35. # value: the_value_goes_here
  36. # Allows you to load environment variables from kubernetes secret or config map
  37. envFrom: []
  38. # - secretRef:
  39. # name: env-secret
  40. # - configMapRef:
  41. # name: config-map
  42. # Add sensitive data to k8s secrets
  43. secrets: []
  44. # - name: "env"
  45. # value:
  46. # ELASTICSEARCH_PASSWORD: "LS1CRUdJTiBgUFJJVkFURSB"
  47. # api_key: ui2CsdUadTiBasRJRkl9tvNnw
  48. # - name: "tls"
  49. # value:
  50. # ca.crt: |
  51. # LS0tLS1CRUdJT0K
  52. # LS0tLS1CRUdJT0K
  53. # LS0tLS1CRUdJT0K
  54. # LS0tLS1CRUdJT0K
  55. # cert.crt: "LS0tLS1CRUdJTiBlRJRklDQVRFLS0tLS0K"
  56. # cert.key.filepath: "secrets.crt" # The path to file should be relative to the `values.yaml` file.
  57. # A list of secrets and their paths to mount inside the pod
  58. secretMounts: []
  59. hostAliases: []
  60. #- ip: "127.0.0.1"
  61. # hostnames:
  62. # - "foo.local"
  63. # - "bar.local"
  64. image: "docker.elastic.co/logstash/logstash"
  65. imageTag: "7.17.3"
  66. imagePullPolicy: "IfNotPresent"
  67. imagePullSecrets: []
  68. podAnnotations: {}
  69. # additionals labels
  70. labels: {}
  71. logstashJavaOpts: "-Xmx1g -Xms1g"
  72. resources:
  73. requests:
  74. cpu: "100m"
  75. memory: "1536Mi"
  76. limits:
  77. cpu: "1000m"
  78. memory: "1536Mi"
  79. volumeClaimTemplate:
  80. accessModes: ["ReadWriteOnce"]
  81. resources:
  82. requests:
  83. storage: 1Gi
  84. rbac:
  85. create: false
  86. serviceAccountAnnotations: {}
  87. serviceAccountName: ""
  88. annotations:
  89. {}
  90. #annotation1: "value1"
  91. #annotation2: "value2"
  92. #annotation3: "value3"
  93. podSecurityPolicy:
  94. create: false
  95. name: ""
  96. spec:
  97. privileged: false
  98. fsGroup:
  99. rule: RunAsAny
  100. runAsUser:
  101. rule: RunAsAny
  102. seLinux:
  103. rule: RunAsAny
  104. supplementalGroups:
  105. rule: RunAsAny
  106. volumes:
  107. - secret
  108. - configMap
  109. - persistentVolumeClaim
  110. persistence:
  111. enabled: false
  112. annotations: {}
  113. extraVolumes:
  114. []
  115. # - name: extras
  116. # emptyDir: {}
  117. extraVolumeMounts:
  118. []
  119. # - name: extras
  120. # mountPath: /usr/share/extras
  121. # readOnly: true
  122. extraContainers:
  123. []
  124. # - name: do-something
  125. # image: busybox
  126. # command: ['do', 'something']
  127. extraInitContainers:
  128. []
  129. # - name: do-something
  130. # image: busybox
  131. # command: ['do', 'something']
  132. # This is the PriorityClass settings as defined in
  133. # https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
  134. priorityClassName: ""
  135. # By default this will make sure two pods don't end up on the same node
  136. # Changing this to a region would allow you to spread pods across regions
  137. antiAffinityTopologyKey: "kubernetes.io/hostname"
  138. # Hard means that by default pods will only be scheduled if there are enough nodes for them
  139. # and that they will never end up on the same node. Setting this to soft will do this "best effort"
  140. antiAffinity: "hard"
  141. # This is the node affinity settings as defined in
  142. # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  143. nodeAffinity: {}
  144. # This is inter-pod affinity settings as defined in
  145. # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  146. podAffinity: {}
  147. # The default is to deploy all pods serially. By setting this to parallel all pods are started at
  148. # the same time when bootstrapping the cluster
  149. podManagementPolicy: "Parallel"
  150. httpPort: 9600
  151. # Custom ports to add to logstash
  152. extraPorts:
  153. []
  154. # - name: beats
  155. # containerPort: 5001
  156. updateStrategy: RollingUpdate
  157. # This is the max unavailable setting for the pod disruption budget
  158. # The default value of 1 will make sure that kubernetes won't allow more than 1
  159. # of your pods to be unavailable during maintenance
  160. maxUnavailable: 1
  161. podSecurityContext:
  162. fsGroup: 1000
  163. runAsUser: 1000
  164. securityContext:
  165. capabilities:
  166. drop:
  167. - ALL
  168. # readOnlyRootFilesystem: true
  169. runAsNonRoot: true
  170. runAsUser: 1000
  171. # How long to wait for logstash to stop gracefully
  172. terminationGracePeriod: 120
  173. # Probes
  174. # Default probes are using `httpGet` which requires that `http.host: 0.0.0.0` is part of
  175. # `logstash.yml`. If needed probes can be disabled or overridden using the following syntaxes:
  176. #
  177. # disable livenessProbe
  178. # livenessProbe: null
  179. #
  180. # replace httpGet default readinessProbe by some exec probe
  181. # readinessProbe:
  182. # httpGet: null
  183. # exec:
  184. # command:
  185. # - curl
  186. # - localhost:9600
  187. livenessProbe:
  188. httpGet:
  189. path: /
  190. port: http
  191. initialDelaySeconds: 300
  192. periodSeconds: 10
  193. timeoutSeconds: 5
  194. failureThreshold: 3
  195. successThreshold: 1
  196. readinessProbe:
  197. httpGet:
  198. path: /
  199. port: http
  200. initialDelaySeconds: 60
  201. periodSeconds: 10
  202. timeoutSeconds: 5
  203. failureThreshold: 3
  204. successThreshold: 3
  205. ## Use an alternate scheduler.
  206. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  207. ##
  208. schedulerName: ""
  209. nodeSelector: {}
  210. tolerations: []
  211. nameOverride: ""
  212. fullnameOverride: ""
  213. lifecycle:
  214. {}
  215. # preStop:
  216. # exec:
  217. # command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
  218. # postStart:
  219. # exec:
  220. # command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
  221. service:
  222. {}
  223. # annotations: {}
  224. # type: ClusterIP
  225. # loadBalancerIP: ""
  226. # ports:
  227. # - name: beats
  228. # port: 5044
  229. # protocol: TCP
  230. # targetPort: 5044
  231. # - name: http
  232. # port: 8080
  233. # protocol: TCP
  234. # targetPort: 8080
  235. ingress:
  236. enabled: false
  237. annotations:
  238. {}
  239. # kubernetes.io/tls-acme: "true"
  240. className: "nginx"
  241. pathtype: ImplementationSpecific
  242. hosts:
  243. - host: logstash-example.local
  244. paths:
  245. - path: /beats
  246. servicePort: 5044
  247. - path: /http
  248. servicePort: 8080
  249. tls: []
  250. # - secretName: logstash-example-tls
  251. # hosts:
  252. # - logstash-example.local