A Pod
itself is scheduled on a Node
. The Node
is the actual (virtual) machine that is deployed into a special availability zone.
The availability zone of a node can usually be read from the labels topology.kubernetes.io/zone
(new), or failure-domain.beta.kubernetes.io/zone
(old)
So to find out in which availability zone your pod is, you'll have to find out on which node it was scheduled and then check that node for those labels.
You can do it like this:
kubectl get node -o wide
Copy the name of the node and then paste it into the following command:
kubectl describe node <node-name>
Under the section labels
, you can then check for the labels described above to find out in which availability zone the node lives and hence - where your pod was scheduled.