Skip to content
Snippets Groups Projects
Verified Commit 45848ced authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(kube-system): Fix metrics-server unable to scrape nodes

This patch fixes the problem that metrics-server is unable to scrape any
node, because the certificate for that node, doesn't contain its IP
address.

It's resolved by prefer to use the hostname instead, which should also
be more future proof in general.

```
E0129 14:24:37.428987       1 scraper.go:139] "Failed to scrape node" err="Get \"https://192.168.100.10:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 192.168.100.10 because it doesn't contain any IP SANs" node="node01.k8s01.si-infra.de"
```

References:
https://github.com/kubernetes-sigs/metrics-server/issues/835
parent 7fa72254
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment