amazon-eks-pod-identity-webhook icon indicating copy to clipboard operation
amazon-eks-pod-identity-webhook copied to clipboard

how to add or get AZ details when pod created.

Open jainpratik163 opened this issue 3 years ago • 1 comments

What happened: how we can get or add AZ details when pod is created.

What you expected to happen: we didn't get any info when the pod is created on which AZ and for doing this we need to write a script.

is there any other way we can achieve this?

jainpratik163 avatar Feb 22 '22 05:02 jainpratik163

Hi @jainpratik163, I'm not sure how this is related to the pod identity webhook, since the purpose of the webhook is to provide AWS IAM credentials to a pod's Service Account.

Depending on what Kubernetes solution you are using (EKS, kops, self-deployed, etc), you may have passed the AWS region into the Pod's definition via environment variables or possibly as annotations on the Pod's metadata.

jaypipes avatar Feb 22 '22 14:02 jaypipes