From e196b2ebfbcf61d6452e658dc830b159615edac1 Mon Sep 17 00:00:00 2001 From: Rohit Agarwal Date: Mon, 30 Oct 2017 15:45:06 -0700 Subject: [PATCH] Enable DevicePlugins feature on GCE clusters with accelerators attached. Instead of the old Accelerators feature that added alpha.kubernetes.io/nvidia-gpu resource, use the new DevicePlugins feature that adds vendor specific resources. (In case of nvidia it will add nvidia.com/gpu resource.) --- cluster/gce/config-default.sh | 2 +- cluster/gce/config-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index a88885ecb32..460b09c0069 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -182,7 +182,7 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}" FEATURE_GATES="${KUBE_FEATURE_GATES:-ExperimentalCriticalPodAnnotation=true}" if [[ ! -z "${NODE_ACCELERATORS}" ]]; then - FEATURE_GATES="${FEATURE_GATES},Accelerators=true" + FEATURE_GATES="${FEATURE_GATES},DevicePlugins=true" fi # Optional: Install cluster DNS. diff --git a/cluster/gce/config-test.sh b/cluster/gce/config-test.sh index 426ac4f3a92..94b36e69921 100755 --- a/cluster/gce/config-test.sh +++ b/cluster/gce/config-test.sh @@ -109,7 +109,7 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}" FEATURE_GATES="${KUBE_FEATURE_GATES:-ExperimentalCriticalPodAnnotation=true}" if [[ ! -z "${NODE_ACCELERATORS}" ]]; then - FEATURE_GATES="${FEATURE_GATES},Accelerators=true" + FEATURE_GATES="${FEATURE_GATES},DevicePlugins=true" fi TERMINATED_POD_GC_THRESHOLD=${TERMINATED_POD_GC_THRESHOLD:-100}