Skip to content

Commit

Permalink
Merge "Add default AppArmor profile to prometheus-openstack-exporter"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 15, 2019
2 parents 5198ae2 + f97f56f commit c4f6453
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions prometheus-openstack-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ spec:
metadata:
labels:
{{ tuple $envAll "prometheus-openstack-exporter" "exporter" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
{{ dict "envAll" $envAll "podName" "prometheus-openstack-exporter" "containerNames" (list "openstack-metrics-exporter") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
securityContext:
readOnlyRootFilesystem: true
Expand Down
5 changes: 4 additions & 1 deletion prometheus-openstack-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ labels:
node_selector_value: enabled

pod:
mandatory_access_control:
type: apparmor
openstack-metrics-exporter:
openstack-metrics-exporter: localhost/docker-default
user:
openstack_exporter:
uid: 65534
Expand Down Expand Up @@ -87,7 +91,6 @@ pod:
limits:
memory: "1024Mi"
cpu: "2000m"

dependencies:
dynamic:
common:
Expand Down

0 comments on commit c4f6453

Please sign in to comment.