Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120834478
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/helm/templates/prometheus-clusterrole.yaml b/helm/templates/prometheus-clusterrole.yaml
index 49612dd..1bcec19 100644
--- a/helm/templates/prometheus-clusterrole.yaml
+++ b/helm/templates/prometheus-clusterrole.yaml
@@ -1,69 +1,69 @@
{{- if .Values.prometheus.enabled -}}
{{- if .Values.prometheus.clusterMonitoring -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- nodes/proxy
- nodes/metrics
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups:
- extensions
resources:
- ingresses
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
- name: prometheus
+ name: prometheus-{{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
namespace: {{ .Release.Namespace }}
name: prometheusserviceaccount
{{- end }}
{{- if .Values.openshift -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- pods
verbs: ["get", "list", "watch"]
- apiGroups:
- extensions
resources:
- ingresses
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
- name: prometheus
+ name: prometheus-{{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
namespace: {{ .Release.Namespace }}
name: default
{{- end }}
{{- end }}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Apr 24, 1:04 PM (1 w, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18872759
Default Alt Text
(1 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline