Is it possible to pass different args to pods based on their ordinal index in StatefulSets? Didn\'t find the answer on the StatefulSets documentation. Thanks!
You can avoid using the Downward API by using HOSTNAME:
HOSTNAME
command: - bash - c - | ordinal=${HOSTNAME##*-} if [[ "$ordinal" = "0" ]]; then ... else ... fi