Hi All, Need some clarification on authorization header for k8s service discovery i.e kubernetes_sd_configs?
Question 1: why we need authorization header for the role endpoints i.e (- role: endpoints) but not pods i.e (- role: pod)? More ref: https://github.com/prometheus/prometheus/blob/release-2.54/documentation/examples/prometheus-kubernetes.yml Question 2: As per doc, The discovery auth config is automatic if Prometheus runs inside the cluster. Otherwise, more config options have to be provided within the <kubernetes_sd_config? That means it will use service account attached to prometheus pod for authentication with k8s api server? Kind Regards, Kavin -- 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/8ccf1874-21f1-4701-b4d7-e78011fefca5n%40googlegroups.com.

