kubernetes on AWS get region name in pod

0 votes

I am running a kubernetes cluster on AWS-ec2 and I would like to have the pod (container) know during runtime which region it's running on, how can this be done?

Oct 4, 2018 in Kubernetes by lina
• 8,110 points
113 views

1 answer to this question.

0 votes

Try having the container query the kubernetes/AWS API to fetch this information however that would mean adding quite a lot of complexity to your containers but seems like the only option that I know of. 

If anyone has a better approach, please do answer away 

answered Oct 4, 2018 by Kalgi
• 41,660 points

Related Questions In Kubernetes

0 votes
2 answers
0 votes
1 answer
0 votes
3 answers

Retry pull image in a kubernetes pod

If the Pod is part of a ...READ MORE

answered Aug 29, 2018 in Kubernetes by Hannah
• 15,440 points
1,114 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 41,660 points
69 views
0 votes
1 answer
0 votes
1 answer