It can be the reason of data loss. Because in Kubernetes pods are designed in mind to be restarted or evicted, so for stateful workload you have to add persistent storage. It’s likely that pod just restarted for some reason
You can get a main idea with statefulset from this example: https://github.com/typesense/typesense-kubernetes/blob/master/base/install.yaml