Skip to content

Remove kube-rbac-proxy #830

@Haishi2016

Description

@Haishi2016

New Kubebuilder / controller-runtime supports securing metrics directly.

Use:

mgr, err := ctrl.NewManager(cfg, ctrl.Options{
Metrics: server.Options{
BindAddress: ":8443",
SecureServing: true,
// authentication + authorization
},
})

This uses controller-runtime’s WithAuthenticationAndAuthorization metrics server, replacing the proxy sidecar.

Benefits

  • no sidecar container
  • fewer manifests
  • officially recommended
  • works with new Kubernetes versions

👉 This is what Kubebuilder scaffolds now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions