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,220 points
1,061 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
• 52,360 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
• 18,540 points
6,544 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
• 52,360 points
1,345 views
+1 vote
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP