Skip to content

Non-TLS metrics port #1710

@tspearconquest

Description

@tspearconquest

Is your feature request related to a problem? Please describe.
We want to scrape descheduler's /metrics path with Prometheus, however there currently appears to be no method to configure the TLS certificate for descheduler used on port 10258. Thus, it cannot be made to use anything but the self-signed certificate which changes with each pod restart, and we have no method to provide this certificate to Prometheus nor any method to configure Prometheus to trust the certificate.

Describe the solution you'd like
We would like to see (firstly) the metrics exposed on a separate container port which does not require TLS, for those environments where encryption of the metrics is not a concern.

Secondly, we would like to have a method to configure the TLS certificate used by descheduler so that if an environment needs encryption of the metrics, then it would be possible to provide the CA to Prometheus so that the certificates issued to descheduler (whether self-signed or otherwise) can be trusted by Prometheus.

Describe alternatives you've considered

What version of descheduler are you using?

descheduler version: 0.31.0

Additional context
I checked through the latest helm chart release to see if any method to configure the TLS certificate has been added since 0.31.0 but found nothing, so I believe this is still a missing feature in the latest releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions