enhancements icon indicating copy to clipboard operation
enhancements copied to clipboard

Random Pod selection on ReplicaSet downscaling

Open alculquicondor opened this issue 4 years ago • 71 comments

Enhancement Description

  • One-line enhancement description (can be used as a release note): When a ReplicaSet is downscaled, victim Pods are selected randomly
  • Kubernetes Enhancement Proposal: https://git.k8s.io/enhancements/keps/sig-apps/2185-random-pod-select-on-replicaset-downscale
  • Discussion Link: kubernetes/kubernetes#96748
  • Primary contact (assignee): alculquicondor@, damemi@
  • Responsible SIGs: sig-apps, sig-scheduling
  • Enhancement target (which target equals to which milestone):
    • Alpha release target (x.y): 1.21
    • Beta release target (x.y): 1.22
    • Stable release target (x.y): 1.31
  • [x] Alpha
    • [x] KEP (k/enhancements) update PR(s): #2233
    • [x] Code (k/k) update PR(s): kubernetes/kubernetes#99212
    • [x] Docs (k/website) update PR(s): kubernetes/website#27221
  • [x] Beta
    • [x] KEP (k/enhancements) update PR(s): #2691
    • [x] Code (k/k) update PR(s): https://github.com/kubernetes/kubernetes/pull/101767
    • [x] Docs (k/website) update(s): https://github.com/kubernetes/website/pull/27221
  • [ ] Stable
    • [x] KEP (k/enhancements) update PR(s): https://github.com/kubernetes/enhancements/pull/4649
    • [x] Code (k/k) update PR(s): https://github.com/kubernetes/kubernetes/pull/125459
    • [ ] Docs (k/website) update(s):

alculquicondor avatar Dec 15 '20 16:12 alculquicondor

/sig apps /sig scheduling

alculquicondor avatar Dec 15 '20 16:12 alculquicondor

cc @damemi

alculquicondor avatar Dec 15 '20 16:12 alculquicondor

/assign

damemi avatar Dec 15 '20 16:12 damemi

Haven't fogotten about this, just didn't get it in time for the new year... will open a PR soon based on @alculquicondor's draft

damemi avatar Jan 05 '21 15:01 damemi

Filled out most of the sections and opened a KEP here: https://github.com/kubernetes/enhancements/pull/2233

Looking for anything I missed or could improve on. Pretty straightforward mostly since it's not affecting a user-documented behavior

damemi avatar Jan 06 '21 18:01 damemi

Greetings @damemi! Since your Enhancement is scheduled to be in 1.21, please keep in mind the important upcoming dates: • Tuesday, March 9th: Week 9 - Code Freeze • Tuesday, March 16th: Week 10 - Docs Placeholder PR deadline • If this enhancement requires new docs or modification to existing docs, please follow the steps in the Open a placeholder PR doc to open a PR against k/website repo. As a reminder, please link all of your k/k PR(s) and k/website PR(s) to this issue so we can track them. Thanks!

jrsapi avatar Feb 18 '21 19:02 jrsapi

xref - wip PR https://github.com/kubernetes/kubernetes/pull/96898

I'll be picking up this PR and working to get that merged for code freeze. Thanks for the update @jrsapi !

damemi avatar Feb 18 '21 19:02 damemi

Opened new PR in https://github.com/kubernetes/kubernetes/pull/99212

damemi avatar Feb 18 '21 20:02 damemi

Greetings @damemi,

A friendly reminder that Code freeze is 5 days away, March 9th EOD PST Any enhancements that are NOT code complete by the freeze will be removed from the milestone will require an exception to be added back. Please also keep in mind that if this enhancement requires new docs or modification to existing docs, you'll need to follow the steps in the Open a placeholder PR doc to open a PR against k/website repo by March 16th EOD PST. Thanks!

jrsapi avatar Mar 04 '21 20:03 jrsapi

Should we consider any updates to documentation for this? https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#scaling-a-replicaset

Current documentation doesn't give any details about internal selection, which might still be desired.

@janetkuo @soltysh

alculquicondor avatar Mar 08 '21 14:03 alculquicondor

Yes, please update docs and the feature gate for this.

janetkuo avatar Mar 08 '21 23:03 janetkuo

Hello @damemi, 1.21 Docs shadow here. Does this enhancement work planned for 1.21 require any new docs or modification to existing docs? If so, please follows the steps here to open a PR against dev-1.21 branch in the k/website repo. This PR can be just a placeholder at this time and must be created by March 16 EOD PST Also take a look at Documenting for a release to get yourself familiarize with the docs requirement for the release. Thank you!

