Hi. I'm working with a StatefulSet in my AKS with 3 availability zones. In my scenario, each Pod has to know which zone it actually locates on and start the container with this config.
According to this doc (https://docs.microsoft.com/en-us/azure/aks/availability-zones#verify-node-distribution-across-zones), it seems I can only get the zone info from Pod's corresponding PV or AKS node. To achieve my goal, I think I have to call API server in an init-container to query zone info.
So is there any easier way to make zone info be accessible in the container or be set as env variables of PodSpec as
env:
- name: ZONE
valueFrom:
fieldRef:
fieldPath: status.zone
Thanks in advance.