Skip to content
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

Enhanced the affinity for opensearch-cluster to have a default podAntiAffinity #927

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rajeshm90
Copy link

@rajeshm90 rajeshm90 commented Jan 6, 2025

Description

This PR helps to add a default podAntiAffinity rule in each nodePool component with the node pool as selector to schedule the replicas on different nodes on Kubernetes.

Issues Resolved

Fixes #285

Check List

  • Commits are signed per the DCO using --signoff
  • Unittest added for the new/changed functionality and all unit tests are successful
  • Customer-visible features documented
  • No linter warnings (helm lint and helm template)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check
here.

Signed-off-by: Rajesh M [email protected]

…iAffinity

This PR helps to add a default podAntiAffinity rule in each nodePool
component with the cluster-name as selector to schedule the replicas on
different nodes on Kubernetes.

All components using the same rule, thus each replica from nodePool
components schedules on different nodes. This can be improved on
component wise in nodePool in future if needed.

Fixes opensearch-project#285

- [x] Commits are signed per the DCO using --signoff
- [x] Unittest added for the new/changed functionality and all unit
tests are successful
- [x] Customer-visible features documented
- [x] No linter warnings (`helm lint` and `helm template`)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Rajesh M <[email protected]>
@rajeshm90 rajeshm90 force-pushed the feature/supports-default-antiaffinity branch from 72bbfc4 to 8c84d0f Compare January 6, 2025 14:05
@evheniyt
Copy link
Contributor

hi @prudhvigodithi I remember we discussed that we need to add a pipeline job for helm-doc to test if users didn't forget to update documentation, could you help with this?

@rajeshm90 rajeshm90 marked this pull request as draft January 14, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Enable pod antiaffinity by default
2 participants