Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
问题 I use io.fabric8.kubernetes-client, version 3.1.8 to do RollingUpdate of kubernetes resource. It is fine for Deployment. But I meet an exception for StatefulSet. But it is also fine if I use 'kubectl apply -f ***.yaml' for the StatefulSet. Code to RollingUpdate Deployment: public void createOrReplaceResourceByYaml(String namespace, KubernetesResource resource) { KubernetesClient client = k8sRestClient.newKubeClient(); Deployment deployment = (Deployment) resource; logger.info(String.format(