Within same stateful set afaik you can interact between particular pods just by referencing it directly, like this - pod-{0..N-1}.my_service.my_namespace.svc.cluster.local
pod-{0..N-1}.my_service.my_namespace.svc.cluster.local