Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issues using rancher-pushprox to hit authenticated kubernetes endpoints #2851

Closed
wants to merge 6 commits into from

Conversation

rheyser
Copy link

@rheyser rheyser commented Aug 14, 2023

Issue:

Users cannot use authenticated endpoints directly without modifying the servicemonitors created by this chart if using the upstream kube-prometheus-stack chart.

Additionally, users cannot use imagePullSecrets for private repositories.

Problem

In its current configuration, without using the proxies, which do not work with the upstream chart, users cannot authenticate to kubernetes api endpoints that require authentication to access them. Additionally, since the same endpoints do not expose certificates to any ip but 127.0.0.1, I've added the capability to honor the insecureSkipVerify flag if it is set. While I was there, I also fixed a bug in metricRelabelings where it would generate an empty list if not configured, it would generate an invalid list if not configured.

Solution

This adds the ability to use authentication on the clients to the kubernetes components. Added the ability to correctly set the http(s) scheme if not using the proxy feature. Fixed a bug so service monitors will honor the insecureSkipVerify flag if set by the client. Fixed a bug in metricRelabelings where it would generate an empty list if not configured. Added imagepullsecrets as a global field to be used whenever an image is pulled.

Testing

Engineering Testing

Manual Testing

I've tested this using our current configuration yamls and helm templating the changes.

Automated Testing

None.

QA Testing Considerations

Test all the things.

Regressions Considerations

The primary focus of changes here were done to the rancher-pushprox client. The main focus of testing should be there and specifically on the service monitor.

Backporting considerations

Yes, needs to be backported to Rancher 2.6.

@rheyser
Copy link
Author

rheyser commented Aug 17, 2023

This should resolve rancher/rancher#43414

Copy link
Member

@rohitsakala rohitsakala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR doesn't follow the guidelines of updating a charts.

@joshmeranda Lets connect to make sure this PR follows them and then merge this.

@joshmeranda
Copy link
Contributor

closing in favor of #2962

@MKlimuszka
Copy link

Actually closing, based on Josh's comment.

@MKlimuszka MKlimuszka closed this Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants