-
Notifications
You must be signed in to change notification settings - Fork 727
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
Support helm chart for Logstash Elastic Stack resource #7143
Conversation
4e745cc
to
7dc34ef
Compare
I've write the chart for each section of Tell me if you want some things more :) |
Hi @thbkrkr , Do I have something to do for my PR to be reviewed ? Or just you don't have time for now ? |
Sorry, it's a question of time and priority. We will review it as soon as possible. |
Update eck-stack values to include logstash chart, disabled by default. Include logstash tests. Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good initially. Thanks much for the contribution. There are a couple of things I've initially noticed, and I've pushed a commit doing the following
- Adding example logstash tests (run them with
make helm-test
) - Adding logstash to the eck-stack chart values, and Chart.yaml.
Co-authored-by: Michael Montgomery <mmontg1@gmail.com>
…ineRef, secureSettings into the values, chart and tests
Test passed
|
Is that a feature you want to have github actions that tests for example the helm charts ? |
No thank you. There are some buildkite steps that do this that I'll trigger soon after the review. Thanks again for the contributions. |
I've been testing this a bit more, and found these issue: diff --git a/deploy/eck-stack/charts/eck-logstash/templates/logstash.yaml b/deploy/eck-stack/charts/eck-logstash/templates/logstash.yaml
index ce720911a..eeb0d6a25 100644
--- a/deploy/eck-stack/charts/eck-logstash/templates/logstash.yaml
+++ b/deploy/eck-stack/charts/eck-logstash/templates/logstash.yaml
@@ -1,5 +1,5 @@
---
-apiVersion: logstash.k8s.elastic.co/v1
+apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
name: {{ include "logstash.fullname" . }}
@@ -44,13 +44,8 @@ spec:
{{- toYaml . | nindent 4 }}
{{- end }}
- pipelines:
- {{ toYaml .Values.pipelines | nindent 4 }}
- volumeClaimTemplates:
- {{ toYaml .Values.volumeClaimTemplates | nindent 4 }}
- elasticsearchRefs:
- {{ toYaml .Values.elasticsearchRefs | nindent 4 }}
- services:
- {{ toYaml .Values.services | nindent 4 }}
- secureSettings:
- {{ toYaml .Values.secureSettings | nindent 4 }}
+ pipelines: {{ toYaml .Values.pipelines | nindent 4 }}
+ volumeClaimTemplates: {{ toYaml .Values.volumeClaimTemplates | nindent 4 }}
+ elasticsearchRefs: {{ toYaml .Values.elasticsearchRefs | nindent 4 }}
+ services: {{ toYaml .Values.services | nindent 4 }}
+ secureSettings: {{ toYaml .Values.secureSettings | nindent 4 }} The moving of the |
I'm not sure to understand what are the 2 contents being compared ? |
@naemono anyway we can have integrated soon? Looking to utilize this in our infrastructure soon |
@azro352 I'll update the PR. What I was trying to indicate was that Logstash has no "v1" version, it's only in alpha so it's version is "v1alpha1". @RoseSecurity We're intending to have this merged and contained within our next release, which is in about a month. |
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Update Helm stack readme to include logstash. Add logstash example. Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Add some notes to the example. Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I leave the final 👍 to @naemono. The pipelinesRef
is the only major thing to fix.
docs/orchestrating-elastic-stack-applications/stack-helm-chart.asciidoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com>
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM. Everything is functional from my testing, and the docs are in place for this feature. Will merge after CI passes.
@elasticmachine run elasticsearch-ci/docs |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Add logstash helm chart with examples and documentation * Update eck-stack chart to include logstash chart. * Update eck-stack values to include logstash chart, disabled by default. * Include logstash tests. --------- Signed-off-by: Michael Montgomery <mmontg1@gmail.com> Co-authored-by: Michael Montgomery <mmontg1@gmail.com> Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com> (cherry picked from commit 4fca9b8)
* Add logstash helm chart with examples and documentation * Update eck-stack chart to include logstash chart. * Update eck-stack values to include logstash chart, disabled by default. * Include logstash tests. --------- Signed-off-by: Michael Montgomery <mmontg1@gmail.com> Co-authored-by: Michael Montgomery <mmontg1@gmail.com> Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com> (cherry picked from commit 4fca9b8) Co-authored-by: azro352 <35503478+azro352@users.noreply.github.com>
Hi
My contribution to the eck project : the logstash helm chart
Anyone feel free to review and comment, the goal is to put as examples the files of https://github.com/elastic/cloud-on-k8s/tree/main/config/recipes/logstash
In these examples there is not only a logstash, but also some elastic, beats, ... can you confirm me that I only need to put the Logstash part in the corresponding example file for the helm chart ?
Resolves #7128
Thanks