From 7a46114bad6b14b417576b082cb97ced423ff8e9 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Tue, 17 Oct 2023 17:23:28 +0300 Subject: [PATCH] deployment/helm: use DirectoryOrCreate for /var/run/nri. Use DirectoryOrCreate hostPath type for /var/run/nri. This should fix failures when NRI in the runtime is enabled by the config-manager init-container, so the /var/run/nri does not exist yet. Signed-off-by: Krisztian Litkey --- deployment/helm/memory-qos/templates/daemonset.yaml | 2 +- deployment/helm/memtierd/templates/daemonset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/helm/memory-qos/templates/daemonset.yaml b/deployment/helm/memory-qos/templates/daemonset.yaml index ea870fc5c..cc33c0d9e 100644 --- a/deployment/helm/memory-qos/templates/daemonset.yaml +++ b/deployment/helm/memory-qos/templates/daemonset.yaml @@ -58,7 +58,7 @@ spec: - name: nrisockets hostPath: path: /var/run/nri - type: Directory + type: DirectoryOrCreate {{- if .Values.nri.patchRuntimeConfig }} - name: containerd-config hostPath: diff --git a/deployment/helm/memtierd/templates/daemonset.yaml b/deployment/helm/memtierd/templates/daemonset.yaml index af4c66b27..66fae50b1 100644 --- a/deployment/helm/memtierd/templates/daemonset.yaml +++ b/deployment/helm/memtierd/templates/daemonset.yaml @@ -76,7 +76,7 @@ spec: - name: nrisockets hostPath: path: /var/run/nri - type: Directory + type: DirectoryOrCreate - name: host-bitmap hostPath: path: /sys/kernel/mm/page_idle/bitmap