-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rules YAML directive #2
Conversation
This commit adds the `rules` YAML directive in the Helm Chart. It is used similarly to `stable/elastalert` [1] Specifically, the `rules` directive expects a map of <name, rule yaml> and copies the rules as files to a Kubernetes ConfigMap with the `yaml` file extension. Finally, it uses the already there `volume-mount-hack` initContainer to copy the rule files to the `/opt/elastalert/rules` directory of the Pod (under `data` volumeMount) and grants RW permissions to `elasticsearch-server`. [1]:https://github.com/helm/charts/tree/master/stable/elastalert
@operatorequals I confirmed it works basically. Thanks.
|
This is very good and expected! What I am doing is populate a Deleting a rule with |
@operatorequals Sorry for late reply.
Is this occured on your environment? After I removed I think this issue occurs when initial creation of ConfigMap. But now I don't know how it generated... |
No. Looks like this is a leftover of your previous deployments. The Rules For me it does not exist: $ k exec -ti praeco-elastalert-5cfb7889fd-6krw8 -- ls /opt/elastalert/rules | grep -i static
$ |
|
I don't know why this happens to your deployment. |
Sorry for late reply. Thanks for your testing. It seems to be issue on my deployment... |
This commit adds the
rules
YAML directive in the Helm Chart.It is used similarly to
stable/elastalert
[ 1 ]Specifically, the
rules
directive expects a map of <name, rule yaml>and copies the rules as files to a Kubernetes ConfigMap with the
yaml
file extension.Finally, it uses the already there
volume-mount-hack
initContainerto copy the rule files to the
/opt/elastalert/rules
directoryof the Pod (under
data
volumeMount) and grants RW permissions toelasticsearch-server
.Related Issue [ 2 ]
[1] :https://github.com/helm/charts/tree/master/stable/elastalert
[2] :daichi703n/praeco-helm#4