REDIS集群无需持久化KUBERNETES

我正在尝试在不持久化kubernetes集群的情况下设置Redis集群。有没有办法我可以在没有持久性的情况下做到这一点。重启Pod后,我需要自动恢复。有一个简单的方法吗?

Tried out updating node info with a script on startup which doesn't really work as the rebooted pod comes up with a new static private ip. fyi i have created a stateful set and a configmap referred here: https://github.com/rustudorcalin/deploying-redis-cluster and the empty dir setup for volumes. ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/