Skip to content

Commit

Permalink
[stable/elasticsearch] Add podManagementStrategy (helm#12534)
Browse files Browse the repository at this point in the history
Default is OrderedReady as is default for all statefulsets

Signed-off-by: Matthew Mosesohn <[email protected]>
  • Loading branch information
mattymo authored and k8s-ci-robot committed Apr 3, 2019
1 parent cc18bf7 commit 1c45a19
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
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.22.0
version: 1.23.0
appVersion: 6.7.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 @@ -118,6 +118,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `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.podManagementPolicy` | Master pod creation strategy | `OrderedReady` |
| `master.updateStrategy` | Master node update strategy policy | `{type: "onDelete"}` |
| `data.initResources` | Data initContainer resources requests & limits | `{}` |
| `data.additionalJavaOpts` | Parameters to be added to `ES_JAVA_OPTS` environment variable for data | `""` |
Expand All @@ -139,6 +140,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `data.terminationGracePeriodSeconds` | Data termination grace period (seconds) | `3600` |
| `data.antiAffinity` | Data anti-affinity policy | `soft` |
| `data.nodeAffinity` | Data node affinity policy | `{}` |
| `data.podManagementPolicy` | Data pod creation strategy | `OrderedReady` |
| `data.updateStrategy` | Data node update strategy policy | `{type: "onDelete"}` |
| `sysctlInitContainer.enabled` | If true, the sysctl init container is enabled (does not stop extraInitContainers from running) | `true` |
| `extraInitContainers` | Additional init container passed through the tpl | `` |
Expand Down
1 change: 1 addition & 0 deletions stable/elasticsearch/templates/data-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ spec:
- name: data
emptyDir: {}
{{- end }}
podManagementPolicy: {{ .Values.data.podManagementPolicy }}
updateStrategy:
type: {{ .Values.data.updateStrategy.type }}
{{- if .Values.data.persistence.enabled }}
Expand Down
1 change: 1 addition & 0 deletions stable/elasticsearch/templates/master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ spec:
- name: data
emptyDir: {}
{{- end }}
podManagementPolicy: {{ .Values.master.podManagementPolicy }}
updateStrategy:
type: {{ .Values.master.updateStrategy.type }}
{{- if .Values.master.persistence.enabled }}
Expand Down
2 changes: 2 additions & 0 deletions stable/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ master:
## (dict) If specified, apply these annotations to each master Pod
# podAnnotations:
# example: master-foo
podManagementPolicy: OrderedReady
podDisruptionBudget:
enabled: false
minAvailable: 2 # Same as `cluster.env.MINIMUM_MASTER_NODES`
Expand Down Expand Up @@ -209,6 +210,7 @@ data:
enabled: false
# minAvailable: 1
maxUnavailable: 1
podManagementPolicy: OrderedReady
updateStrategy:
type: OnDelete
hooks: # post-start and pre-stop hooks
Expand Down

0 comments on commit 1c45a19

Please sign in to comment.