How to force restart StatefulSet programmatically with java client?

6/10/2019

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();
-- Ray
fabric8
kubernetes

0 Answers