PI-Victor avatar Mar 10 '21 07:03 PI-Victor

Yeah, I will open a PR to update the docs Aldo linked above

damemi avatar Mar 10 '21 14:03 damemi

Docs PR opened at https://github.com/kubernetes/website/pull/26993, which just copies the comments from code into the docs

damemi avatar Mar 10 '21 17:03 damemi

@alculquicondor can you update the description checklist?

@damemi do you plan on submitting a KEP update to graduate the feature to Beta?

ahg-g avatar May 05 '21 13:05 ahg-g

Updated alpha links

alculquicondor avatar May 05 '21 13:05 alculquicondor

@ahg-g yes, I'll update the KEP with what's necessary for Beta graduation

damemi avatar May 05 '21 14:05 damemi

Hi @damemi ,

1.22 release team here. After reviewing the kep there are a few things that need to be complete before the 1.22 Enhancements Freeze which starts at 23:59:59 pst on Thursday, May 13:

  • Update the Monitoring Requirements section in the kep README.md
  • The kep requires an approved PRR for beta before Enhancements Freeze, please submit for a PRR after updating the requirements for beta
  • In the kep.yaml, update the value for latest-milestone to "v1.22"
  • Update the metrics section in the kep.yaml

reylejano avatar May 11 '21 03:05 reylejano

@reylejano thanks for the update, we have a PR to update the KEP that is currently undergoing review at https://github.com/kubernetes/enhancements/pull/2691 to make the changes you have listed. This should be able to make the enhancements freeze

damemi avatar May 11 '21 14:05 damemi

Hi @damemi , I see that sig scheduling is a participating sig for this enhancement. Does sig scheduling need to do anything for this enhancement for the 1.22 release?

reylejano avatar May 11 '21 23:05 reylejano

sig-scheduling, in particular @damemi and me, proposed the change. But there's no AI on sig-scheduling.

alculquicondor avatar May 12 '21 13:05 alculquicondor

Hi @damemi, With the merge of PR 2691, this enhancement is all set for the 1.22 Enhancements Freeze 🎉 Thank you!

reylejano avatar May 12 '21 16:05 reylejano

Hi @damemi ! I'm @chrisnegus , a Docs Shadow for release 1.22. This enhancement is marked as Needs Docs for the 1.22 release.

Please follow the steps detailed in the documentation to open a PR against dev-1.22 branch in the kubernetes/website repo. This PR can be just a placeholder at this time and must be created before Fri July 9, 11:59 PM PDT.

Also, take a look at Documenting for a release to familiarize yourself with the docs requirement for the release.

Thank you!

chrisnegus avatar May 19 '21 19:05 chrisnegus

Hi @chrisnegus, I opened the placeholder PR here: https://github.com/kubernetes/website/pull/28102 Besides the status change from Alpha to Beta, I think the only other user-facing change for this release will be a KCM metric we planned to add (from the discussion in https://github.com/kubernetes/enhancements/pull/2691). Do those get documented as well?

damemi avatar May 24 '21 16:05 damemi

Hi @dememi,

With about 2 weeks until code freeze (July 8, 2021), Can you confirm if the following k/k PR is all that is needed for the implementation of this enhancement for the 1.22 release?

  • https://github.com/kubernetes/kubernetes/pull/101767

reylejano avatar Jun 23 '21 02:06 reylejano

@reylejano yes, that and the docs PR (https://github.com/kubernetes/website/pull/28102) are all that is needed for this. Thanks!

damemi avatar Jun 23 '21 13:06 damemi

Hi @damemi ,

Just a reminder that the 1.22 code freeze starts next week on July 8, 2021. We're tracking https://github.com/kubernetes/kubernetes/pull/101767 for 1.22. Looks like you're set for the 1.22 Docs Placeholder PR deadline (July 9, 2021) with https://github.com/kubernetes/website/pull/28102

reylejano avatar Jul 01 '21 22:07 reylejano

Hi @damemi ,

The 1.22 code freeze starts in a few days on Thursday, July 8 at 18:00 PDT. The following PR and any other PR required for this enhancement for 1.22 has to merge by then:

  • https://github.com/kubernetes/kubernetes/pull/101767

This enhancement is currently at-risk of falling out of 1.22 with kubernetes/kubernetes#101767 open

reylejano avatar Jul 06 '21 17:07 reylejano

@reylejano that PR was tagged for merge this morning and should have no issues making it in by Thursday 🙂

damemi avatar Jul 06 '21 18:07 damemi

Hi @damemi ,

This enhancement is all set for the 1.22 code freeze 🎉

reylejano avatar Jul 08 '21 14:07 reylejano