24 lines
557 B
YAML
24 lines
557 B
YAML
{{- if .Values.logsAgent.enabled }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ .Release.Name }}-logs-agent
|
|
labels:
|
|
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
|
|
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
|
|
app.kubernetes.io/component: logs-agent
|
|
annotations:
|
|
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
|
|
rules:
|
|
- apiGroups: # Kubelet connectivity
|
|
- ""
|
|
resources:
|
|
- nodes
|
|
- services
|
|
- pods
|
|
verbs:
|
|
- get
|
|
- watch
|
|
- list
|
|
{{- end -}}
|