Projects initialized with Kubebuilder versions v3.14.x
or lower utilize kube-rbac-proxy to protect the metrics endpoint. Therefore, you might want to continue using kube-rbac-proxy by simply replacing the image or changing how the metrics endpoint is protected in your project.
Please, ensure that you check the info provided: https://github.com/kubernetes-sigs/kubebuilder/discussions/3907