diff --git a/stable/elastalert/Chart.yaml b/stable/elastalert/Chart.yaml index fdba219b41..47025cd086 100644 --- a/stable/elastalert/Chart.yaml +++ b/stable/elastalert/Chart.yaml @@ -1,6 +1,6 @@ description: ElastAlert is a simple framework for alerting on anomalies, spikes, or other patterns of interest from data in Elasticsearch. name: elastalert -version: 0.2.2 +version: 0.3.0 appVersion: 0.1.30 home: https://github.com/Yelp/elastalert icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg diff --git a/stable/elastalert/README.md b/stable/elastalert/README.md index 426f0471a8..85d2a06a5c 100644 --- a/stable/elastalert/README.md +++ b/stable/elastalert/README.md @@ -35,6 +35,8 @@ The command removes all the Kubernetes components associated with the chart and | `image.repository` | docker image | jertel/elastalert-docker | | `image.tag` | docker image tag | 0.1.30 | | `image.pullPolicy` | image pull policy | IfNotPresent | +| `command` | command override for container | `NULL` | +| `args` | args override for container | `NULL` | | `replicaCount` | number of replicas to run | 1 | | `elasticsearch.host` | elasticsearch endpoint to use | elasticsearch | | `elasticsearch.port` | elasticsearch port to use | 80 | diff --git a/stable/elastalert/templates/deployment.yaml b/stable/elastalert/templates/deployment.yaml index d6bb042911..a5ebd663be 100644 --- a/stable/elastalert/templates/deployment.yaml +++ b/stable/elastalert/templates/deployment.yaml @@ -25,6 +25,14 @@ spec: - name: elastalert image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} +{{- if .Values.command }} + command: +{{ toYaml .Values.command | indent 10 }} +{{- end }} +{{- if .Values.args }} + args: +{{ toYaml .Values.args | indent 10 }} +{{- end }} volumeMounts: - name: config mountPath: '/opt/config' diff --git a/stable/elastalert/values.yaml b/stable/elastalert/values.yaml index 3d247a865a..77402b95a8 100644 --- a/stable/elastalert/values.yaml +++ b/stable/elastalert/values.yaml @@ -25,6 +25,10 @@ elasticsearch: # whether or not to connect to es_host using TLS useSsl: "False" +# Command and args override for container e.g. (https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/) +# command: ["YOUR_CUSTOM_COMMAND"] +# args: ["YOUR", "CUSTOM", "ARGS"] + # rule configurations e.g. (http://elastalert.readthedocs.io/en/latest/) rules: {} # deadman_slack: |-