From b7d7ba02710ac56df23a0de1894ab192a781d8f1 Mon Sep 17 00:00:00 2001 From: ArthurSens <arthursens2005@gmail.com> Date: Thu, 18 Mar 2021 20:56:47 +0000 Subject: [PATCH] Use node-exporter defaults.port on psp Signed-off-by: ArthurSens <arthursens2005@gmail.com> --- jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet b/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet index 888d553e..65908f8c 100644 --- a/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet +++ b/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet @@ -209,8 +209,8 @@ local restrictedPodSecurityPolicy = { hostPID: true, hostPorts: [ { - max: 9100, - min: 9100, + max: $.nodeExporter.config.port, + min: $.nodeExporter.config.port, }, ], readOnlyRootFilesystem: true, -- GitLab