kubernetes/website

StatefulSet Basics - setting update strategy to OnDelete

Open

#47.038 aberto em 30 de jun. de 2024

Ver no GitHub
 (12 comments) (0 reactions) (3 assignees)HTML (13.918 forks)batch import
help wantedlanguage/ensig/appstriage/accepted

Métricas do repositório

Stars
 (4.127 stars)
Métricas de merge de PR
 (Mesclagem média 16d 13h) (160 fundiu PRs em 30d)

Description

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'

Guia do colaborador