kubernetes/website

StatefulSet Basics - setting update strategy to OnDelete

Open

#47,038 创建于 2024年6月30日

在 GitHub 查看
 (12 评论) (0 反应) (3 负责人)HTML (13,918 fork)batch import
help wantedlanguage/ensig/appstriage/accepted

仓库指标

Star
 (4,127 star)
PR 合并指标
 (平均合并 16天 13小时) (30 天内合并 160 个 PR)

描述

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'

贡献者指南