Run nvidia-gpu device-plugin daemonset as an addon on GCE nodes that have nvidia GPUs attached.

This commit is contained in:
Rohit Agarwal
2017-10-30 15:50:08 -07:00
parent 9c7baf94dd
commit cf292754ba
3 changed files with 53 additions and 0 deletions

View File

@@ -873,6 +873,11 @@ EOF
if [ -n "${CLUSTER_SIGNING_DURATION:-}" ]; then
cat >>$file <<EOF
CLUSTER_SIGNING_DURATION: $(yaml-quote ${CLUSTER_SIGNING_DURATION})
EOF
fi
if [[ "${NODE_ACCELERATORS:-}" == *"type=nvidia"* ]]; then
cat >>$file <<EOF
ENABLE_NVIDIA_GPU_DEVICE_PLUGIN: $(yaml-quote "true")
EOF
fi