Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -}}
4 changes: 4 additions & 0 deletions metricbeat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ clusterRoleRules:
resources:
- nodes/stats
verbs: ["get"]
- apiGroups: ["coordination.k8s.io"]
resources:
- leases
verbs: ["create", "get", "list", "update"]
Comment on lines +262 to +265
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should also be added to

clusterRoleRules:
- apiGroups:
- ""
resources:
- namespaces
- nodes
- pods
verbs:
- get
- list
- watch


podAnnotations: {}
# iam.amazonaws.com/role: es-cluster
Expand Down