Skip to content

Commit

Permalink
working kube-rbac-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kannon92 committed Dec 6, 2024
1 parent 6c0ac1b commit 047521a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions config/components/rbac/auth_proxy_client_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: metrics-reader-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: metrics-reader
subjects:
- kind: ServiceAccount
name: controller-manager
namespace: system
3 changes: 2 additions & 1 deletion config/components/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ resources:
- role_binding.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
# Comment the following 3 lines if you want to disable
# Comment the following 4 lines if you want to disable
# protecting your /metrics endpoint.
- auth_proxy_role.yaml
- auth_proxy_role_binding.yaml
- auth_proxy_client_clusterrole.yaml
- auth_proxy_client_binding.yaml

0 comments on commit 047521a

Please sign in to comment.