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.
$ kubectl rollout restart deployment dummy-deploy-001
$ kubectl scale deployment dummy-deploy-001 --replicas=0
$ kubectl scale deployment dummy-deploy-001 --replicas=1
¿ Which will be the best option?