Merge pull request #384 from s-urbaniak/agg
prometheus-adapter: add nodes resource to aggregated-metrics-reader
This commit is contained in:
@@ -191,7 +191,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|||||||
local rules =
|
local rules =
|
||||||
policyRule.new() +
|
policyRule.new() +
|
||||||
policyRule.withApiGroups(['metrics.k8s.io']) +
|
policyRule.withApiGroups(['metrics.k8s.io']) +
|
||||||
policyRule.withResources(['pods']) +
|
policyRule.withResources(['pods', 'nodes']) +
|
||||||
policyRule.withVerbs(['get','list','watch']);
|
policyRule.withVerbs(['get','list','watch']);
|
||||||
|
|
||||||
clusterRole.new() +
|
clusterRole.new() +
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ rules:
|
|||||||
- metrics.k8s.io
|
- metrics.k8s.io
|
||||||
resources:
|
resources:
|
||||||
- pods
|
- pods
|
||||||
|
- nodes
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
|
|||||||
Reference in New Issue
Block a user