I modified a file and need to restart a StatefulSet
to load changed by java client.
I have tried to use createOrReplaceWithNew
, which can scale down pods but not create new pods and throw NullPointerException
.
client.apps().statefulSets().inNamespace(currentNamespace).withName(StatefulSet).createOrReplaceWithNew().done();