fix : remove kube-rbac-proxy sidecar metric proxy container from Operator deployment#1437
Conversation
|
Skipping CI for Draft Pull Request. |
2a64641 to
bc2d72c
Compare
|
/ok-to-test |
4c4e17e to
5e719a8
Compare
|
/ok-to-test |
5e719a8 to
f29f63f
Compare
e3f9d7f to
4acefe3
Compare
|
/ok-to-test |
1 similar comment
|
/ok-to-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dkwon17, rohanKanojia The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| Metrics: metricsserver.Options{ | ||
| BindAddress: metricsAddr, | ||
| BindAddress: metricsAddr, | ||
| FilterProvider: filters.WithAuthenticationAndAuthorization, |
There was a problem hiding this comment.
Since kube-rbac-proxy was configured to use HTTPS with --secure-listen-address=0.0.0.0:8443, could we also set the metrics server to use HTTPS?
There was a problem hiding this comment.
Basically, this documentation should work the same way as before: https://eclipse.dev/che/docs/stable/administration-guide/monitoring-the-dev-workspace-operator/
There was a problem hiding this comment.
Good catch, I've added SecureServing: true in metricsserver.Options. It enables https in metrics server
4acefe3 to
db2b524
Compare
|
New changes are detected. LGTM label has been removed. |
db2b524 to
8b8aa34
Compare
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
8b8aa34 to
1ae0ec2
Compare
What does this PR do?
Requires chore (deps) : bump controller-runtime to v0.18.7 #1435 to be merged firstAs mentioned in #1352 and #1343 (comment) , using
kube-rbac-proxysidecar container is deprecated and is causing issues in configuring Operator resource/limits via Operator subscription.This PR removes this sidecar container and uses controller-runtime's inbuilt
WithAuthenticationAndAuthorization. Now that we don't have a proxy, we can directly post metrics on 8443 and 9443 ports for devworkspace-controller-manager and devworkspace-webhook-server respectively.Signed-off-by: Rohan Kumar rohaan@redhat.com
What issues does this PR fix or reference?
#1343
Is it tested? How?
After making changes I made sure operator is running and metrics are accessible on 8443 and 9443 ports.
Configuring memory and CPU requests/limits
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-pathto trigger)v8-devworkspace-operator-e2e: DevWorkspace e2e testv8-che-happy-path: Happy path for verification integration with Che