Enable Apparmor to fluentd
Change-Id: I21640c263cbf7871319d2710160e37a9dddf0eb2 Signed-off-by: diwakar thyagaraj <diwakar.chitoor.thyagaraj@att.com>
This commit is contained in:
parent
965fd345c3
commit
c0bec2c744
@ -100,6 +100,7 @@ spec:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
{{ dict "envAll" $envAll "podName" "fluentd" "containerNames" (list "fluentd" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
spec:
|
||||
{{ dict "envAll" $envAll "application" "fluentd" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||
serviceAccountName: {{ $rcControllerName | quote }}
|
||||
|
6
fluentd/values_overrides/apparmor.yaml
Normal file
6
fluentd/values_overrides/apparmor.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
pod:
|
||||
mandatory_access_control:
|
||||
type: apparmor
|
||||
fluentd:
|
||||
fluentd: runtime/default
|
||||
init: runtime/default
|
@ -18,6 +18,7 @@ set -xe
|
||||
|
||||
#NOTE: Lint and package chart
|
||||
make fluentd
|
||||
: ${OSH_INFRA_EXTRA_HELM_ARGS_FLUENTD:="$(./tools/deployment/common/get-values-overrides.sh fluentd)"}
|
||||
|
||||
tee /tmp/fluentd-daemonset.yaml << EOF
|
||||
endpoints:
|
||||
@ -298,7 +299,9 @@ conf:
|
||||
EOF
|
||||
helm upgrade --install fluentd-daemonset ./fluentd \
|
||||
--namespace=osh-infra \
|
||||
--values=/tmp/fluentd-daemonset.yaml
|
||||
--values=/tmp/fluentd-daemonset.yaml \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS} \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS_FLUENTD}
|
||||
|
||||
#NOTE: Wait for deploy
|
||||
./tools/deployment/common/wait-for-pods.sh osh-infra
|
||||
|
@ -19,6 +19,8 @@ set -xe
|
||||
#NOTE: Lint and package chart
|
||||
make fluentd
|
||||
|
||||
: ${OSH_INFRA_EXTRA_HELM_ARGS_FLUENTD:="$(./tools/deployment/common/get-values-overrides.sh fluentd)"}
|
||||
|
||||
if [ ! -d "/var/log/journal" ]; then
|
||||
tee /tmp/fluentd.yaml << EOF
|
||||
deployment:
|
||||
@ -42,7 +44,10 @@ pod:
|
||||
EOF
|
||||
helm upgrade --install fluentd ./fluentd \
|
||||
--namespace=osh-infra \
|
||||
--values=/tmp/fluentd.yaml
|
||||
--values=/tmp/fluentd.yaml \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS} \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS_FLUENTD}
|
||||
|
||||
else
|
||||
tee /tmp/fluentd.yaml << EOF
|
||||
deployment:
|
||||
@ -57,7 +62,10 @@ EOF
|
||||
fi
|
||||
helm upgrade --install fluentd ./fluentd \
|
||||
--namespace=osh-infra \
|
||||
--values=/tmp/fluentd.yaml
|
||||
--values=/tmp/fluentd.yaml \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS} \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS_FLUENTD}
|
||||
|
||||
|
||||
#NOTE: Wait for deploy
|
||||
./tools/deployment/common/wait-for-pods.sh osh-infra
|
||||
|
@ -342,6 +342,8 @@
|
||||
- ./tools/deployment/osh-infra-logging/030-radosgw-osh-infra.sh
|
||||
- ./tools/deployment/osh-infra-logging/040-ldap.sh
|
||||
- ./tools/deployment/osh-infra-logging/050-elasticsearch.sh
|
||||
- ./tools/deployment/osh-infra-logging/060-fluentd-daemonset.sh
|
||||
- ./tools/deployment/osh-infra-logging/065-fluentd-deployment.sh
|
||||
- ./tools/deployment/osh-infra-logging/070-kibana.sh
|
||||
|
||||
- job:
|
||||
|
Loading…
Reference in New Issue
Block a user