-
Couldn't load subscription status.
- Fork 34
✨ Replace kube-rbac-proxy with controller-runtime metrics authentication/authorization #460
✨ Replace kube-rbac-proxy with controller-runtime metrics authentication/authorization #460
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #460 +/- ##
==========================================
- Coverage 37.89% 37.20% -0.70%
==========================================
Files 15 15
Lines 1235 1258 +23
==========================================
Hits 468 468
- Misses 717 740 +23
Partials 50 50 ☔ View full report in Codecov by Sentry. |
befdef7 to
8ca7c1d
Compare
0ee7199 to
3183153
Compare
3183153 to
4ad7f35
Compare
4ad7f35 to
42147b6
Compare
|
/hold |
42147b6 to
0d9cd88
Compare
365aa93 to
5c04183
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
Hi @joelanford Can we uphold and move forward with this one? |
5f6b423 to
4f171d3
Compare
c186e9e to
36c6797
Compare
|
/hold cancel |
36c6797 to
40bf352
Compare
e06f976 to
78208d5
Compare
| globalPullSecret string | ||
| ) | ||
| flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.") | ||
| flag.StringVar(&metricsAddr, "metrics-bind-address", "", "The address for the metrics endpoint. Requires tls-cert and tls-key. (Default: ':7443')") |
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.
We need to edit the descriptions of tls-key and tls-cert to note that they are also for the metrics server. Something like:
""The certificate file used by the catalog and metrics servers. Required to enable the metrics server. Requires tls-key."
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.
done see wdyt .. see if that what you were looking for
…n/authorization This commit removes the use of the kube-rbac-proxy image and replaces it with metrics authentication/authorization provided by controller-runtime. The kube-rbac-proxy image is deprecated and will no longer be maintained, which introduces risks to production environments. For more details, see: kubernetes-sigs/kubebuilder#3907
78208d5 to
0424fe4
Compare
aa178c3
This commit removes the use of the kube-rbac-proxy image and replaces it with metrics authentication/authorization provided by controller-runtime. The kube-rbac-proxy image is deprecated and will no longer be maintained, which introduces risks to production environments. For more details, see: kubernetes-sigs/kubebuilder#3907
Motivation: operator-framework/operator-controller#1509
Local Tests
To check the metrics endpoint
To grant the required permissions for metrics access, run:
Generate the token for the catalogd-controller-manager service account:
Run a pod with a debug container to test the metrics endpoint:
Checking the metrics
Result
To validate the usage of certs within
Create the Pod with the secret
Jump in the curl
Run the curl calling the metrics
Result