Memcached: Add apparmor profile to memcached init containers
Change-Id: I194e24da1bc5813179b582ad89bc9c41213fe4d0
This commit is contained in:
parent
a12ea0244e
commit
19fe6ca7ab
@ -39,7 +39,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
{{ dict "envAll" $envAll "podName" "memcached" "containerNames" (list "memcached") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
{{ dict "envAll" $envAll "podName" "memcached" "containerNames" (list "init" "memcached") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
labels:
|
||||
|
@ -41,7 +41,7 @@ spec:
|
||||
namespace: {{ .Values.endpoints.prometheus_memcached_exporter.namespace }}
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
{{ dict "envAll" $envAll "podName" "prometheus_memcached_exporter" "containerNames" (list "memcached-exporter") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
{{ dict "envAll" $envAll "podName" "prometheus_memcached_exporter" "containerNames" (list "init" "memcached-exporter") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
spec:
|
||||
{{ dict "envAll" $envAll "application" "memcached_exporter" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||
shareProcessNamespace: true
|
||||
|
@ -2,8 +2,10 @@ pod:
|
||||
mandatory_access_control:
|
||||
type: apparmor
|
||||
prometheus_memcached_exporter:
|
||||
init: runtime/default
|
||||
memcached-exporter: runtime/default
|
||||
memcached:
|
||||
init: runtime/default
|
||||
memcached: runtime/default
|
||||
|
||||
monitoring:
|
||||
|
Loading…
Reference in New Issue
Block a user