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

Keep the number of ReplicaSets to a minimum #15640

Closed
wants to merge 1 commit into from

Conversation

subhasree91
Copy link

Fixes #15639

For deployments in k8s the default for .spec.revisionHistoryLimit is set to 10. This means that k8s will keep the latest 10 replicasets for an deployment.

This will help reduce the size of etcd database in a controlplane cluster.

Release Note

  • Changing the k8s replicaset to minimum.

Copy link

linux-foundation-easycla bot commented Nov 29, 2024

CLA Not Signed

@knative-prow knative-prow bot requested review from ReToCode and skonto November 29, 2024 11:38
Copy link

knative-prow bot commented Nov 29, 2024

Welcome @subhasree91! It looks like this is your first PR to knative/serving 🎉

Copy link

knative-prow bot commented Nov 29, 2024

Hi @subhasree91. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@knative-prow knative-prow bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 29, 2024
Copy link

knative-prow bot commented Nov 29, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: subhasree91
Once this PR has been reviewed and has the lgtm label, please assign salaboy for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 29, 2024
@dprotaso
Copy link
Member

dprotaso commented Jan 8, 2025

Hey thanks for the PR - I've been wondering about this for a while.

Is there a reason why we wouldn't just hardcode the # to zero or maybe one? Odd that the godoc isn't clear exactly on the semantics there

@dprotaso
Copy link
Member

dprotaso commented Jan 8, 2025

Since revisions track history I'm wondering if we should set this to 0

From the K8s docs

More specifically, setting this field to zero means that all old ReplicaSets with 0 replicas will be cleaned up. In this case, a new Deployment rollout cannot be undone, since its revision history is cleaned up.

@skonto
Copy link
Contributor

skonto commented Jan 14, 2025

Since revisions track history I'm wondering if we should set this to 0

If we don't do any deployment rollbacks we should be on the safe side.

@dprotaso
Copy link
Member

If we don't do any deployment rollbacks we should be on the safe side.

We don't. So I say we just set it to zero.

@subhasree91 are you interested in making the necessary updates?

@SaschaSchwarze0
Copy link
Contributor

@subhasree91 moved to a different team in our org and won't progress this. I addressed the review comments here: #15698

fyi @dprotaso @skonto

/close

Copy link

knative-prow bot commented Jan 16, 2025

@SaschaSchwarze0: You can't close an active issue/PR unless you authored it or you are a collaborator.

In response to this:

@subhasree91 moved to a different team in our org and won't progress this. I addressed the review comments here: #15698

fyi @dprotaso @skonto

/close

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-sigs/prow repository.

@subhasree91
Copy link
Author

Since I moved to a different team, I won't progress with the issue.

fyi @dprotaso @skonto

/close

@knative-prow knative-prow bot closed this Jan 16, 2025
Copy link

knative-prow bot commented Jan 16, 2025

@subhasree91: Closed this PR.

In response to this:

Since I moved to a different team, I won't progress with the issue.

fyi @dprotaso @skonto

/close

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep the ReplicaSets to a minimum for knative-serving deployments.
5 participants