I need to pass the following variables into each container for a StatefulSet:

1.  The DNS name of the current pod.
2.  The ordinal value of the current pod.
3.  The total number of replicas defined (not necessarily running).

It would appear that the downward API would be a good fit for this, but I'm not 
sure how to set those values as environment variables using that functionality. 
 It appears that I'd use fieldPath, but I can't find of list of viable 
fieldPath variables anywhere.

Any help, or pointers in the right direction, are very much appreciated.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to