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

Drop kube-rbac-proxy container and adopt controller-runtime native … #243

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Rohit-0505
Copy link

Overview

The PR removes the soon-to-be deprecated kube-rbac-proxy container dependency and replaces it with Controller-Runtime's built-in authn/authz for securing the metrics endpoint. This simplifies setup, enhances security, and follows the latest Kubebuilder best practices.

Key Changes

  • Modified the docker-build target to build multi-stage docker images, for ex: controller-manager and metalprobe docker images
  • Removed kube-rbac-proxy dependency.
  • Enabled Controller-Runtime's built-in authentication & authorization for metrics.
  • Enhanced cert-manager integration to secure metrics with TLS encryption.
  • Added e2e tests to validate the metrics endpoint

Fixes #209

Ref:
kubernetes-sigs/kubebuilder#3907
kubernetes-sigs/controller-runtime#2407
kubernetes-sigs/kubebuilder#4400
kubernetes-sigs/kubebuilder/docs/reference/metrics (v4.5.0)

@github-actions github-actions bot added size/XXL enhancement New feature or request labels Feb 19, 2025
@Rohit-0505 Rohit-0505 self-assigned this Feb 19, 2025
@Rohit-0505 Rohit-0505 marked this pull request as draft February 19, 2025 04:36
@lukas016 lukas016 force-pushed the osc/enh/replace-kube-rbac-proxy branch 6 times, most recently from 21063b8 to 77e5ca1 Compare February 25, 2025 13:48
@lukas016 lukas016 force-pushed the osc/enh/replace-kube-rbac-proxy branch 4 times, most recently from 311d7b1 to 01146ca Compare February 26, 2025 03:33
@lukas016 lukas016 force-pushed the osc/enh/replace-kube-rbac-proxy branch from 01146ca to 618a1fc Compare February 26, 2025 03:42
@Rohit-0505 Rohit-0505 marked this pull request as ready for review February 26, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop the usage of kube-rbac-proxy
1 participant