A question …, i can be in a scenario where all was working fine and out of nowhere the PODs strangely went into an Error state. The problem if I have a: [CI / CD] system is that it might take a long time to reboot your POD as the Entire process has to be rerun.
Because of this, the best option I think would be to go for KUBECTL. But I understand that there are 2 ways to reset a POD (NOT directly from the POD), but through DEPLOYMENT.
FORM#1:
$ kubectl rollout restart deployment dummy-deploy-001
FORM#2:
$ kubectl scale deployment dummy-deploy-001 --replicas=0
$ kubectl scale deployment dummy-deploy-001 --replicas=1
¿ Which will be the best option?
Thank you.