Enable Apparmor to nagios

Change-Id: I5927d32903cabd93b9d78c0c47994a94162deb1c
This commit is contained in:
dt241s@att.com 2020-02-26 03:11:03 +00:00 committed by diwakar thyagaraj
parent 07c62ddfd5
commit 920bddde64
4 changed files with 11 additions and 0 deletions

View File

@ -81,6 +81,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-etc.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "nagios" "containerNames" (list "apache-proxy" "nagios" "init" "define-nagios-hosts") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "monitoring" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
serviceAccountName: {{ $serviceAccountName }}

View File

@ -0,0 +1,8 @@
pod:
mandatory_access_control:
type: apparmor
nagios:
nagios: runtime/default
init: runtime/default
define-nagios-hosts: runtime/default
apache-proxy: runtime/default

View File

@ -0,0 +1 @@
../osh-infra-monitoring/120-nagios.sh

View File

@ -285,6 +285,7 @@
- ./tools/deployment/apparmor/080-grafana.sh
- ./tools/deployment/apparmor/085-rabbitmq.sh
- ./tools/deployment/apparmor/090-elasticsearch.sh
- ./tools/deployment/apparmor/095-nagios.sh
- ./tools/deployment/apparmor/100-fluentbit.sh
- ./tools/deployment/apparmor/110-fluentd-daemonset.sh
- ./tools/deployment/apparmor/120-openvswitch.sh