File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ resources:
55- ../default
66- cluster-monitoring-view-binding.yaml
77- metrics-reader-token.yaml
8+ - prometheus-metrics-auth-binding.yaml
89
910patches :
1011- path : configmap-patch.yaml
Original file line number Diff line number Diff line change 1+ # Grant the OpenShift user-workload-monitoring Prometheus SA permission to
2+ # authenticate to the WVA metrics endpoint (tokenreviews + subjectaccessreviews).
3+ apiVersion : rbac.authorization.k8s.io/v1
4+ kind : ClusterRoleBinding
5+ metadata :
6+ name : workload-variant-autoscaler-ocp-prometheus-metrics-auth
7+ roleRef :
8+ apiGroup : rbac.authorization.k8s.io
9+ kind : ClusterRole
10+ name : workload-variant-autoscaler-metrics-auth-role
11+ subjects :
12+ - kind : ServiceAccount
13+ name : prometheus-k8s
14+ namespace : openshift-user-workload-monitoring
You can’t perform that action at this time.
0 commit comments