mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-26 00:42:09 +02:00
jsonnet: improve all-namespaces addon
Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
parent
6d603cf7a9
commit
feee269fdb
@ -1,11 +1,22 @@
|
||||
{
|
||||
prometheus+:: {
|
||||
clusterRole+: {
|
||||
rules+: [{
|
||||
apiGroups: [''],
|
||||
resources: ['services', 'endpoints', 'pods'],
|
||||
verbs: ['get', 'list', 'watch'],
|
||||
}],
|
||||
rules+: [
|
||||
{
|
||||
apiGroups: [''],
|
||||
resources: ['services', 'endpoints', 'pods'],
|
||||
verbs: ['get', 'list', 'watch'],
|
||||
},
|
||||
{
|
||||
apiGroups: ['networking.k8s.io'],
|
||||
resources: ['ingresses'],
|
||||
verbs: ['get', 'list', 'watch'],
|
||||
},
|
||||
],
|
||||
},
|
||||
// There is no need for specific namespaces RBAC as this addon grants
|
||||
// all required permissions for every namespace
|
||||
roleBindingSpecificNamespaces:: null,
|
||||
roleSpecificNamespaces:: null,
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user