29 lines
593 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: filebeat
namespace: app-notifications
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: filebeat
namespace: app-notifications
rules:
- apiGroups: [""]
resources: ["pods", "namespaces"]
verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: filebeat
namespace: app-notifications
subjects:
- kind: ServiceAccount
name: filebeat
namespace: app-notifications
roleRef:
kind: Role
name: filebeat
apiGroup: rbac.authorization.k8s.io