Closed younes-io closed 2 years ago
I've found this stackoverflow question.
TL;DR:
It seems that kubectl rollout restart
just modifies an annotation within the pod template (which will cause a restart).
You can do the same with the patch()
method of the client.
I'd like to do a
rollout restart
using this library, but I can't find the relevant API :kubectl rollout restart deployment/myApp
Could you please help?
P.S : I'd like to avoid the scaling to 0 and then to N.