Commit 8094d891 authored by Will JALLET's avatar Will JALLET 💸

Update elasticsearch, elastic-stack, logstash, and sonarqube

parent c690bae6
Pipeline #4517 passed with stage
in 8 seconds
...@@ -3,7 +3,7 @@ description: A Helm chart for ELK ...@@ -3,7 +3,7 @@ description: A Helm chart for ELK
home: https://www.elastic.co/products home: https://www.elastic.co/products
icon: https://www.elastic.co/assets/bltb35193323e8f1770/logo-elastic-stack-lt.svg icon: https://www.elastic.co/assets/bltb35193323e8f1770/logo-elastic-stack-lt.svg
name: elastic-stack name: elastic-stack
version: 0.9.0 version: 0.9.1
appVersion: 6.0 appVersion: 6.0
maintainers: maintainers:
- name: rendhalver - name: rendhalver
......
dependencies: dependencies:
- name: elasticsearch - name: elasticsearch
repository: https://kubernetes-charts-incubator.storage.googleapis.com/ repository: https://kubernetes-charts-incubator.storage.googleapis.com/
version: 1.2.0 version: 1.7.2
- name: kibana - name: kibana
repository: https://kubernetes-charts.storage.googleapis.com/ repository: https://kubernetes-charts.storage.googleapis.com/
version: 0.6.0 version: 0.13.1
- name: logstash - name: logstash
repository: https://kubernetes-charts-incubator.storage.googleapis.com/ repository: https://kubernetes-charts-incubator.storage.googleapis.com/
version: 0.6.3 version: 0.6.3
......
File mode changed from 100755 to 100644
appVersion: 6.3.1 name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.7.3
appVersion: 6.4.1
description: Flexible and powerful open source, distributed real-time search and analytics description: Flexible and powerful open source, distributed real-time search and analytics
engine. engine.
home: https://www.elastic.co/products/elasticsearch
icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg
maintainers:
- email: christian@jetstack.io
name: simonswine
- email: michael.haselton@gmail.com
name: icereval
- email: pete.brown@powerhrg.com
name: rendhalver
name: elasticsearch
sources: sources:
- https://www.elastic.co/products/elasticsearch - https://www.elastic.co/products/elasticsearch
- https://github.com/jetstack/elasticsearch-pet - https://github.com/jetstack/elasticsearch-pet
...@@ -18,4 +12,10 @@ sources: ...@@ -18,4 +12,10 @@ sources:
- https://github.com/GoogleCloudPlatform/elasticsearch-docker - https://github.com/GoogleCloudPlatform/elasticsearch-docker
- https://github.com/clockworksoul/helm-elasticsearch - https://github.com/clockworksoul/helm-elasticsearch
- https://github.com/pires/kubernetes-elasticsearch-cluster - https://github.com/pires/kubernetes-elasticsearch-cluster
version: 1.4.0 maintainers:
- name: simonswine
email: christian@jetstack.io
- name: icereval
email: michael.haselton@gmail.com
- name: rendhalver
email: pete.brown@powerhrg.com
approvers:
- simonswine
- icereval
- rendhalver
reviewers:
- simonswine
- icereval
- rendhalver
...@@ -62,15 +62,15 @@ The following table lists the configurable parameters of the elasticsearch chart ...@@ -62,15 +62,15 @@ The following table lists the configurable parameters of the elasticsearch chart
| Parameter | Description | Default | | Parameter | Description | Default |
| ------------------------------------ | ------------------------------------------------------------------- | ------------------------------------ | | ------------------------------------ | ------------------------------------------------------------------- | ------------------------------------ |
| `appVersion` | Application Version (Elasticsearch) | `6.3.1` | | `appVersion` | Application Version (Elasticsearch) | `6.4.1` |
| `image.repository` | Container image name | `docker.elastic.co/elasticsearch/elasticsearch-oss` | | `image.repository` | Container image name | `docker.elastic.co/elasticsearch/elasticsearch-oss` |
| `image.tag` | Container image tag | `6.3.1` | | `image.tag` | Container image tag | `6.4.1` |
| `image.pullPolicy` | Container pull policy | `Always` | | `image.pullPolicy` | Container pull policy | `Always` |
| `cluster.name` | Cluster name | `elasticsearch` | | `cluster.name` | Cluster name | `elasticsearch` |
| `cluster.kubernetesDomain` | Kubernetes cluster domain name | `cluster.local` |
| `cluster.xpackEnable` | Writes the X-Pack configuration options to the configuration file | `false` | | `cluster.xpackEnable` | Writes the X-Pack configuration options to the configuration file | `false` |
| `cluster.config` | Additional cluster config appended | `{}` | | `cluster.config` | Additional cluster config appended | `{}` |
| `cluster.env` | Cluster environment variables | `{}` | | `cluster.keystoreSecret` | Name of secret holding secure config options in an es keystore | `nil` |
| `cluster.env` | Cluster environment variables | `{MINIMUM_MASTER_NODES: "2"}` |
| `client.name` | Client component name | `client` | | `client.name` | Client component name | `client` |
| `client.replicas` | Client node replicas (deployment) | `2` | | `client.replicas` | Client node replicas (deployment) | `2` |
| `client.resources` | Client node resources requests & limits | `{} - cpu limit must be an integer` | | `client.resources` | Client node resources requests & limits | `{} - cpu limit must be an integer` |
...@@ -78,9 +78,11 @@ The following table lists the configurable parameters of the elasticsearch chart ...@@ -78,9 +78,11 @@ The following table lists the configurable parameters of the elasticsearch chart
| `client.heapSize` | Client node heap size | `512m` | | `client.heapSize` | Client node heap size | `512m` |
| `client.podAnnotations` | Client Deployment annotations | `{}` | | `client.podAnnotations` | Client Deployment annotations | `{}` |
| `client.nodeSelector` | Node labels for client pod assignment | `{}` | | `client.nodeSelector` | Node labels for client pod assignment | `{}` |
| `client.tolerations` | Client tolerations | `{}` | | `client.tolerations` | Client tolerations | `[]` |
| `client.serviceAnnotations` | Client Service annotations | `{}` | | `client.serviceAnnotations` | Client Service annotations | `{}` |
| `client.serviceType` | Client service type | `ClusterIP` | | `client.serviceType` | Client service type | `ClusterIP` |
| `client.loadBalancerIP` | Client loadBalancerIP | `{}` |
| `client.loadBalancerSourceRanges` | Client loadBalancerSourceRanges | `{}` |
| `master.exposeHttp` | Expose http port 9200 on master Pods for monitoring, etc | `false` | | `master.exposeHttp` | Expose http port 9200 on master Pods for monitoring, etc | `false` |
| `master.name` | Master component name | `master` | | `master.name` | Master component name | `master` |
| `master.replicas` | Master node replicas (deployment) | `2` | | `master.replicas` | Master node replicas (deployment) | `2` |
...@@ -88,7 +90,7 @@ The following table lists the configurable parameters of the elasticsearch chart ...@@ -88,7 +90,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `master.priorityClassName` | Master priorityClass | `nil` | | `master.priorityClassName` | Master priorityClass | `nil` |
| `master.podAnnotations` | Master Deployment annotations | `{}` | | `master.podAnnotations` | Master Deployment annotations | `{}` |
| `master.nodeSelector` | Node labels for master pod assignment | `{}` | | `master.nodeSelector` | Node labels for master pod assignment | `{}` |
| `master.tolerations` | Master tolerations | `{}` | | `master.tolerations` | Master tolerations | `[]` |
| `master.heapSize` | Master node heap size | `512m` | | `master.heapSize` | Master node heap size | `512m` |
| `master.name` | Master component name | `master` | | `master.name` | Master component name | `master` |
| `master.persistence.enabled` | Master persistent enabled/disabled | `true` | | `master.persistence.enabled` | Master persistent enabled/disabled | `true` |
...@@ -97,7 +99,7 @@ The following table lists the configurable parameters of the elasticsearch chart ...@@ -97,7 +99,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `master.persistence.storageClass` | Master persistent volume Class | `nil` | | `master.persistence.storageClass` | Master persistent volume Class | `nil` |
| `master.persistence.accessMode` | Master persistent Access Mode | `ReadWriteOnce` | | `master.persistence.accessMode` | Master persistent Access Mode | `ReadWriteOnce` |
| `data.exposeHttp` | Expose http port 9200 on data Pods for monitoring, etc | `false` | | `data.exposeHttp` | Expose http port 9200 on data Pods for monitoring, etc | `false` |
| `data.replicas` | Data node replicas (statefulset) | `3` | | `data.replicas` | Data node replicas (statefulset) | `2` |
| `data.resources` | Data node resources requests & limits | `{} - cpu limit must be an integer` | | `data.resources` | Data node resources requests & limits | `{} - cpu limit must be an integer` |
| `data.priorityClassName` | Data priorityClass | `nil` | | `data.priorityClassName` | Data priorityClass | `nil` |
| `data.heapSize` | Data node heap size | `1536m` | | `data.heapSize` | Data node heap size | `1536m` |
...@@ -108,7 +110,7 @@ The following table lists the configurable parameters of the elasticsearch chart ...@@ -108,7 +110,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `data.persistence.accessMode` | Data persistent Access Mode | `ReadWriteOnce` | | `data.persistence.accessMode` | Data persistent Access Mode | `ReadWriteOnce` |
| `data.podAnnotations` | Data StatefulSet annotations | `{}` | | `data.podAnnotations` | Data StatefulSet annotations | `{}` |
| `data.nodeSelector` | Node labels for data pod assignment | `{}` | | `data.nodeSelector` | Node labels for data pod assignment | `{}` |
| `data.tolerations` | Data tolerations | `{}` | | `data.tolerations` | Data tolerations | `[]` |
| `data.terminationGracePeriodSeconds` | Data termination grace period (seconds) | `3600` | | `data.terminationGracePeriodSeconds` | Data termination grace period (seconds) | `3600` |
| `data.antiAffinity` | Data anti-affinity policy | `soft` | | `data.antiAffinity` | Data anti-affinity policy | `soft` |
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
...@@ -78,7 +78,7 @@ spec: ...@@ -78,7 +78,7 @@ spec:
- name: NODE_MASTER - name: NODE_MASTER
value: "false" value: "false"
- name: DISCOVERY_SERVICE - name: DISCOVERY_SERVICE
value: {{ template "elasticsearch.fullname" . }}-discovery.{{ .Release.Namespace }}.svc.{{ .Values.cluster.kubernetesDomain }} value: {{ template "elasticsearch.fullname" . }}-discovery
- name: PROCESSORS - name: PROCESSORS
valueFrom: valueFrom:
resourceFieldRef: resourceFieldRef:
...@@ -121,8 +121,25 @@ spec: ...@@ -121,8 +121,25 @@ spec:
- mountPath: /usr/share/elasticsearch/config/log4j2.properties - mountPath: /usr/share/elasticsearch/config/log4j2.properties
name: config name: config
subPath: log4j2.properties subPath: log4j2.properties
{{- end }}
{{- if .Values.cluster.keystoreSecret }}
- name: keystore
mountPath: "/usr/share/elasticsearch/config/elasticsearch.keystore"
subPath: elasticsearch.keystore
readOnly: true
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range $pullSecret := .Values.image.pullSecrets }}
- name: {{ $pullSecret }}
{{- end }}
{{- end }} {{- end }}
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: {{ template "elasticsearch.fullname" . }} name: {{ template "elasticsearch.fullname" . }}
{{- if .Values.cluster.keystoreSecret }}
- name: keystore
secret:
secretName: {{ .Values.cluster.keystoreSecret }}
{{- end }}
File mode changed from 100755 to 100644
...@@ -23,3 +23,12 @@ spec: ...@@ -23,3 +23,12 @@ spec:
component: "{{ .Values.client.name }}" component: "{{ .Values.client.name }}"
release: {{ .Release.Name }} release: {{ .Release.Name }}
type: {{ .Values.client.serviceType }} type: {{ .Values.client.serviceType }}
{{- if .Values.client.loadBalancerIP }}
loadBalancerIP: "{{ .Values.client.loadBalancerIP }}"
{{- end }}
{{if .Values.client.loadBalancerSourceRanges}}
loadBalancerSourceRanges:
{{range $rangeList := .Values.client.loadBalancerSourceRanges}}
- {{ $rangeList }}
{{end}}
{{end}}
\ No newline at end of file
...@@ -73,8 +73,8 @@ data: ...@@ -73,8 +73,8 @@ data:
gateway.recover_after_time: ${RECOVER_AFTER_TIME:5m} gateway.recover_after_time: ${RECOVER_AFTER_TIME:5m}
gateway.recover_after_master_nodes: ${RECOVER_AFTER_MASTER_NODES:2} gateway.recover_after_master_nodes: ${RECOVER_AFTER_MASTER_NODES:2}
gateway.recover_after_data_nodes: ${RECOVER_AFTER_DATA_NODES:1} gateway.recover_after_data_nodes: ${RECOVER_AFTER_DATA_NODES:1}
{{- if .Values.cluster.config }} {{- with .Values.cluster.config }}
{{ toYaml .Values.cluster.config | indent 4 }} {{ toYaml . | indent 4 }}
{{- end }} {{- end }}
{{- if hasPrefix "2." .Values.image.tag }} {{- if hasPrefix "2." .Values.image.tag }}
logging.yml: |- logging.yml: |-
...@@ -117,10 +117,11 @@ data: ...@@ -117,10 +117,11 @@ data:
{{- end }} {{- end }}
pre-stop-hook.sh: |- pre-stop-hook.sh: |-
#!/bin/bash #!/bin/bash
exec &> >(tee -a "/var/log/elasticsearch-hooks.log")
NODE_NAME=${HOSTNAME} NODE_NAME=${HOSTNAME}
echo "Prepare to migrate data of the node ${NODE_NAME}" echo "Prepare to migrate data of the node ${NODE_NAME}"
echo "Move all data from node ${NODE_NAME}" echo "Move all data from node ${NODE_NAME}"
curl -s -XPUT -H 'Content-Type: application/json' 'localhost:9200/_cluster/settings' -d "{ curl -s -XPUT -H 'Content-Type: application/json' '{{ template "elasticsearch.client.fullname" . }}:9200/_cluster/settings' -d "{
\"transient\" :{ \"transient\" :{
\"cluster.routing.allocation.exclude._name\" : \"${NODE_NAME}\" \"cluster.routing.allocation.exclude._name\" : \"${NODE_NAME}\"
} }
...@@ -129,7 +130,7 @@ data: ...@@ -129,7 +130,7 @@ data:
while true ; do while true ; do
echo -e "Wait for node ${NODE_NAME} to become empty" echo -e "Wait for node ${NODE_NAME} to become empty"
SHARDS_ALLOCATION=$(curl -s -XGET 'http://localhost:9200/_cat/shards') SHARDS_ALLOCATION=$(curl -s -XGET 'http://{{ template "elasticsearch.client.fullname" . }}:9200/_cat/shards')
if ! echo "${SHARDS_ALLOCATION}" | grep -E "${NODE_NAME}"; then if ! echo "${SHARDS_ALLOCATION}" | grep -E "${NODE_NAME}"; then
break break
fi fi
...@@ -138,14 +139,15 @@ data: ...@@ -138,14 +139,15 @@ data:
echo "Node ${NODE_NAME} is ready to shutdown" echo "Node ${NODE_NAME} is ready to shutdown"
post-start-hook.sh: |- post-start-hook.sh: |-
#!/bin/bash #!/bin/bash
exec &> >(tee -a "/var/log/elasticsearch-hooks.log")
NODE_NAME=${HOSTNAME} NODE_NAME=${HOSTNAME}
CLUSTER_SETTINGS=$(curl -s -XGET "http://localhost:9200/_cluster/settings") CLUSTER_SETTINGS=$(curl -s -XGET "http://{{ template "elasticsearch.client.fullname" . }}:9200/_cluster/settings")
if echo "${CLUSTER_SETTINGS}" | grep -E "${NODE_NAME}"; then if echo "${CLUSTER_SETTINGS}" | grep -E "${NODE_NAME}"; then
echo "Activate node ${NODE_NAME}" echo "Activate node ${NODE_NAME}"
curl -s -XPUT -H 'Content-Type: application/json' "http://localhost:9200/_cluster/settings" -d "{ curl -s -XPUT -H 'Content-Type: application/json' "http://{{ template "elasticsearch.client.fullname" . }}:9200/_cluster/settings" -d "{
\"transient\" :{ \"transient\" :{
\"cluster.routing.allocation.exclude._name\" : null \"cluster.routing.allocation.exclude._name\" : null
} }
}" }"
fi fi
echo "Node ${NODE_NAME} is ready to be used" echo "Node ${NODE_NAME} is ready to be used"
\ No newline at end of file
File mode changed from 100755 to 100644
...@@ -84,7 +84,7 @@ spec: ...@@ -84,7 +84,7 @@ spec:
- name: elasticsearch - name: elasticsearch
env: env:
- name: DISCOVERY_SERVICE - name: DISCOVERY_SERVICE
value: {{ template "elasticsearch.fullname" . }}-discovery.{{ .Release.Namespace }}.svc.{{ .Values.cluster.kubernetesDomain }} value: {{ template "elasticsearch.fullname" . }}-discovery
- name: NODE_MASTER - name: NODE_MASTER
value: "false" value: "false"
- name: PROCESSORS - name: PROCESSORS
...@@ -135,6 +135,12 @@ spec: ...@@ -135,6 +135,12 @@ spec:
- name: config - name: config
mountPath: /post-start-hook.sh mountPath: /post-start-hook.sh
subPath: post-start-hook.sh subPath: post-start-hook.sh
{{- if .Values.cluster.keystoreSecret }}
- name: keystore
mountPath: "/usr/share/elasticsearch/config/elasticsearch.keystore"
subPath: elasticsearch.keystore
readOnly: true
{{- end }}
lifecycle: lifecycle:
preStop: preStop:
exec: exec:
...@@ -143,14 +149,28 @@ spec: ...@@ -143,14 +149,28 @@ spec:
exec: exec:
command: ["/bin/bash","/post-start-hook.sh"] command: ["/bin/bash","/post-start-hook.sh"]
terminationGracePeriodSeconds: {{ .Values.data.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.data.terminationGracePeriodSeconds }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range $pullSecret := .Values.image.pullSecrets }}
- name: {{ $pullSecret }}
{{- end }}
{{- end }}
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: {{ template "elasticsearch.fullname" . }} name: {{ template "elasticsearch.fullname" . }}
{{- if .Values.cluster.keystoreSecret }}
- name: keystore
secret:
secretName: {{ .Values.cluster.keystoreSecret }}
{{- end }}
{{- if not .Values.data.persistence.enabled }} {{- if not .Values.data.persistence.enabled }}
- name: data - name: data
emptyDir: {} emptyDir: {}
{{- else }} {{- end }}
updateStrategy:
type: {{ .Values.data.updateStrategy.type }}
{{- if .Values.data.persistence.enabled }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: {{ .Values.data.persistence.name }} name: {{ .Values.data.persistence.name }}
......
File mode changed from 100755 to 100644
...@@ -90,7 +90,7 @@ spec: ...@@ -90,7 +90,7 @@ spec:
value: "false" value: "false"
{{- end }} {{- end }}
- name: DISCOVERY_SERVICE - name: DISCOVERY_SERVICE
value: {{ template "elasticsearch.fullname" . }}-discovery.{{ .Release.Namespace }}.svc.{{ .Values.cluster.kubernetesDomain }} value: {{ template "elasticsearch.fullname" . }}-discovery
- name: PROCESSORS - name: PROCESSORS
valueFrom: valueFrom:
resourceFieldRef: resourceFieldRef:
...@@ -132,15 +132,35 @@ spec: ...@@ -132,15 +132,35 @@ spec:
- mountPath: /usr/share/elasticsearch/config/log4j2.properties - mountPath: /usr/share/elasticsearch/config/log4j2.properties
name: config name: config
subPath: log4j2.properties subPath: log4j2.properties
{{- end }}
{{- if .Values.cluster.keystoreSecret }}
- name: keystore
mountPath: "/usr/share/elasticsearch/config/elasticsearch.keystore"
subPath: elasticsearch.keystore
readOnly: true
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range $pullSecret := .Values.image.pullSecrets }}
- name: {{ $pullSecret }}
{{- end }}
{{- end }} {{- end }}
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: {{ template "elasticsearch.fullname" . }} name: {{ template "elasticsearch.fullname" . }}
{{- if .Values.cluster.keystoreSecret }}
- name: keystore
secret:
secretName: {{ .Values.cluster.keystoreSecret }}
{{- end }}
{{- if not .Values.master.persistence.enabled }} {{- if not .Values.master.persistence.enabled }}
- name: data - name: data
emptyDir: {} emptyDir: {}
{{- else }} {{- end }}
updateStrategy:
type: {{ .Values.master.updateStrategy.type }}
{{- if .Values.master.persistence.enabled }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: {{ .Values.master.persistence.name }} name: {{ .Values.master.persistence.name }}
......
File mode changed from 100755 to 100644
# Default values for elasticsearch. # Default values for elasticsearch.
# This is a YAML-formatted file. # This is a YAML-formatted file.
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
appVersion: "6.2.4" appVersion: "6.4.1"
image: image:
repository: "docker.elastic.co/elasticsearch/elasticsearch-oss" repository: "docker.elastic.co/elasticsearch/elasticsearch-oss"
tag: "6.3.1" tag: "6.4.1"
pullPolicy: "IfNotPresent" pullPolicy: "IfNotPresent"
# If specified, use these secrets to access the image
# pullSecrets:
# - registry-secret
cluster: cluster:
name: "elasticsearch" name: "elasticsearch"
kubernetesDomain: cluster.local
# If you want X-Pack installed, switch to an image that includes it, enable this option and toggle the features you want # If you want X-Pack installed, switch to an image that includes it, enable this option and toggle the features you want
# enabled in the environment variables outlined in the README # enabled in the environment variables outlined in the README
xpackEnable: false xpackEnable: false
config: # Some settings must be placed in a keystore, so they need to be mounted in from a secret.
# Use this setting to specify the name of the secret
# keystoreSecret: eskeystore
config: {}
env: env:
# IMPORTANT: https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#minimum_master_nodes # IMPORTANT: https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#minimum_master_nodes
# To prevent data loss, it is vital to configure the discovery.zen.minimum_master_nodes setting so that each master-eligible # To prevent data loss, it is vital to configure the discovery.zen.minimum_master_nodes setting so that each master-eligible
...@@ -25,13 +30,15 @@ client: ...@@ -25,13 +30,15 @@ client:
name: client name: client
replicas: 2 replicas: 2
serviceType: ClusterIP serviceType: ClusterIP
loadBalancerIP: {}
loadBalancerSourceRanges: {}
## (dict) If specified, apply these annotations to the client service ## (dict) If specified, apply these annotations to the client service
# serviceAnnotations: # serviceAnnotations:
# example: client-svc-foo # example: client-svc-foo
heapSize: "512m" heapSize: "512m"
antiAffinity: "soft" antiAffinity: "soft"
nodeSelector: {} nodeSelector: {}
tolerations: {} tolerations: []
resources: resources:
limits: limits:
cpu: "1" cpu: "1"
...@@ -61,7 +68,7 @@ master: ...@@ -61,7 +68,7 @@ master:
# storageClass: "ssd" # storageClass: "ssd"
antiAffinity: "soft" antiAffinity: "soft"
nodeSelector: {} nodeSelector: {}
tolerations: {} tolerations: []
resources: resources:
limits: limits:
cpu: "1" cpu: "1"
...@@ -77,6 +84,8 @@ master: ...@@ -77,6 +84,8 @@ master:
enabled: false enabled: false
minAvailable: 2 # Same as `cluster.env.MINIMUM_MASTER_NODES` minAvailable: 2 # Same as `cluster.env.MINIMUM_MASTER_NODES`
# maxUnavailable: 1 # maxUnavailable: 1
updateStrategy:
type: OnDelete
data: data:
name: data name: data
...@@ -92,7 +101,7 @@ data: ...@@ -92,7 +101,7 @@ data:
terminationGracePeriodSeconds: 3600 terminationGracePeriodSeconds: 3600
antiAffinity: "soft" antiAffinity: "soft"
nodeSelector: {} nodeSelector: {}
tolerations: {} tolerations: []
resources: resources:
limits: limits:
cpu: "1" cpu: "1"
...@@ -108,3 +117,5 @@ data: ...@@ -108,3 +117,5 @@ data:
enabled: false enabled: false
# minAvailable: 1 # minAvailable: 1
maxUnavailable: 1 maxUnavailable: 1
updateStrategy:
type: OnDelete
File mode changed from 100755 to 100644
apiVersion: v1 apiVersion: v1
appVersion: 6.3.1
description: Logstash is an open source, server-side data processing pipeline description: Logstash is an open source, server-side data processing pipeline
home: https://www.elastic.co/products/logstash
icon: https://www.elastic.co/assets/blt86e4472872eed314/logo-elastic-logstash-lt.svg icon: https://www.elastic.co/assets/blt86e4472872eed314/logo-elastic-logstash-lt.svg
maintainers: home: https://www.elastic.co/products/logstash
- email: pete.brown@powerhrg.com
name: rendhalver
- email: jrodgers@powerhrg.com
name: jar361
- email: christian.roggia@gmail.com
name: christian-roggia
name: logstash name: logstash
version: 0.9.1
appVersion: 6.4.0
sources: sources:
- https://www.docker.elastic.co - https://www.docker.elastic.co
- https://www.elastic.co/guide/en/logstash/current/index.html - https://www.elastic.co/guide/en/logstash/current/index.html
version: 0.7.0 maintainers:
- name: rendhalver
email: pete.brown@powerhrg.com
- name: jar361
email: jrodgers@powerhrg.com
- name: christian-roggia
email: christian.roggia@gmail.com
approvers:
- christian-roggia
- rendhalver
reviewers:
- christian-roggia
- rendhalver
This diff is collapsed.
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
...@@ -38,6 +38,10 @@ spec: ...@@ -38,6 +38,10 @@ spec:
securityContext: securityContext:
runAsUser: 1000 runAsUser: 1000
fsGroup: 1000 fsGroup: 1000
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.pullSecrets | indent 8 }}
{{- end }}
containers: containers:
## logstash ## logstash
...@@ -106,6 +110,10 @@ spec: ...@@ -106,6 +110,10 @@ spec:
{{ toYaml .Values.exporter.logstash.resources | indent 12 }} {{ toYaml .Values.exporter.logstash.resources | indent 12 }}
{{- end }} {{- end }}
{{- with .Values.volumes }}
volumes:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
...@@ -118,6 +126,7 @@ spec: ...@@ -118,6 +126,7 @@ spec:
tolerations: tolerations:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
{{- end }} {{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes: volumes:
- name: patterns - name: patterns
configMap: configMap:
...@@ -125,7 +134,10 @@ spec: ...@@ -125,7 +134,10 @@ spec:
- name: pipeline - name: pipeline
configMap: configMap:
name: {{ template "logstash.fullname" . }}-pipeline name: {{ template "logstash.fullname" . }}-pipeline
{{- if not .Values.persistence.enabled }}
- name: data
emptyDir: {}
{{- else }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: data name: data
...@@ -142,3 +154,4 @@ spec: ...@@ -142,3 +154,4 @@ spec:
storageClassName: "{{ .Values.persistence.storageClass }}" storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
...@@ -6,10 +6,15 @@ podDisruptionBudget: ...@@ -6,10 +6,15 @@ podDisruptionBudget:
updateStrategy: updateStrategy:
type: RollingUpdate type: RollingUpdate
terminationGracePeriodSeconds: 30
image: image:
repository: docker.elastic.co/logstash/logstash-oss repository: docker.elastic.co/logstash/logstash-oss
tag: 6.3.1