Alexander Mills
Alexander Mills

Reputation: 100496

Give id to each pod in a kubernetes cluster

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?

Upvotes: 0

Views: 820

Answers (1)

P Ekambaram
P Ekambaram

Reputation: 17689

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

Upvotes: 1

Related Questions