Enable Apparmor for fluentd

Change-Id: I6b759beff9fd3166a9868a4d71319836f272bc25
This commit is contained in:
dt241s@att.com
2020-02-26 01:15:08 +00:00
committed by diwakar thyagaraj
parent 4f30b1361e
commit a3110abd66
7 changed files with 232 additions and 32 deletions

View File

@@ -100,6 +100,7 @@ spec:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "fluentd" "containerNames" (list "fluentd") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "fluentd" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
serviceAccountName: {{ $rcControllerName | quote }}

View File

@@ -0,0 +1,11 @@
pod:
mandatory_access_control:
type: apparmor
fluentd:
fluentd: runtime/default
fluentd-daemonset-fluentd-exporter:
fluentd-exporter: runtime/default
init: runtime/default
monitoring:
prometheus:
enabled: true