Add Application Armor to elastic-apm

Change-Id: Id1e6b70db03f71b87539f6e3e466f39d8440b773
This commit is contained in:
dt241s@att.com 2020-08-02 03:17:31 +00:00 committed by diwakar thyagaraj
parent 817efe966c
commit 564cada4ad
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,7 @@ spec:
annotations: annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "elastic-apm-server" "containerNames" (list "elastic-apm-server" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec: spec:
replicas: {{ .Values.pod.replicas.elastic_apm_server }} replicas: {{ .Values.pod.replicas.elastic_apm_server }}
serviceAccountName: {{ $serviceAccountName }} serviceAccountName: {{ $serviceAccountName }}

View File

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