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

Remove rbac proxy #1030

Merged
merged 13 commits into from May 4, 2023
Merged

Remove rbac proxy #1030

merged 13 commits into from May 4, 2023

Conversation

pb82
Copy link
Collaborator

@pb82 pb82 commented May 2, 2023

fixes #1017 and #1020

Copy link
Collaborator

@NissesSenap NissesSenap left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@NissesSenap NissesSenap left a comment

Choose a reason for hiding this comment

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

So to lazy to find which version of operator-sdk that I should be using to generate the bundle.
I'm a bit unsure if we should remove some stuff from the current bundle dir as well. Seems to be some remaning files.

port: 8443
protocol: TCP
targetPort: https
- name: metrics
Copy link
Collaborator

Choose a reason for hiding this comment

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

I added a new metrics service for the bundle.

@@ -24,6 +24,10 @@ bases:
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus

resources:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Adding it as a resource

@@ -25,36 +25,42 @@ spec:
securityContext:
runAsNonRoot: true
containers:
- args:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indentation, please ignore

Comment on lines 29 to 30
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:9090
Copy link
Collaborator

Choose a reason for hiding this comment

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

Added the port binding directly to manager.yaml

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will 127.0.0.1 not make the metrics only available to the pod itself but not externally?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why not 0.0.0.0:9090

imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
ports:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Added port

@pb82
Copy link
Collaborator Author

pb82 commented May 3, 2023

Thanks @NissesSenap I'll verify the metrics access and then get this merged.

@pb82 pb82 merged commit 0f0239f into master May 4, 2023
9 checks passed
@pb82 pb82 deleted the remove-rbac-proxy branch May 4, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] kube-rbac-proxy missing resource quota
2 participants