From 33f2aa1c4a6178a1ec68a917ae651c62b9ce9b5d Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Sep 2024 02:41:24 +0100 Subject: [PATCH] maybe this will fix it? --- apps/production/monitoring/kube-prometheus-stack.yaml | 8 +++++++- apps/production/monitoring/namespace.yaml | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/production/monitoring/kube-prometheus-stack.yaml b/apps/production/monitoring/kube-prometheus-stack.yaml index 8fef6ec..4d029d9 100644 --- a/apps/production/monitoring/kube-prometheus-stack.yaml +++ b/apps/production/monitoring/kube-prometheus-stack.yaml @@ -24,4 +24,10 @@ spec: name: monitoring namespace: monitoring interval: 12h - #values: {} + values: + nodeExporter: + hostNetwork: false + hostPID: false + service: + port: 9100 # Use a different port if needed + diff --git a/apps/production/monitoring/namespace.yaml b/apps/production/monitoring/namespace.yaml index ff7ae1b..84f1b4b 100644 --- a/apps/production/monitoring/namespace.yaml +++ b/apps/production/monitoring/namespace.yaml @@ -3,3 +3,6 @@ apiVersion: v1 kind: Namespace metadata: name: monitoring + labels: + pod-security.kubernetes.io/enforce: privileged + pod-security.kubernetes.io/enforce-version: latest