Hello, i just install a brand-new Promethues on my k8s cluster (two nodes) and looks everything is good except the target connection with kubernetes=apiservers.
Error message shows me that Get "https://100.65.2.13:443/metrics": x509: certificate is valid for 10.245.0.1, not 100.65.2.13 Here is my config for k8s api server. It's pretty much standard configuration. - job_name: 'kubernetes-apiservers' kubernetes_sd_configs: - role: endpoints scheme: https tls_config: ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token relabel_configs: - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name] action: keep regex: default;kubernetes;https Thanks, -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0d76c8e3-99a9-4278-af0b-a1cd5c049502n%40googlegroups.com.

