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

[BCDR] feat: Update podAntiAffinity #84

Merged
merged 1 commit into from
Dec 17, 2023
Merged

Conversation

cap-ang
Copy link
Contributor

@cap-ang cap-ang commented Dec 14, 2023

List of Changes

Update with preferredDuringSchedulingIgnoredDuringExecution:
The scheduler tries to find a node that meets the rule. If a matching node is not available, the scheduler still schedules the Pod.

  • weight is 100, this specifies the weight of this anti-affinity rule.
  • topology key is topology.kubernetes.io/zone, the node must have a label with the key topology.kubernetes.io/zone

Motivation and Context

This pod anti-affinity rule ensures that pods with the app.kubernetes.io/instance: pagopagpdpayments label are spread across different availability zones in the gps namespace.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@cap-ang cap-ang self-assigned this Dec 14, 2023
@cap-ang cap-ang requested a review from a team as a code owner December 14, 2023 09:08
Copy link

Comment this PR with update_code to update openapi.json and format the code. Consider to use pre-commit to format the code.

Copy link

sonarcloud bot commented Dec 14, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@pasqualespica pasqualespica merged commit 767713a into main Dec 17, 2023
7 of 10 checks passed
@pasqualespica pasqualespica deleted the BCDR-pod-anti-affinity branch December 17, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants