Merge pull request #384 from s-urbaniak/agg

prometheus-adapter: add nodes resource to aggregated-metrics-reader
This commit is contained in:
Frederic Branczyk
2020-01-22 09:45:38 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -191,7 +191,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
local rules =
policyRule.new() +
policyRule.withApiGroups(['metrics.k8s.io']) +
policyRule.withResources(['pods']) +
policyRule.withResources(['pods', 'nodes']) +
policyRule.withVerbs(['get','list','watch']);
clusterRole.new() +

View File

@@ -11,6 +11,7 @@ rules:
- metrics.k8s.io
resources:
- pods
- nodes
verbs:
- get
- list