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

Commit

Permalink
[filebeat] add missing rolebing and cluster role rules (#1602)
Browse files Browse the repository at this point in the history
This commits add a rolebing and cluster role rules to match
https://github.com/elastic/beats/blob/main/deploy/kubernetes/filebeat-kubernetes.yaml
  • Loading branch information
jmlrt authored Mar 7, 2022
1 parent cf4782c commit 6714c16
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions filebeat/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.managedServiceAccount }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "filebeat.serviceAccount" . }}-role-binding
labels:
app: "{{ template "filebeat.fullname" . }}"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
roleRef:
kind: Role
name: {{ template "filebeat.serviceAccount" . }}-role
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ template "filebeat.serviceAccount" . }}
namespace: {{ .Release.Namespace }}
{{- end -}}
8 changes: 8 additions & 0 deletions filebeat/values.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ clusterRoleRules:
- get
- list
- watch
- apiGroups:
- "apps"
resources:
- replicasets
verbs:
- get
- list
- watch

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

0 comments on commit 6714c16

Please sign in to comment.