I'm curious if having ordinal index <https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#ordinal-index> for StatefulSet pods would be useful, if Kubernetes exported this information as a label on the pod.
This way a user could create a Service easily selecting a pod in the StatefulSet through its index label, and they would not worry about maintaining a manual Endpoints list (+an headless Service) to achieve this. I don't use StatefulSets nor I have an use case for this, but I'm curious if this is something users would need at all. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.