Take a practical example:
kubectl run never --image=alpine --restart=Never -- echo "Hello"
It will spin up a Pod that runs and terminates successfully (echo hello
) and will never be restarted, therefore the status will be completed.

kubectl run onfail --image=alpine --restart=OnFailure -- echo "Hello"
It will spin up a Pod that runs and terminates successfully (will echo hello
) therefore it will not be restarted, and the status will also completed:

kubectl run onfail1 --image=alpine --restart=OnFailure -- exit 0
It will spin up a Pod that runs and terminates but with an error therefore it will be restarted, and the pod will be in CrashLoopBackOff:

kubectl run always --image=alpine --restart=Always -- echo "Hello"
It will spin up a Pod that runs and terminates successfully (will echo hello
), but it will always get restarted:

Using Always
as a restart policy you might consider that it behaves like a deployment
and using OnFailure
as a restart policy it behaves like a job