diff --git a/elastic-apm-server/templates/deployment.yaml b/elastic-apm-server/templates/deployment.yaml index e962726c0..be1f5bf83 100644 --- a/elastic-apm-server/templates/deployment.yaml +++ b/elastic-apm-server/templates/deployment.yaml @@ -66,6 +66,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" "elastic-apm-server" "containerNames" (list "elastic-apm-server" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: replicas: {{ .Values.pod.replicas.elastic_apm_server }} serviceAccountName: {{ $serviceAccountName }} diff --git a/elastic-apm-server/values_overrides/apparmor.yaml b/elastic-apm-server/values_overrides/apparmor.yaml new file mode 100644 index 000000000..70b0988d7 --- /dev/null +++ b/elastic-apm-server/values_overrides/apparmor.yaml @@ -0,0 +1,8 @@ +--- +pod: + mandatory_access_control: + type: apparmor + elastic-apm-server: + init: runtime/default + elastic-apm-server: runtime/default +...