-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
Description
We are trying to run LTFS in k8s pod, the IP of pod changes once the pod is recreated. The problem we hit is, when a POD is not stopped gracefully such as the node that running the POD hit a power outage, when this node is power back on, the LTFS that running in the recreated POD can not mount the tape, because the persistent reservation that placed by previous POD is IPv4 address of previous POD.
If we can pass key as command line option or an env var such as "LTFS_SG_PR_KEY", we can obtain the IP of node via downward API of k8s, so that we can mount the same tape in the same drive as previous POD since we have the same PR key as the one set in previous mount.