kubernetes/website

StatefulSet Basics - setting update strategy to OnDelete

Open

#47.038 aperta il 30 giu 2024

Vedi su GitHub
 (12 commenti) (0 reazioni) (3 assegnatari)HTML (13.918 fork)batch import
help wantedlanguage/ensig/appstriage/accepted

Metriche repository

Star
 (4127 star)
Metriche merge PR
 (Merge medio 16g 13h) (160 PR mergiate in 30 g)

Descrizione

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'

Guida contributor