-
Notifications
You must be signed in to change notification settings - Fork 724
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
Introduce ECK-managed resources Helm Charts #5781
Conversation
Add README. Add notes for post-installtion. Update values with more docs
Adding top yaml markers
Update example values to work properly.
Adding minimal tests for eck-stack helm chart.
remove unused bits from script. Fix naming in helm chart.
Updating wording in documentation.
Use $() instead of ``
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.
Nice progress on the chart work! I left a few comments.
# securityContext: | ||
# privileged: true | ||
# runAsUser: 0 | ||
# command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] |
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 seems to duplicate more or less the values.yaml
file of the chart. Do we need that? Also should the examples be placed in the corresponding charts?
name: eck-elasticsearch | ||
description: A Helm chart to deploy Elasticsearch managed by the ECK Operator. | ||
type: application | ||
version: 0.1.0 |
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.
I also recommend adding the appVersion
set to the operator version.
Run the dependencies prior to linting.
Issue 1Ok, here's one of the larger issues that both @pebrc and @jmlrt noticed, and hit upon. I initially intended for the examples to only be in the To set version of Elasticsearch in
To set version of Elasticsearch in
Note that all sub-charts in the So these values would work for
But would be ignored for the So if we want examples that work for both Issue 2@jmlrt noted a couple times about
I'd like to further discuss that, as I intentionally left it out, as it's usually tied to the version of the software that this chart is installing, and in our case, we're not "exactly" using the parent chart to install software.
|
Well, I don't have a strong opinion on that, and not sure if there are best practices for charts interacting with operators. I would tend to think that |
Thanks for the explanation. From my findings, I think the issue only really comes to light once you want to install a functional Fleet Agent setup, which absolutely requires 2x Agents in, logically, the same Chart, but I think that's an issue we can resolve when we build out the ie
|
docs/orchestrating-elastic-stack-applications/stack-helm-chart.asciidoc
Outdated
Show resolved
Hide resolved
Adjust default values for eck-elasticsearch and eck-kibana. Debug helm unittest script in CI
|
… helm.elastic.co.
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.
LGTM!
./get_helm.sh -v v${HELM_VERSION} --no-sudo && \ | ||
rm get_helm.sh | ||
|
||
RUN helm plugin install https://github.com/quintush/helm-unittest --version 0.2.8 |
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.
These new requirements should be mentioned in the dev-setup.md
file maybe in a new section about developing the Helm charts.
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.
👍 Added. Will get this merged after latest ci tasks finished.
Support an annotation on all Elastic resources to request a certain license level in the operator. Pre-req of elastic#5781 I had to move a few things around for this to break a few import cycles, I hope that the changes and new packages names are self-explanatory and generally an improvement over the status quo.
* Adding initial revision of eck-stack, and eck-kibana charts. * Update Chart.yaml to have kubeversion. Add README. Add notes for post-installtion. Update values with more docs * Update values file with more information. * adding es resource * Making things consistent across charts. * Adding newlines Adding top yaml markers * Add public documentation for eck-stack helm chart. Update example values to work properly. * Adding helm test script. Adding minimal tests for eck-stack helm chart. * add newline * Add makefile entry. remove unused bits from script. Fix naming in helm chart. * Add helm test to ci checks * make chart.yaml consistent * Adding newlines Updating wording in documentation. * Update newline * Update readme for eck-stack * remove todo from eck-stack readme * quote things to passify spellcheck * Quote more vars. Use $() instead of `` * Fix sc2045 * Updates from first round of reviews. * Update the documentation. Run the dependencies prior to linting. * Fix shellcheck * Add note that ECK stack helm charts are enterprise * Update license note in docs/orchestrating-elastic-stack-applications/stack-helm-chart.asciidoc Co-authored-by: Peter Brachwitz <[email protected]> * Update verbiage deploy/eck-stack/README.md Co-authored-by: Peter Brachwitz <[email protected]> * Update verbiage deploy/eck-stack/README.md Co-authored-by: Peter Brachwitz <[email protected]> * Add 'the' to documentation in docs/orchestrating-elastic-stack-applications/stack-helm-chart.asciidoc Co-authored-by: Peter Brachwitz <[email protected]> * add 'the' again to docs in docs/orchestrating-elastic-stack-applications/stack-helm-chart.asciidoc Co-authored-by: Peter Brachwitz <[email protected]> * Comment out affinity section, as it won't work by default. Adjust kibana elasticsearcRef to be default for release name 'quickstart'. Adjust wording for reference. * Update public documentation to be more clear. * Add dedicated master nodes to dedicated examples * Fix elasticsearch test in eck-elasticsearch chart comment out namespace in elasticsearchref in kibana example. adjust kibana tests to tests for specifying namespace for elasticsearchref. s/fullNameOverride/fullnameOverride remove eck-stack examples with only ES or Kibana. Add eck-stack example with both ES and Kibana customizations. Adjust eck-stack tests for new example. * Fix missing default labels in Elasticsearch. Fix random '{}' in annotatinos in ES/Kibana. * Make default quickstart elasticsearchRef work by default. * Removing logic that inserts namespace for elasticsearchRef, as operator interally handles it. * Move to referencing https://helm.elastic.co helm repository. * Fix helm tests * Add helm test to pr ci pipeline * Add helm to ci-tools container. * Handling Review comments * Adjust default readme in deploy directory Adjust default values for eck-elasticsearch and eck-kibana. Debug helm unittest script in CI * Debugging helm unittest * Fix shellcheck complaining about debugging messages. * Try and run helm unittest directly * Install the correct plugin, with static version * Adjust default values for eck-elasticsearch, and eck-kibana for the eck-stack chart. * Fix test for default elasticsearch name * Remove debugging from helm test script. * Adjust chart.yaml back to using helm.elastic.co repository. * Use sed to force local changes during helm testing, and not charts in helm.elastic.co. * Making shellcheck happy * Add helm documentation to dev-setup.md. Co-authored-by: framsouza <[email protected]> Co-authored-by: Peter Brachwitz <[email protected]>
closes #5505
This PR contains the first version of the ECK-managed resources helm charts including
The main idea is to keep the configuration as simple as possible. With this in mind, the default configuration will deploy:
--set kibana.enabled=true
The examples in
eck-stack/examples
only include the quickstart example, and an additional example for both Elasticsearch, and Kibana, for ease of initial review. If preferred, we can add examples for all the options on this page. Let us know.Not included in this PR:
cc @jmlrt @Kushmaro @framsouza
TODO
Add CI/CD to release chart(s)(doesn't appear necessary, as existing process will release all charts in repo)Open Questions