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

Issue with k8s.io/docs/concepts/workloads/controllers/replicaset/ #12205

Closed
1 task
erkanerol opened this issue Jan 13, 2019 · 14 comments
Closed
1 task

Issue with k8s.io/docs/concepts/workloads/controllers/replicaset/ #12205

erkanerol opened this issue Jan 13, 2019 · 14 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@erkanerol
Copy link

erkanerol commented Jan 13, 2019

This is a...

  • Feature Request
  • [ x] Bug Report

Problem:
It seems replicasets use ownerReferences and they ignore the other's pod even the labels match their selector. There is nothing in the documentation regarding this.

Here is a stackoverflow issue:
https://stackoverflow.com/questions/54172198/why-dont-two-kubernetes-replicasets-with-same-selector-conflict-with-each-other/54172659#54172659

Proposed Solution:
Please state that replicasets ignore a pod if it belongs someone else.

Page to Update:
https://kubernetes.io/...

@SupriyaSirbi
Copy link
Contributor

Hello,

Could you please assign it to me?

Thanks

@tengqm
Copy link
Contributor

tengqm commented Jan 21, 2019

/assign @SupriyaSirbi

@k8s-ci-robot
Copy link
Contributor

@tengqm: GitHub didn't allow me to assign the following users: SupriyaSirbi.

Note that only kubernetes members and repo collaborators can be assigned and that issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @SupriyaSirbi

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.

@tengqm
Copy link
Contributor

tengqm commented Jan 21, 2019

@SupriyaSirbi Cannot assign it to you because you are not a kubernetes member. However, you can still work on it and propose a PR.

@SupriyaSirbi
Copy link
Contributor

Thanks for your support. I shall work on the same and propose a PR

@SupriyaSirbi
Copy link
Contributor

Hello @tengqm and @erkanerol

I am planning to update the docs with the following change. Please review and let me know if this is fine

Link:

Original :
Note: For some API types, such as ReplicaSets, the label selectors of two instances must not overlap within a namespace, or the controller can see that as conflicting instructions and fail to determine how many replicas should be present.

Proposed Solution:
Note: For some API types, such as ReplicaSets, the label selectors of two instances might overlap within a namespace. In this case , the controller can ignore a pod if it belongs someone else i.e having different metadata and spec fields in the namespace and create the replicas.

@SupriyaSirbi
Copy link
Contributor

@erkanerol
Copy link
Author

Hi @SupriyaSirbi

I am not sure whether it should be stated in labels page or replicasets page. Since I have no holistic view of k8s documents, I cannot comment on it.

However, I believe there should be a statement like yours somewhere.

@SupriyaSirbi
Copy link
Contributor

@erkanerol Thanks for your suggestion

I came across the following the the replicaset page in "Pod Selector" section

https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/

Also you should not normally create any pods whose labels match this selector, either directly, with another ReplicaSet, or with another controller such as a Deployment. If you do so, the ReplicaSet thinks that it created the other pods. Kubernetes does not stop you from doing this.

If you do end up with multiple controllers that have overlapping selectors, you will have to manage the deletion yourself.

This internally means that the replicasets ignore a pod if it belongs someone else? Should i just add a statement here like this after the bold statement as

In this case , the controller can ignore a pod if it belongs someone else i.e having different metadata and spec fields in the namespace and create the replicas.

SupriyaSirbi added a commit to SupriyaSirbi/website that referenced this issue Jan 24, 2019
…s/replicaset/

This pull request is for Issue kubernetes#12205 which updates the replicaset.md file

When ReplicaSets have the same label selectors but different metadata, the Replicas are created by controller because each Replicaset ignores the Pods created by another.
SupriyaSirbi added a commit to SupriyaSirbi/website that referenced this issue Jan 24, 2019
Update replicaset.md for Issue kubernetes#12205 with k8s.io/docs/concepts/workloads/controllers/replicaset/
@SupriyaSirbi
Copy link
Contributor

Hello @tengqm I am not finding any reviewers for this issue.. This issue is open since last week. Could you please suggest any reviewers for the same?

@tengqm
Copy link
Contributor

tengqm commented Jan 29, 2019

@SupriyaSirbi Since you have already assigned some reviewers, let's wait and see if we can get some comments.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 30, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 30, 2019
@erkanerol
Copy link
Author

@SupriyaSirbi I checked the doc. It seems fine. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants