-
Notifications
You must be signed in to change notification settings - Fork 3
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
get the kubernetes default config, freeze pip dependencies #3
Conversation
app.py
Outdated
@@ -163,5 +163,5 @@ def log_message(self, format, *args): | |||
|
|||
|
|||
if __name__ == '__main__': | |||
httpd = ProxyHTTPServer(('127.0.0.1', 8080), partial(ProxyMetricsHandler, ProxyConfig())) | |||
httpd = ProxyHTTPServer(('0.0.0.0', 8080), partial(ProxyMetricsHandler, ProxyConfig())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for the pull request. openshift-prometheus-proxy deliberately binds to localhost only, so that it's only reachable via OAuth Proxy. This should still work on OCP 4 as the same configuration is used by the OCP 4 monitoring stack. Have you seen issues with this code on OCP 4?
Yes, I deployed it using source-to-image to OCP4 and it was not reachable using 127.0.0.1. I did not test it on OCP4 using the provided config.
… Am 07.11.2021 um 16:05 schrieb Daniel Tschan ***@***.***>:
@dtschan commented on this pull request.
In app.py:
> @@ -163,5 +163,5 @@ def log_message(self, format, *args):
if __name__ == '__main__':
- httpd = ProxyHTTPServer(('127.0.0.1', 8080), partial(ProxyMetricsHandler, ProxyConfig()))
+ httpd = ProxyHTTPServer(('0.0.0.0', 8080), partial(ProxyMetricsHandler, ProxyConfig()))
Thx for the pull request. openshift-prometheus-proxy deliberately binds to localhost only, so that it's only reachable via OAuth Proxy. This should still work on OCP 4 as the same configuration is used by the OCP 4 monitoring stack. Have you seen issues with this code on OCP 4?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I see. openshift-prometheus-proxy requires OAuth proxy to provide security and isn't designed to be used without it. Can you please remove the change on line 166. The rest of the pull request looks good. |
@dtschan Reverted change and added a comment 👍🏻 |
fixes the missing api_key of #2, which might be from an upstream Kubernetes module change?