I`ve running a kubernetes cluster with a deployment of some pods. One pod provides metrics on a https secured endpoint. The problem is, that this pod create and use his own self-signed certificate and prometheus does not trust them.
It's ok for me, but how can I add the insecure_skip_verify
property of the tls_config via annotation or adapt the prometheus scrape config section to allow self-signed certificates for pods with a specific label?
First attempt was to find a solution via the relable_config
, but it seems to be, that it's not possible to add new properties based on an annotation.
Does anyone have a solution for this problem?