22 lines
530 B
YAML
22 lines
530 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ .Release.Name }}-node-agent
|
|
labels:
|
|
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
|
|
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
|
|
app.kubernetes.io/component: node-agent
|
|
annotations:
|
|
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
|
|
rules:
|
|
- apiGroups: # Kubelet connectivity
|
|
- ""
|
|
resources:
|
|
- nodes/metrics
|
|
- nodes/proxy
|
|
- nodes/spec
|
|
- endpoints
|
|
verbs:
|
|
- get
|
|
- list
|