You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to scrape the metrics of kube-controller-manager with the following scrape config - the kube-controller-manager-cert-prometheus Secret contains the CA of the K8s API Server, the Certificate of kube-controller-manager and the key for kube-controller-manager cert:
cannot perform request to "https://<IP-of-host>:10257/metrics":
Get "https://<IP-of-host>:10257/metrics":
tls: failed to verify certificate:
x509: cannot validate certificate for <IP-of-host> because it doesn't contain any IP SANs
My kube-controller-manager systemd unit file looks like this (posting only the relevant parts):
I tried to scrape the metrics of kube-controller-manager with the following scrape config - the kube-controller-manager-cert-prometheus Secret contains the CA of the K8s API Server, the Certificate of kube-controller-manager and the key for kube-controller-manager cert:
This fails with this error:
My kube-controller-manager systemd unit file looks like this (posting only the relevant parts):
Adding the SANs to the Cert works and I will create a PR for the change.
The text was updated successfully, but these errors were encountered: