Skip to content

Commit b317111

Browse files
authored
Merge pull request #1646 from efazenda/add_update_strategy_deployment
Add update strategy deployment
2 parents 6ceeb2c + 7d87ae5 commit b317111

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
- [MicrosoftPowerAutomate] Add support for 'ms_power_automate_webhook_url_from_field' option to dynamically select the webhook URL from the match. - [#1623](https://github.com/jertel/elastalert2/pull/1623) - @aizerin
88
- Add Webex Incoming Webhook alerter - [#1635](https://github.com/jertel/elastalert2/pull/1635) - @dennis-trapp
99
- Support jinja2 templates in `alertmanager_labels` and `alertmanager_annotations` - [#1642](https://github.com/jertel/elastalert2/pull/1642) - @tgxworld
10+
- [Helm] Add support of update strategy in the deployment [#1646](https://github.com/jertel/elastalert2/pull/1646) - @efazenda
1011
- Add Flashduty alerter - [#1649](https://github.com/jertel/elastalert2/pull/1649) - @pijiang3
1112

13+
1214
## Other changes
1315
- Fix `schema.yaml` to support Kibana 8.17 - [#1631](https://github.com/jertel/elastalert2/pull/1631) - @vpiserchia
1416
- [Helm] Clarified documentation around rootRulesFolder - @jertel

chart/elastalert2/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ The command removes all the Kubernetes components associated with the chart and
5959
| `command` | command override for container | `NULL` |
6060
| `args` | args override for container | `NULL` |
6161
| `replicaCount` | number of replicas to run | 1 |
62+
| `updateStrategy.type` | update strategy to use | RollingUpdate |
6263
| `minReadySeconds` | # number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available | 5 |
6364
| `rulesFolder` | Locaton of rules directory. Useful when you have one Docker image and different set of rules per environemnt. | /opt/elastalert/rules |
6465
| `elasticsearch.host` | elasticsearch endpoint to use | elasticsearch |

chart/elastalert2/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
matchLabels:
1919
{{- include "common.labels.matchLabels" . | nindent 6 }}
2020
replicas: {{ .Values.replicaCount }}
21+
{{- if .Values.updateStrategy }}
22+
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
23+
{{- end }}
2124
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
2225
minReadySeconds: {{ .Values.minReadySeconds }}
2326
template:

chart/elastalert2/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ appKubernetesIoComponent: elastalert2
1616
# number of replicas to run
1717
replicaCount: 1
1818

19+
# update strategy to use (default : RollingUpdate) but can be Recreate
20+
updateStrategy:
21+
type: RollingUpdate
22+
rollingUpdate: {}
23+
1924
# number of helm release revisions to retain
2025
revisionHistoryLimit: 5
2126

0 commit comments

Comments
 (0)