mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 15:49:50 +08:00
26 lines
711 B
YAML
26 lines
711 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ template "netdata.fullname" . }}
|
|
labels:
|
|
app: {{ template "netdata.name" . }}
|
|
chart: {{ template "netdata.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources:
|
|
- "pods" # used by sd, netdata (cgroup-name.sh, get-kubernetes-labels.sh)
|
|
- "services" # used by sd
|
|
- "configmaps" # used by sd
|
|
- "secrets" # used by sd
|
|
verbs:
|
|
- "get"
|
|
- "list"
|
|
- "watch"
|
|
- apiGroups: [""]
|
|
resources:
|
|
- "namespaces" # used by netdata (cgroup-name.sh, get-kubernetes-labels.sh)
|
|
verbs:
|
|
- "get"
|