Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set hostname and instance-id when EC2 metadata is blocked #54

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Allow to set hostname and instance-id when EC2 metadata is blocked #54

merged 1 commit into from
Jun 22, 2020

Conversation

ilpianista
Copy link
Contributor

Description of changes:

On my EKS workers I restricted the access to Amazon EC2 instance metadata service and thus the end point http://169.254.169.254 isn't reachable.

A possible workaround is to start xray-daemon with --local-mode, but since xray need it for just 3 fields (region, hostname and instance-id), I think it's OK to set those via environment variables as well.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@wangzlei wangzlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@willarmiros willarmiros merged commit d2331c8 into aws:master Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants