-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
modify the default update strategy of statefulset #7270
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit 2f09ce5 https://deploy-preview-7270--kubernetes-io-master-staging.netlify.com |
/assign @enisoc |
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.
Since when the RollingUpdate
became the new default?
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
@tengqm The default changed as of apps/v1beta2
in Kubernetes 1.8:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.8.md#defaults
`.spec.updateStrategy.type` is set to `OnDelete`, the StatefulSet controller will not automatically | ||
update the Pods in a StatefulSet. Users must manually delete Pods to cause the controller to | ||
create new Pods that reflect modifications made to a StatefulSet's `.spec.template`. | ||
|
||
### Rolling Updates | ||
|
||
The `RollingUpdate` update strategy implements automated, rolling update for the Pods in a | ||
StatefulSet. When a StatefulSet's `.spec.updateStrategy.type` is set to `RollingUpdate`, the | ||
StatefulSet. It is the default strategy when `spec.updateStrategy` is left unspecified. When a StatefulSet's `.spec.updateStrategy.type` is set to `RollingUpdate`, the |
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.
Nit: please wrap "When a ..." to a new line.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enisoc, Pingan2017 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/hold |
* 'master' of https://github.com/kubernetes/website: (379 commits) fix some typos in keps.md (#7266) Typo fix: recommend -> recommended (#7271) Update nodes.md (#7288) Fix patch image command in rolling update section (#7124) fix edx link (#7276) Update OWNERS_ALIASES for sig-openstack (#7280) Update ISSUE_TEMPLATE.md (#7284) Add Brad Topol to owner aliases. (#7246) modify the default update strategy of statefulset (#7270) Fix tags of workloads-related glossary (#7102) kubectl 1.9+ updated registry secret type and datakey: .dockercfg is now .dockerconfigjson, and datakey now wrapped in 'auths' element (#7248) Remove CentOS guide that was already deprecated a while ago (#7242) fix typo (#7260) fix typo envrionment -> [environment] (#7262) fix a typo in kubernetes api (#7261) fix some typos (#7251) Update notes.md (#7259) Update notes.md (#7257) Fix file extension and remove not necessary sudo. (#7143) Update Azure Container Service to managed clusters (#6955) ...
This change is