Skip to content

Commit

Permalink
[release-0.2] always use DirectoryOrCreate for /var/run/nri
Browse files Browse the repository at this point in the history
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.

Co-authored-by: Krisztian Litkey <[email protected]>
Signed-off-by: Feruzjon Muyassarov <[email protected]>
  • Loading branch information
fmuyassarov and klihub committed Oct 18, 2023
1 parent 320e5d9 commit 6c72153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/helm/memory-qos/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
- name: nrisockets
hostPath:
path: /var/run/nri
type: Directory
type: DirectoryOrCreate
{{- if .Values.nri.patchRuntimeConfig }}
- name: containerd-config
hostPath:
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/memtierd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c72153

Please sign in to comment.