From e20242fbdb3de6a2a7e42f2026937a4a17c88d09 Mon Sep 17 00:00:00 2001 From: Rahul Khiyani Date: Wed, 27 Feb 2019 16:38:05 -0500 Subject: [PATCH] readOnlyFilesystem: true for nagios chart Fix for adding readOnlyFilesystem flag at pod level Change-Id: I1b70d0537a6561ca1e521d52b331b50bc7b2c3dc --- nagios/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nagios/templates/deployment.yaml b/nagios/templates/deployment.yaml index 6c16264a9..d0f3d35ec 100644 --- a/nagios/templates/deployment.yaml +++ b/nagios/templates/deployment.yaml @@ -81,6 +81,8 @@ spec: configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }} configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} spec: + securityContext: + readOnlyRootFilesystem: true serviceAccountName: {{ $serviceAccountName }} nodeSelector: {{ .Values.labels.nagios.node_selector_key }}: {{ .Values.labels.nagios.node_selector_value | quote }}