Packaged the script as a docker container stored in gcr.io/google-containers A daemonset deployment is included to make it easy to consume the installer A cluster e2e has been added to test the installation daemonset along with verifying installation by using a sample CUDA application. Node e2e for GPUs updated to avoid running on nodes without GPU devices. Signed-off-by: Vishnu kannan <vishnuk@google.com>
20 lines
1.3 KiB
YAML
20 lines
1.3 KiB
YAML
#cloud-config
|
|
|
|
runcmd:
|
|
- mount /tmp /tmp -o remount,exec,suid
|
|
- usermod -a -G docker jenkins
|
|
- mkdir -p /var/lib/kubelet
|
|
- mkdir -p /home/kubernetes/containerized_mounter/rootfs
|
|
- mount --bind /home/kubernetes/containerized_mounter/ /home/kubernetes/containerized_mounter/
|
|
- mount -o remount, exec /home/kubernetes/containerized_mounter/
|
|
- wget https://storage.googleapis.com/kubernetes-release/gci-mounter/mounter.tar -O /tmp/mounter.tar
|
|
- tar xvf /tmp/mounter.tar -C /home/kubernetes/containerized_mounter/rootfs
|
|
- mkdir -p /home/kubernetes/containerized_mounter/rootfs/var/lib/kubelet
|
|
- mount --rbind /var/lib/kubelet /home/kubernetes/containerized_mounter/rootfs/var/lib/kubelet
|
|
- mount --make-rshared /home/kubernetes/containerized_mounter/rootfs/var/lib/kubelet
|
|
- mount --bind /proc /home/kubernetes/containerized_mounter/rootfs/proc
|
|
- mount --bind /dev /home/kubernetes/containerized_mounter/rootfs/dev
|
|
- rm /tmp/mounter.tar
|
|
- modprobe configs
|
|
- docker run -v /dev:/dev -v /home/kubernetes/bin/nvidia:/rootfs/nvidia -v /etc/os-release:/rootfs/etc/os-release -v /proc/sysrq-trigger:/sysrq -e LAKITU_KERNEL_SHA1=2fdf6034a0fae9794d80e4d218e237771224ba8f -e BASE_DIR=/rootfs/nvidia --privileged gcr.io/google_containers/cos-nvidia-driver-install@sha256:ad83ede6e0c6d768bf7cf69a7dec972aa5e8f88778142ca46afd3286ad58cfc8
|