wonderful-thailand-4366
06/14/2025, 8:39 PMkube-controller-manager-arg:
- "bind-address=0.0.0.0"
kube-scheduler-arg:
- "bind-address=0.0.0.0"
tls-san:
- "localhost"
- "127.0.0.1"
- "100.71.124.99"
- "dexy"
etcd-expose-metrics: true
etcd-arg:
- "listen-metrics-urls=<http://127.0.0.1:2381>,<http://100.71.124.99:2381>" # for metrics
node-ip: 100.71.124.99
node-external-ip: 100.71.124.99
advertise-address: 100.71.124.99
flannel-iface: tailscale0
I want to scrape metrics only over the tailscale network and not over any other network but loopback. But whatever bind addresses I try to provide for them, I am unable to access kube-controller-manager
and kube-scheduler
metrics.wonderful-thailand-4366
06/14/2025, 8:42 PM]$ curl --cacert ./ca.crt -H "Authorization: Bearer $(cat ./kube-sa-token)" <https://100.71.124.99:10259/metrics>
curl: (60) SSL: no alternative certificate subject name matches target host name '100.71.124.99'
More details here: <https://curl.se/docs/sslcerts.html>
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
even if I try to run it on the same node I am not able to get the metrics
but If I run the same command on loopback, it works
]$ curl --cacert ./ca.crt -H "Authorization: Bearer $(cat ./kube-sa-token)" <https://127.0.0.1:10259/metrics>
works
wonderful-thailand-4366
06/14/2025, 8:42 PMwonderful-thailand-4366
06/14/2025, 9:59 PMcreamy-pencil-82913
06/15/2025, 4:48 PMwonderful-thailand-4366
06/15/2025, 6:47 PMwonderful-thailand-4366
06/15/2025, 6:48 PMwonderful-thailand-4366
06/15/2025, 6:51 PM