-
Notifications
You must be signed in to change notification settings - Fork 805
Add proposal for PodMarker #704
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
base: master
Are you sure you want to change the base?
Conversation
54d25ce
to
093378c
Compare
Codecov Report
@@ Coverage Diff @@
## master #704 +/- ##
==========================================
- Coverage 49.69% 49.67% -0.03%
==========================================
Files 107 107
Lines 9773 9773
==========================================
- Hits 4857 4855 -2
- Misses 4202 4203 +1
- Partials 714 715 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
3e20894
to
f8e0c02
Compare
4d08bc5
to
2c63e3a
Compare
docs/proposals/20210811-podmarker.md
Outdated
**** | ||
|
||
### API Fantasy | ||
```go |
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.
api definition is not required in the proposals, and i suggest do not include them in the proposals to make the proposals more concise
docs/proposals/20210811-podmarker.md
Outdated
name: marker | ||
spec: | ||
strategy: | ||
replica: 10 |
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.
replica -> replicas
docs/proposals/20210811-podmarker.md
Outdated
- `len(satisfiedPods) < Spec.Strategy.Replicas` if `Spec.Strategy.ConflictPolicy` is `"Overwrite"`. | ||
- `len(satisfiedPods) - len(conflictPods) < Spec.Strategy.Replicas` if `Spec.Strategy.ConflictPolicy` is `"Ignore"`. | ||
- The number(or percentage) of marked Pods `>` `Replicas` iff the number of already marked Pods `>` `Replicas`. | ||
- **Users can remove the marks marked by PodMarker by setting `.Strategy.Replicas = 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.
what will happen if one reduce the replicas, will the annotations/labels of marked pods be reset or cleared ?
docs/proposals/20210811-podmarker.md
Outdated
replica: 10 | ||
confilctPolicy: Ignore | ||
sequencePolicy: NotReadyFirst | ||
preferencesInFrontOfSequencePolicy: true |
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.
is it possible to add ready term in preferences sections, and use an explicit weight to control the priority of each sorting terms?
43f9efd
to
df674b2
Compare
docs/proposals/20210811-podmarker.md
Outdated
nodeSelector: | ||
matchLabels: | ||
arch: x86 | ||
probeRequirements: |
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.
probeRequirements -> podProbe
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.
done
docs/proposals/20210811-podmarker.md
Outdated
|
||
**Implement in Kruise-Daemon** | ||
|
||
We are going to implement the controller logic in `kruise-daemon` due to the following problems: |
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.
Except probing, i don't think it is necessary to depend on kruise-daemon, a controller in kruise-manager is enough
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 agree
docs/proposals/20210811-podmarker.md
Outdated
strategy: | ||
replicas: 10 | ||
confilctPolicy: Ignore | ||
requirements: |
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.
consider make matching criteria naming more consistent
requirements -> matchRequirements
sortRuleForMatchedPods -> matchPreferences
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.
done
699c2b0
to
ce4aa62
Compare
ed83258
to
08680d4
Compare
f33c6dd
to
de2cd3c
Compare
Signed-off-by: veophi <[email protected]>
Signed-off-by: veophi <[email protected]>
de2cd3c
to
c8ac4cc
Compare
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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/pinned |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Signed-off-by: veophi [email protected]
Ⅰ. Describe what this PR does
Add proposal for PodMarker
Ⅱ. Does this pull request fix one issue?
fixes #640