Skip to content

Commit

Permalink
Mount /var/log and /dev/log into vgpu-manager so that any system logs…
Browse files Browse the repository at this point in the history
… are available on the host

Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
  • Loading branch information
cdesiniotis committed May 19, 2023
1 parent d23920b commit 4edef0f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions assets/state-vgpu-manager/0500_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ spec:
mountPath: /dev/vfio
- name: cgroup
mountPath: /sys/fs/cgroup
- name: var-log
mountPath: /var/log
- name: dev-log
mountPath: /dev/log
# Only kept when OpenShift DriverToolkit side-car is enabled.
- image: "FILLED BY THE OPERATOR"
imagePullPolicy: IfNotPresent
Expand All @@ -104,6 +108,10 @@ spec:
- name: run-nvidia
mountPath: /run/nvidia
mountPropagation: Bidirectional
- name: var-log
mountPath: /var/log
- name: dev-log
mountPath: /dev/log
volumes:
- name: run-nvidia
hostPath:
Expand All @@ -127,3 +135,10 @@ spec:
hostPath:
path: /sys
type: Directory
- name: var-log
hostPath:
path: /var/log
type: Directory
- name: dev-log
hostPath:
path: /dev/log

0 comments on commit 4edef0f

Please sign in to comment.