Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Adding fb & mb role
Browse files Browse the repository at this point in the history
  • Loading branch information
framsouza committed Nov 16, 2021
1 parent 9913e21 commit 5ae9a7c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions filebeat/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.managedServiceAccount }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "filebeat.serviceAccount" . }}-role
labels:
app: "{{ template "filebeat.fullname" . }}"
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs: ["get", "create", "update"]
{{- end -}}
14 changes: 14 additions & 0 deletions metricbeat/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.managedServiceAccount }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "metricbeat.serviceAccount" . }}-role
labels:
app: "{{ template "metricbeat.fullname" . }}"
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs: ["get", "create", "update"]
{{- end -}}

0 comments on commit 5ae9a7c

Please sign in to comment.