Skip to content

Commit 626d900

Browse files
Liam Bennettliam-j-bennett
authored andcommitted
add policies to enable metrics
1 parent f44aa77 commit 626d900

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

installer/pkg/components/prometheus/clusterrole.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ func clusterRole(ctx *common.RenderContext) ([]runtime.Object, error) {
2626
Resources: []string{"nodes/metrics"},
2727
Verbs: []string{"get"},
2828
},
29+
{
30+
APIGroups: []string{""},
31+
Resources: []string{
32+
"services",
33+
"pods",
34+
"endpoints",
35+
},
36+
Verbs: []string{"get"},
37+
},
2938
{
3039
NonResourceURLs: []string{"/metrics"},
3140

0 commit comments

Comments
 (0)