-
Notifications
You must be signed in to change notification settings - Fork 208
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
[Bug Fix] Fix Excessive IMDS related error logging #1440
Changes from 5 commits
d2fcc03
fb911a1
391e332
c3f3432
22d785e
0235728
442a935
eae7f2e
5b93fab
8a2b696
ec09673
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -94,9 +94,13 @@ func (e *EntityStore) Start(ctx context.Context, host component.Host) error { | |||
e.serviceprovider = newServiceProvider(e.mode, e.config.Region, &e.ec2Info, e.metadataprovider, getEC2Provider, ec2CredentialConfig, e.done, e.logger) | ||||
switch e.mode { | ||||
case config.ModeEC2: | ||||
e.ec2Info = *newEC2Info(e.metadataprovider, e.done, e.config.Region, e.logger) | ||||
e.ec2Info = *newEC2Info(e.metadataprovider, e.kubernetesMode, e.done, e.config.Region, e.logger) | ||||
okankoAMZ marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
go e.ec2Info.initEc2Info() | ||||
go e.serviceprovider.startServiceProvider() | ||||
// Instance metadata tags is not usable for EKS nodes | ||||
// https://github.com/kubernetes/cloud-provider-aws/issues/762 | ||||
if e.kubernetesMode == "" { | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may seem drastic but based on the codebase serviceprovider isn't really used in Kubernetes scenario. It always gets overriden by either Instrumentation or K8sWorkload service name source. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. similar to the above -- shouldn't this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I disabled it for all kubernetes environment because
|
||||
go e.serviceprovider.startServiceProvider() | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so. Code wise, I only see serviceprovider public function called in
|
||||
} | ||||
} | ||||
if e.kubernetesMode != "" { | ||||
e.eksInfo = newEKSInfo(e.logger) | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want to keep the retryer on native k8s on ec2 right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in new commit