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

kubeletstatsreceiver should verify the server side cert #1792

Open
a-thaler opened this issue Jan 29, 2025 · 0 comments
Open

kubeletstatsreceiver should verify the server side cert #1792

a-thaler opened this issue Jan 29, 2025 · 0 comments
Labels
area/metrics MetricPipeline

Comments

@a-thaler
Copy link
Collaborator

Description
The current metric-agent setup is disabling cert verification of the kubelet (

)

When reading the docu and comments it should be possible to enable verification using the regular serviceaccount setup (open-telemetry/opentelemetry-helm-charts#1034 (comment))

Enabling the feature on Gardener results in an error message:

{"level":"error","ts":"2025-01-29T15:06:48.572Z","caller":"[email protected]/scraper.go:103","msg":"call to /stats/summary endpoint failed","kind":"receiver","name":"kubeletstats","data_type":"metrics","error":"Get \"https://ip-10-250-0-28.eu-central-1.compute.internal:10250/stats/summary\": tls: failed to verify certificate: x509: certificate signed by unknown authority","stacktrace":"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver.(*kubletScraper).scrape\n\tgithub.com/open-telemetry/opentelemetry-collector-contrib/receiver/[email protected]/scraper.go:103\ngo.opentelemetry.io/collector/scraper.ScrapeMetricsFunc.ScrapeMetrics\n\tgo.opentelemetry.io/collector/[email protected]/metrics.go:24\ngo.opentelemetry.io/collector/receiver/scraperhelper.newObsMetrics.func1\n\tgo.opentelemetry.io/collector/[email protected]/scraperhelper/obs_metrics.go:52\ngo.opentelemetry.io/collector/scraper.ScrapeMetricsFunc.ScrapeMetrics\n\tgo.opentelemetry.io/collector/[email protected]/metrics.go:24\ngo.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport\n\tgo.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:195\ngo.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1\n\tgo.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:178"}

Please investigate why it is not working on a Gardener cluster.

@a-thaler a-thaler added the area/metrics MetricPipeline label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics MetricPipeline
Projects
None yet
Development

No branches or pull requests

1 participant