Commit 67c3ccf
committed
Parameterize kernel download and nvidia installer options.
This allows reusing the entrypoint by overriding how the kernel is downloaded and where to look for it.
As an alternative to GoogleCloudPlatform#91, you can use this for centos by setting the following extra env in the daemonset:
```
- name: KERNEL_SOURCE_DOWNLOAD_COMMAND
value: 'yum install -y kernel-devel-${KERNEL_VERSION}'
- name: NVIDIA_INSTALLER_EXTRA_ARGS
value: '--kernel-source-path=/usr/src/kernels/${KERNEL_VERSION}'
```
It is also possible to use this for airgapped install provided the kernel-devel package and .run file are available on the host:
```
- name: NVIDIA_DRIVER_DOWNLOAD_URL
value: file:///root/usr/src/NVIDIA-Linux-x86_64-384.130.run
- name: KERNEL_SOURCE_DOWNLOAD_COMMAND
value: 'echo'
- name: NVIDIA_INSTALLER_EXTRA_ARGS
value: '--kernel-source-path=/root/usr/src/kernels/${KERNEL_VERSION}'
```1 parent aaaeb04 commit 67c3ccf
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
| |||
0 commit comments