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 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: filebeat name: logging-filebeat
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: filebeat name: filebeat
@ -149,24 +149,6 @@ roleRef:
name: filebeat name: filebeat
apiGroup: rbac.authorization.k8s.io 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 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata: