mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rebase: bump the k8s-dependencies group with 2 updates
Bumps the k8s-dependencies group with 2 updates: [k8s.io/klog/v2](https://github.com/kubernetes/klog) and [k8s.io/kubernetes](https://github.com/kubernetes/kubernetes). Updates `k8s.io/klog/v2` from 2.120.1 to 2.130.0 - [Release notes](https://github.com/kubernetes/klog/releases) - [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes/klog/compare/v2.120.1...v2.130.0) Updates `k8s.io/kubernetes` from 1.30.1 to 1.30.2 - [Release notes](https://github.com/kubernetes/kubernetes/releases) - [Commits](https://github.com/kubernetes/kubernetes/compare/v1.30.1...v1.30.2) --- updated-dependencies: - dependency-name: k8s.io/klog/v2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: k8s-dependencies - dependency-name: k8s.io/kubernetes dependency-type: direct:production update-type: version-update:semver-patch dependency-group: k8s-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
8dc0992f83
commit
ad32388419
@ -1,5 +1,5 @@
|
||||
# This DaemonSet was originally referenced from
|
||||
# https://github.com/GoogleCloudPlatform/container-engine-accelerators/blob/master/daemonset.yaml
|
||||
# https://github.com/GoogleCloudPlatform/container-engine-accelerators/blob/master/nvidia-driver-installer/cos/daemonset-preloaded.yaml
|
||||
|
||||
# The Dockerfile and other source for this daemonset are in
|
||||
# https://github.com/GoogleCloudPlatform/cos-gpu-installer
|
||||
@ -47,17 +47,43 @@ spec:
|
||||
- name: root-mount
|
||||
hostPath:
|
||||
path: /
|
||||
- name: cos-tools
|
||||
hostPath:
|
||||
path: /var/lib/cos-tools
|
||||
- name: nvidia-config
|
||||
hostPath:
|
||||
path: /etc/nvidia
|
||||
initContainers:
|
||||
- image: "ubuntu"
|
||||
name: bind-mount-install-dir
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
- nsenter
|
||||
- -at
|
||||
- '1'
|
||||
- --
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
if mountpoint -q /var/lib/nvidia; then
|
||||
echo "The mountpoint /var/lib/nvidia exists."
|
||||
else
|
||||
echo "The mountpoint /var/lib/nvidia does not exist. Creating directories /home/kubernetes/bin/nvidia and /var/lib/nvidia and bind mount."
|
||||
mkdir -p /var/lib/nvidia /home/kubernetes/bin/nvidia
|
||||
mount --bind /home/kubernetes/bin/nvidia /var/lib/nvidia
|
||||
echo "Done creating bind mounts"
|
||||
fi
|
||||
# The COS GPU installer image version may be dependent on the version of COS being used.
|
||||
# Refer to details about the installer in https://cos.googlesource.com/cos/tools/+/refs/heads/master/src/cmd/cos_gpu_installer/
|
||||
# and the COS release notes (https://cloud.google.com/container-optimized-os/docs/release-notes) to determine version COS GPU installer for a given version of COS.
|
||||
|
||||
# Maps to gcr.io/cos-cloud/cos-gpu-installer:v2.1.10 - suitable for COS M109 as per https://cloud.google.com/container-optimized-os/docs/release-notes
|
||||
- image: gcr.io/cos-cloud/cos-gpu-installer:v2.1.10
|
||||
- image: "gcr.io/cos-cloud/cos-gpu-installer:v2.1.10"
|
||||
name: nvidia-driver-installer
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0.15
|
||||
cpu: 150m
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
@ -71,6 +97,10 @@ spec:
|
||||
value: /etc/vulkan/icd.d
|
||||
- name: ROOT_MOUNT_DIR
|
||||
value: /root
|
||||
- name: COS_TOOLS_DIR_HOST
|
||||
value: /var/lib/cos-tools
|
||||
- name: COS_TOOLS_DIR_CONTAINER
|
||||
value: /build/cos-tools
|
||||
volumeMounts:
|
||||
- name: nvidia-install-dir-host
|
||||
mountPath: /usr/local/nvidia
|
||||
@ -80,6 +110,37 @@ spec:
|
||||
mountPath: /dev
|
||||
- name: root-mount
|
||||
mountPath: /root
|
||||
- name: cos-tools
|
||||
mountPath: /build/cos-tools
|
||||
command:
|
||||
- bash
|
||||
- -c
|
||||
- |
|
||||
echo "Checking for existing GPU driver modules"
|
||||
if lsmod | grep nvidia; then
|
||||
echo "GPU driver is already installed, the installed version may or may not be the driver version being tried to install, skipping installation"
|
||||
exit 0
|
||||
else
|
||||
echo "No GPU driver module detected, installing now"
|
||||
/cos-gpu-installer install
|
||||
fi
|
||||
- image: "gcr.io/gke-release/nvidia-partition-gpu@sha256:e226275da6c45816959fe43cde907ee9a85c6a2aa8a429418a4cadef8ecdb86a"
|
||||
name: partition-gpus
|
||||
env:
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: /usr/local/nvidia/lib64
|
||||
resources:
|
||||
requests:
|
||||
cpu: 150m
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- name: nvidia-install-dir-host
|
||||
mountPath: /usr/local/nvidia
|
||||
- name: dev
|
||||
mountPath: /dev
|
||||
- name: nvidia-config
|
||||
mountPath: /etc/nvidia
|
||||
containers:
|
||||
- image: "registry.k8s.io/pause:3.9"
|
||||
name: pause
|
||||
|
Reference in New Issue
Block a user