I have a situation where we are using stateful pods and I need to kill the pod when the container dies. restart policy: "Never" doesn't work for stateful sets.
Is there a way to handle this situation with a stateful set? Can Kubernetes operator handle such things such as if I monitor the container and container died because of any reason then the operator kills the pod forcefully?
Also, can we handle this situation with multi containers?