-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
use upstream default of etcd_snapshot_count #10275
use upstream default of etcd_snapshot_count #10275
Conversation
Hi @rptaylor. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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/test-infra repository. |
/ok-to-test |
The kubernetes default value is 10k not 100k :
So keep the 10k value is resonable :-) |
@yankay Okay so there's more background to this:
Either would have resolved the discrepancy between k8s and etcd but neither went forward. It could still be changed in the future though. That being the case, wouldn't the best course of action for Kubespray be to not define it at all? It is not a good pattern for Kubespray to have a default which overrides the kubeadm/etcd defaults. Three default values (kubeadm, etcd, kubespray) for this parameter is too many. The use of Then the choice of kubeadm/etcd for the default value will take precedence instead of Kubespray having to care/decide what it should be, and of course users can still override it if needed. |
Thanks @rptaylor I guess the etcd_snapshot_count could be changed after the Kubernetes change :-) And the comments give us a good idea :-) |
d5faf93
to
09c51d0
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rptaylor 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 |
There should not be a separate kubespray default that overrides the kubeadm default, but as long as Kubespray supports both kubeadm-based and host-based etcd deployment I guess it will be tricky to apply the right default in both approaches. So there is not a good way to resolve the divergence between the kubeadm default and the etcd default. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Match the upstream default of etcd_snapshot_count decided by the etcd community, which was updated in v3.2 but not reflected in Kubespray. This way kubespray will match the expectations people have of default etcd behaviour in other kubernetes distributions.
Which issue(s) this PR fixes:
Fixes #9018
Special notes for your reviewer:
See https://etcd.io/docs/v3.4/op-guide/maintenance/