..

k8s 无法创建 Statefulset

错误信息如下

The StatefulSet "nacos" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden

原因: statefulset 已经存在了,当前yml文件的配置和已经存在的文件的配置又冲突,删除再次创建就没有问题.