Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
f517b35a
Commit
f517b35a
authored
5 years ago
by
omerlh
Browse files
Options
Downloads
Patches
Plain Diff
added patch to allow prom to watch all namespaces
parent
9493a1a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jsonnet/kube-prometheus/kube-prometheus-all-namespaces.libsonnet
+20
-0
20 additions, 0 deletions
.../kube-prometheus/kube-prometheus-all-namespaces.libsonnet
with
20 additions
and
0 deletions
jsonnet/kube-prometheus/kube-prometheus-all-namespaces.libsonnet
0 → 100644
+
20
−
0
View file @
f517b35a
local
k
=
import
'ksonnet/ksonnet.beta.4/k.libsonnet'
;
{
prometheus
+::
{
clusterRole
+:
{
rules
+:
local
role
=
k
.
rbac
.
v1
.
role
;
local
policyRule
=
role
.
rulesType
;
local
rule
=
policyRule
.
new
()
+
policyRule
.
withApiGroups
([
''
])
+
policyRule
.
withResources
([
'services'
,
'endpoints'
,
'pods'
,
])
+
policyRule
.
withVerbs
([
'get'
,
'list'
,
'watch'
]);
[
rule
]
},
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment