-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/elasticsearch] Elasticsearch v7.1.1 #14535
Conversation
Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tetianakravchenko If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @tetianakravchenko. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -1,8 +1,8 @@ | |||
apiVersion: v1 | |||
name: elasticsearch | |||
home: https://www.elastic.co/products/elasticsearch | |||
version: 1.28.0 | |||
appVersion: 6.7.0 | |||
version: 1.29.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.
Note that you can't do a rolling update from 6.7 to 7.* . So should this be a major version bump? I'm not sure. But at least there should be some documentation in the readme. https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html
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.
…ion 6.8 Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
/assign @rendhalver |
We talked about this change on a meeting regarding the depreciation of this chart in favor of the official elasticsearch chart. The official chart already support v7 and the question is if a restart is required then it might be a good time to switch to that chart. Is something stopping people from switching which may make this upgrade needed? |
@Towmeykaw from the official chart : https://github.com/elastic/helm-charts/tree/master/elasticsearch
I believe this is enough for a reason to not switch to the official chart (yet). In addition, the official chart doesn't support preStop/preStart hook which we need in our case. |
Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
Thanks for calling this out. I bumped the status from alpha to beta before I had the official messaging ready (to have it done on time for Kubecon). I have just submitted a PR (elastic/helm-charts#158) to update this. This is the official messaging that I need to put in, however I'm fully committed to following semver and not making breaking changes between major releases. Only one breaking change was made when going from 6.x to 7.x and this was a simple values.yaml change to remove the default storage class name (https://github.com/elastic/helm-charts/releases/tag/7.0.0-alpha1). The only difference between this being in beta and stable now is the support you get if you are an Elastic customer.
The Elastic helm chart uses a different approach which I have found to be much more reliable. Instead of attempting to fully drain a node when stopping and starting, it instead waits for the cluster to be fully green during initial startup. The big advantage of this is that you can easily rollout changes without needing to sync all data to a new node and back again. This can be combined with setting Another issue with using lifecycle hooks for this is with how the execution is handled in Kubernetes which makes them not a very reliable thing to use for something as important as this. If a single call fails then it means that a node might not be added back into the cluster. The current grep is also going to cause issues for clusters with more than 10 nodes.
If you have 10 nodes then a grep for |
@Towmeykaw But it seems you can update from 6.8 to 7. |
@t-d-d @anas-aso We were actually chatting about this just last week. Here is the PR with the initial messaging letting folks know about the intent to move over to the Elastic maintained Charts. The added text also includes a link to the migration guide which outlines the process for moving from the community chart to the Elastic chart. |
@Crazybus Thank you for the clarification! I will close this PR. |
@Towmeykaw I believe there are some unaddressed issues about migrating to the official elasticsearch helm chart: These may not seem very important for some but actually this helm chart (stable/elasticsearch) follows a very different approach than the one in the elastic repo. That is the official elastic helm chart sets up only one role of a cluster, which means that you need to create a separate helm chart installation for master, client, data, or whatever roles you want in your cluster. Also you need to make sure that the different parts of your cluster will be able to see each other as this can not be provided by the official helm chart because by its nature one helm chart instance is only aware of one role of the cluster. |
I agree with that too. 👍 |
What this PR does / why we need it:
switch to es version 7.1.1
adjust accordingly
elasticsearch.yaml
( addcluster.initial_master_nodes
)add
log4j2.properties
for ESv7I've also added
(hasPrefix "6." .Values.appVersion)
for mountinglog4j2.properties
and settingNODE_INGEST
, seems like that was missed.Which issue this PR fixes
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/chart]
)