Is there a way to give each pod in a cluster an id? Like an incrementing integer? How would that look in a yaml configuration? What about giving an id to an already running pod?
Look at StatefulSets. StEtefulset deployment add unique ordinal to each instance of the pod