Skip to content

Commit

Permalink
[stable/elasticsearch] make readiness probes configurable (helm#11114)
Browse files Browse the repository at this point in the history
Signed-off-by: David J. M. Karlsen <[email protected]>
  • Loading branch information
davidkarlsen authored and k8s-ci-robot committed Feb 4, 2019
1 parent 153b7c3 commit a591333
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stable/elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.18.0
version: 1.18.1
appVersion: 6.6.0
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
Expand Down
2 changes: 2 additions & 0 deletions stable/elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `master.persistence.size` | Master persistent volume size | `4Gi` |
| `master.persistence.storageClass` | Master persistent volume Class | `nil` |
| `master.persistence.accessMode` | Master persistent Access Mode | `ReadWriteOnce` |
| `master.readinessProbe` | Master container readiness probes | see `values.yaml` for defaults |
| `master.antiAffinity` | Master anti-affinity policy | `soft` |
| `master.nodeAffinity` | Master node affinity policy | `{}` |
| `master.updateStrategy` | Master node update strategy policy | `{type: "onDelete"}` |
Expand All @@ -128,6 +129,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `data.persistence.size` | Data persistent volume size | `30Gi` |
| `data.persistence.storageClass` | Data persistent volume Class | `nil` |
| `data.persistence.accessMode` | Data persistent Access Mode | `ReadWriteOnce` |
| `data.readinessProbe` | Readiness probes for data-containers | see `values.yaml` for defaults |
| `data.podAnnotations` | Data StatefulSet annotations | `{}` |
| `data.nodeSelector` | Node labels for data pod assignment | `{}` |
| `data.tolerations` | Data tolerations | `[]` |
Expand Down
5 changes: 1 addition & 4 deletions stable/elasticsearch/templates/data-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ spec:
resources:
{{ toYaml .Values.data.resources | indent 12 }}
readinessProbe:
httpGet:
path: /_cluster/health?local=true
port: 9200
initialDelaySeconds: 5
{{ toYaml .Values.data.readinessProbe | indent 10 }}
volumeMounts:
- mountPath: /usr/share/elasticsearch/data
name: data
Expand Down
5 changes: 1 addition & 4 deletions stable/elasticsearch/templates/master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ spec:
resources:
{{ toYaml .Values.master.resources | indent 12 }}
readinessProbe:
httpGet:
path: /_cluster/health?local=true
port: 9200
initialDelaySeconds: 5
{{ toYaml .Values.master.readinessProbe | indent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
ports:
Expand Down
10 changes: 10 additions & 0 deletions stable/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ master:
name: data
size: "4Gi"
# storageClass: "ssd"
readinessProbe:
httpGet:
path: /_cluster/health?local=true
port: 9200
initialDelaySeconds: 5
antiAffinity: "soft"
nodeAffinity: {}
nodeSelector: {}
Expand Down Expand Up @@ -166,6 +171,11 @@ data:
name: data
size: "30Gi"
# storageClass: "ssd"
readinessProbe:
httpGet:
path: /_cluster/health?local=true
port: 9200
initialDelaySeconds: 5
terminationGracePeriodSeconds: 3600
antiAffinity: "soft"
nodeAffinity: {}
Expand Down

0 comments on commit a591333

Please sign in to comment.