Give id to each pod in a kubernetes cluster

5/9/2019

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?

-- Alexander Mills
amazon-eks
kubernetes

1 Answer

5/9/2019

Look at StatefulSets. StEtefulset deployment add unique ordinal to each instance of the pod

-- P Ekambaram
Source: StackOverflow