Merge "Add Apparmor to Grafana"
This commit is contained in:
commit
46c3b737c5
@ -41,9 +41,9 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
{{ tuple $envAll "grafana" "dashboard" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "grafana" "dashboard" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
|
{{ dict "envAll" $envAll "podName" "grafana" "containerNames" (list "grafana") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||||
spec:
|
spec:
|
||||||
{{ dict "envAll" $envAll "application" "dashboard" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
{{ dict "envAll" $envAll "application" "dashboard" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
|
@ -31,6 +31,10 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{ tuple $envAll "grafana" "db-init" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "grafana" "db-init" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||||
|
annotations:
|
||||||
|
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" "grafana-db-init-session" "containerNames" (list "grafana-db-init-session") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||||
spec:
|
spec:
|
||||||
{{ dict "envAll" $envAll "application" "db_init" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
{{ dict "envAll" $envAll "application" "db_init" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
|
7
grafana/values_overrides/apparmor.yaml
Normal file
7
grafana/values_overrides/apparmor.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
pod:
|
||||||
|
mandatory_access_control:
|
||||||
|
type: apparmor
|
||||||
|
grafana:
|
||||||
|
grafana: runtime/default
|
||||||
|
grafana-db-init-session:
|
||||||
|
grafana-db-init-session: runtime/default
|
1
tools/deployment/apparmor/080-grafana.sh
Symbolic link
1
tools/deployment/apparmor/080-grafana.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../osh-infra-monitoring/110-grafana.sh
|
@ -19,7 +19,7 @@ set -xe
|
|||||||
#NOTE: Lint and package chart
|
#NOTE: Lint and package chart
|
||||||
make grafana
|
make grafana
|
||||||
|
|
||||||
FEATURE_GATES="calico,ceph,containers,coredns,elasticsearch,kubernetes,nginx,nodes,openstack,prometheus"
|
FEATURE_GATES="calico,ceph,containers,coredns,elasticsearch,kubernetes,nginx,nodes,openstack,prometheus,apparmor"
|
||||||
: ${OSH_INFRA_EXTRA_HELM_ARGS_GRAFANA:="$({ ./tools/deployment/common/get-values-overrides.sh grafana;} 2> /dev/null)"}
|
: ${OSH_INFRA_EXTRA_HELM_ARGS_GRAFANA:="$({ ./tools/deployment/common/get-values-overrides.sh grafana;} 2> /dev/null)"}
|
||||||
|
|
||||||
#NOTE: Deploy command
|
#NOTE: Deploy command
|
||||||
|
@ -281,7 +281,8 @@
|
|||||||
- ./tools/deployment/apparmor/055-prometheus.sh
|
- ./tools/deployment/apparmor/055-prometheus.sh
|
||||||
- ./tools/deployment/apparmor/060-prometheus-node-exporter.sh
|
- ./tools/deployment/apparmor/060-prometheus-node-exporter.sh
|
||||||
- ./tools/deployment/apparmor/070-prometheus-openstack-exporter.sh
|
- ./tools/deployment/apparmor/070-prometheus-openstack-exporter.sh
|
||||||
- ./tools/deployment/apparmor/080-prometheus-process-exporter.sh
|
- ./tools/deployment/apparmor/075-prometheus-process-exporter.sh
|
||||||
|
- ./tools/deployment/apparmor/080-grafana.sh
|
||||||
- ./tools/deployment/apparmor/085-rabbitmq.sh
|
- ./tools/deployment/apparmor/085-rabbitmq.sh
|
||||||
- ./tools/deployment/apparmor/090-elasticsearch.sh
|
- ./tools/deployment/apparmor/090-elasticsearch.sh
|
||||||
- ./tools/deployment/apparmor/100-fluentbit.sh
|
- ./tools/deployment/apparmor/100-fluentbit.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user