Adding default apparmor profile to mariadb complete pods
Change-Id: I9a62b36c8cda0a6eaf8ac6b40f138b2706c63d15
This commit is contained in:
parent
304dc14ff8
commit
d50371be9b
@ -35,6 +35,8 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "mariadb-backup" "backup" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
annotations:
|
||||
{{ dict "envAll" $envAll "podName" "mariadb-backup" "containerNames" (list "mariadb-backup") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
|
@ -30,6 +30,9 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "prometheus-mysql-exporter" "create-sql-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
{{ dict "envAll" $envAll "podName" "prometheus-mysql-exporter" "containerNames" (list "exporter-create-sql-user") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
spec:
|
||||
shareProcessNamespace: true
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
|
@ -30,6 +30,7 @@ metadata:
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
{{ dict "envAll" $envAll "podName" "mariadb-test" "containerNames" (list "mariadb-mariadb-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
|
||||
spec:
|
||||
shareProcessNamespace: true
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
|
@ -7,8 +7,13 @@ pod:
|
||||
ingress: runtime/default
|
||||
mariadb-server:
|
||||
mariadb: runtime/default
|
||||
mariadb-backup:
|
||||
mariadb-backup: runtime/default
|
||||
mariadb-test:
|
||||
mariadb-mariadb-test: runtime/default
|
||||
prometheus-mysql-exporter:
|
||||
mysql-exporter: runtime/default
|
||||
exporter-create-sql-user: runtime/default
|
||||
|
||||
monitoring:
|
||||
prometheus:
|
||||
|
@ -33,3 +33,6 @@ helm upgrade --install mariadb ./mariadb \
|
||||
|
||||
#NOTE: Validate Deployment info
|
||||
helm status mariadb
|
||||
|
||||
#NOTE: Validate the deployment
|
||||
helm test mariadb
|
||||
|
Loading…
Reference in New Issue
Block a user