From 5139bb580ac3688640e570803c10b6c65b97141f Mon Sep 17 00:00:00 2001 From: Rohit Agarwal Date: Thu, 24 May 2018 17:53:07 -0700 Subject: [PATCH] Update nvidia-gpu-device-plugin to apps/v1 and use RollingUpdate updateStrategy. Even though RollingUpdate is the default updateStrategy, we need to specify it explicitly here because otherwise updating from extensions/v1beta1 to apps/v1 doesn't change the updateStrategy. --- cluster/addons/device-plugins/nvidia-gpu/daemonset.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cluster/addons/device-plugins/nvidia-gpu/daemonset.yaml b/cluster/addons/device-plugins/nvidia-gpu/daemonset.yaml index f6e73cfdee5..7616b8e2589 100644 --- a/cluster/addons/device-plugins/nvidia-gpu/daemonset.yaml +++ b/cluster/addons/device-plugins/nvidia-gpu/daemonset.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: DaemonSet metadata: name: nvidia-gpu-device-plugin @@ -7,6 +7,9 @@ metadata: k8s-app: nvidia-gpu-device-plugin addonmanager.kubernetes.io/mode: Reconcile spec: + selector: + matchLabels: + k8s-app: nvidia-gpu-device-plugin template: metadata: labels: @@ -52,3 +55,5 @@ spec: mountPath: /device-plugin - name: dev mountPath: /dev + updateStrategy: + type: RollingUpdate