Ingress: Add apparmor profile to ingress init container

Change-Id: I2217a8ab8c76b8f6a14f477c3159e4133ef186f9
This commit is contained in:
KHIYANI, RAHUL (rk0850) 2020-04-30 09:57:35 -05:00 committed by diwakar thyagaraj
parent eabe320a99
commit 8617c8c1e0
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ spec:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-conf.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "ingress-error-pages" "containerNames" (list "ingress-error-pages") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
{{ dict "envAll" $envAll "podName" "ingress-error-pages" "containerNames" (list "init" "ingress-error-pages") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "error_pages" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
shareProcessNamespace: true

View File

@ -2,7 +2,8 @@ pod:
mandatory_access_control:
type: apparmor
ingress-error-pages:
init: runtime/default
ingress-error-pages: runtime/default
ingress-server:
ingress: runtime/default
ingress-vip: runtime/default
ingress-vip: runtime/default