kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.44k stars 14.28k forks source link

StatefulSet Basics - setting update strategy to OnDelete #47038

Open brianjester opened 2 months ago

brianjester commented 2 months ago

When attempting to run this command:

kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"OnDelete"}}}'

I receive this message:

The StatefulSet "web" is invalid: spec.updateStrategy.rollingUpdate: Invalid value: apps.RollingUpdateStatefulSetStrategy{Partition:0, MaxUnavailable:(*intstr.IntOrString)(nil)}: only allowed for updateStrategy 'RollingUpdate'
T-Lakshmi commented 2 months ago

Related page: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#on-delete /language en

subhals commented 2 months ago

/assign

Ritikaa96 commented 2 months ago

It is recommended to wait till the issue is accepted as valid to work on or triage is accepted before assigning it to yourself.

Ritikaa96 commented 2 months ago

@brianjester Related: a Similar issue was discussed here and resolved. Please look into it and let us know if this solves your issue.

sftim commented 2 weeks ago

OK, let's teach setting the field to null explicitly, per https://github.com/kubernetes/kubernetes/issues/100151#issuecomment-801073848

/triage accepted /help

k8s-ci-robot commented 2 weeks ago

@sftim: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to [this](https://github.com/kubernetes/website/issues/47038): >OK, let's teach setting the field to null explicitly, per https://github.com/kubernetes/kubernetes/issues/100151#issuecomment-801073848 > >/triage accepted >/help Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
sftim commented 2 weeks ago

/sig apps