Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add Elastalert chart #2676

Merged
merged 1 commit into from
Nov 23, 2017
Merged

Add Elastalert chart #2676

merged 1 commit into from
Nov 23, 2017

Conversation

poidag-zz
Copy link
Collaborator

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 7, 2017
@unguiculus unguiculus self-assigned this Nov 9, 2017
@unguiculus
Copy link
Member

We've started namespacing templates. See #1785. Please apply to your PR.

@poidag-zz
Copy link
Collaborator Author

Hi @unguiculus

I have added namespacing templates to this PR

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add standard labels.

- https://github.com/krizsan/elastalert-docker
- https://github.com/Yelp/elastalert
maintainers:
- name: Peter Grant
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Github username.

@@ -0,0 +1,11 @@
description: ElastAlert is a simple framework for alerting on anomalies, spikes, or other patterns of interest from data in Elasticsearch.
name: elastalert
version: 0.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add appVersion

# docker image
repository: ivankrizsan/elastalert
# docker image tag
tag: latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use stable version

repository: ivankrizsan/elastalert
# docker image tag
tag: latest
pullPolicy: Always
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default it to IfNotPresent

| `image.repository` | docker image | ivankrizsan/elastalert |
| `image.tag` | docker image tag | latest |
| `replicaCount` | number of replicas to run | 1 |
| `pullPolicy | image pull policy | Always |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image.pullPolicy

spec:
containers:
- name: elastalert
image: {{ .Values.image.repository }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tag and pullPolicy are not used.

template:
metadata:
name: {{ template "elastalert.fullname" . }}-elastalert
labels:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only app and release labels should go here. I don't think we need a component label since there is no multiple components in this chart. All four labels should go below metadata. The configmaps have it correctly.

@poidag-zz
Copy link
Collaborator Author

requested changes have been added @unguiculus

name: {{ template "elastalert.fullname" . }}
labels:
app: {{ template "elastalert.name" . }}
release: {{ .Release.Name }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

release and heritage missing

@@ -0,0 +1,49 @@
{{- $root := . }}
apiVersion: extensions/v1beta1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apiVersion: apps/v1beta1

@poidag-zz
Copy link
Collaborator Author

@unguiculus apologies, I misunderstood your earlier comment on labels, have fixed up labels and apiversion.

@unguiculus
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 17, 2017
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
template:
metadata:
name: {{ template "elastalert.fullname" . }}-elastalert
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add app and release labels here.

@poidag-zz
Copy link
Collaborator Author

@unguiculus Have tidied up everything requested. Please let me know if there is anything else.

@@ -0,0 +1,54 @@
{{- $root := . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used.

@@ -0,0 +1,14 @@
{{- $root := . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used.

@poidag-zz
Copy link
Collaborator Author

@unguiculus have removed unused lines

@unguiculus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 23, 2017
@unguiculus unguiculus merged commit 679f8c1 into helm:master Nov 23, 2017
@sathieu
Copy link
Contributor

sathieu commented Dec 2, 2017

@pickledrick Why did you use port 80 and not 9200 which is the common ElasticSearch port?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants