logging: Fix cluster roles so it works with elastic-system

This commit is contained in:
Lauri Võsandi 2022-08-31 07:49:02 +03:00
parent 70e51f4542
commit 3106c75c24

View File

@ -139,7 +139,7 @@ spec:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: filebeat
name: logging-filebeat
subjects:
- kind: ServiceAccount
name: filebeat
@ -149,24 +149,6 @@ roleRef:
name: filebeat
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: filebeat
labels:
app: filebeat
rules:
- apiGroups:
- ""
resources:
- namespaces
- pods
- nodes
verbs:
- get
- watch
- list
---
apiVersion: v1
kind: ServiceAccount
metadata: