File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,13 +30,9 @@ bases:
3030# - ../prometheus
3131
3232patchesStrategicMerge :
33- # Protect the /metrics endpoint by putting it behind auth.
34- # If you want your controller-manager to expose the /metrics
35- # endpoint w/o any authn/z, please comment the following line.
33+ # Uncomment the following line to protect the /metrics endpoint with kube-rbac-proxy.
3634# - manager_auth_proxy_patch.yaml
3735
38- # Don't protect the /metrics endpoint and just allow
39- # Prometheus to directly scrape over http.
4036- manager_public_metrics_patch.yaml
4137
4238# Mount the controller config file for loading manager configurations
Original file line number Diff line number Diff line change 1313 spec :
1414 containers :
1515 - name : kube-rbac-proxy
16- image : gcr. io/kubebuilder/kube-rbac-proxy:v0.13.1
16+ image : registry.k8s. io/kubebuilder/kube-rbac-proxy:v0.16.0
1717 args :
1818 - " --secure-listen-address=0.0.0.0:8443"
1919 - " --upstream=http://127.0.0.1:8080/"
Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ resources:
1212- role_binding.yaml
1313- leader_election_role.yaml
1414- leader_election_role_binding.yaml
15- # Comment the following 4 lines if you want to disable
16- # the auth proxy (https://github.com/brancz/kube-rbac-proxy)
17- # which protects your /metrics endpoint.
15+ # Uncomment the following 4 lines to enable the kube-rbac-proxy auth proxy.
1816# - auth_proxy_service.yaml
1917# - auth_proxy_role.yaml
2018# - auth_proxy_role_binding.yaml
You can’t perform that action at this time.
0 commit comments