Skip to content

[nr-k8s-otel-collector] Allow enabling insecure_skip_veriy for scraping apiserver #1824

@dmd77

Description

@dmd77

Description

It should be possible to set insecure_skip_verify to true for the scrape configs of the apiserver in the prometheus receiver. This is a pretty common use case, since for most cloud providers this the only documented way to be able to scrape the apiserver endpoint (e.g. aws). The helper function "newrelic.common.openShift" is already in place to set this to true for openShift environments, this is a similar usecase.

Acceptance Criteria

It should be possible to set this without having to overwrite the entire configmap.

Describe Alternatives

This could either be achieved by adding additional values to allow configuring the prometheus receiver, or by considering to set it to 'true' by default.

Dependencies

Depending on whether the "newrelic.common.openShift" helper needs to be modified.

Additional context

None

Estimates

T-Shirt size: S-M depending on how this is implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestCategorizes issue or PR as related to a new feature or enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions