My kubernetes cluster has a pod deployment definition to have 10 pod copies. I ran into an issue where a pod instance's container will go into an unrecoverable state where the only mitigation I found is to restart the pod deployment through the following command:
kubectl rollout restart deployment my-pod
I would like to a way to auto execute a pod deployment restart through liveness probes or even pod condition status.
Are there any current out of the box solutions for this?