I am running restic in a few dozen jobs on different Kubernetes clusters. With that the backup job’s hostname is quite random. Unfortunately, the hostname and the creation timestamp is almost the only information attached to locks. Or is it not? This makes it quite difficult to identify the right job that has the repository locked right now. I’d like to attach some additional information, eg. the namespace and environment the job is running on. Maybe a bit similar to tags on snapshots? Not sure.
Is that possible? Or any other advice? Thanks a lot in advance.
This information will be reported (as a string) when there’s a lock preventing the action you want to take, e.g. backing up when there’s an exclusive lock.
As you already said I, you can use tags on snapshots to indicate all your planets and galaxies if it helps you navigate the void which is Kubernetes
Additionally, I want to point out that you can also override the hostname when creating a snapshot – if you keep it consistent your use for this container (or whatever it’s called, I have no knowledge of k8) then you can have it be more human readable.