I know each pod gets a (unique) UUID, but is it possible to also give it, automatically, a low id number, that can be reusable as long as no two pods use them at the same time? So if pod 4 dies, the next time a pod is started gets 4. There can be gaps from time to time.
My goal is to use this number as the worker in a twitter-snowflake-like algorithm.
I'd like to achieve that without using StatefulSet, since it comes with a bunch of limitations and complexity that I'd rather not add to a big deployment.