From e8abcd3dc9d022ffb2030bea660607176dcdb8de Mon Sep 17 00:00:00 2001 From: ArthurSens <arthursens2005@gmail.com> Date: Fri, 12 Mar 2021 20:51:15 +0000 Subject: [PATCH] Allow node-exporter to use hostPath volumes Signed-off-by: ArthurSens <arthursens2005@gmail.com> --- jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet b/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet index 38dc736c..46493c55 100644 --- a/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet +++ b/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet @@ -214,6 +214,9 @@ local restrictedPodSecurityPolicy = { }, ], readOnlyRootFilesystem: true, + volumes+: [ + 'hostPath', + ], }, }, }, -- GitLab