Add Application Armor to Elastic FileBeat

Change-Id: Ifa6eb48e56e1a92d090ea9dbaaaf5890f95ae032
This commit is contained in:
dt241s@att.com 2020-08-02 03:26:38 +00:00 committed by diwakar thyagaraj
parent 817efe966c
commit 25d03950b0
2 changed files with 9 additions and 0 deletions

View File

@ -81,6 +81,7 @@ spec:
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "filebeat" "containerNames" (list "filebeat" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
{{ if $envAll.Values.pod.tolerations.filebeat.enabled }}

View File

@ -0,0 +1,8 @@
---
pod:
mandatory_access_control:
type: apparmor
filebeat:
filebeat: runtime/default
init: runtime/default
...