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:
labels:
{{ 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:
securityContext:
readOnlyRootFilesystem: true

View File

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