Merge "Add default AppArmor profile to prometheus-process-exporter"

This commit is contained in:
Zuul 2019-03-20 19:21:46 +00:00 committed by Gerrit Code Review
commit 790d421c9a
2 changed files with 6 additions and 1 deletions

View File

@ -50,6 +50,8 @@ spec:
metadata: metadata:
labels: labels:
{{ tuple $envAll "process_exporter" "metrics" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} {{ tuple $envAll "process_exporter" "metrics" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
{{ dict "envAll" $envAll "podName" "process-exporter" "containerNames" (list "process-exporter") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec: spec:
securityContext: securityContext:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true

View File

@ -37,6 +37,10 @@ labels:
node_selector_value: enabled node_selector_value: enabled
pod: pod:
mandatory_access_control:
type: apparmor
process-exporter:
process-exporter: localhost/docker-default
affinity: affinity:
anti: anti:
type: type:
@ -87,7 +91,6 @@ pod:
operator: Exists operator: Exists
- key: node-role.kubernetes.io/node - key: node-role.kubernetes.io/node
operator: Exists operator: Exists
dependencies: dependencies:
dynamic: dynamic:
common: common: