change flexvolume plugin dir to /etc/kubernetes/volumeplugins
@@ -30,7 +30,7 @@ ExecStart=/usr/bin/docker run \
--volume=/etc/kubernetes/:/etc/kubernetes:ro \
--volume=/srv/kubernetes/:/srv/kubernetes:ro $DOCKER_OPTS \
--volume=/var/lib/waagent/ManagedIdentity-Settings:/var/lib/waagent/ManagedIdentity-Settings:ro \
- --volume=/usr/libexec/kubernetes/kubelet-plugins:/usr/libexec/kubernetes/kubelet-plugins:rw \
+ --volume=/etc/kubernetes/volumeplugins:/etc/kubernetes/volumeplugins:rw \
${KUBELET_IMAGE} \
/hyperkube kubelet \
--require-kubeconfig \
@@ -38,6 +38,7 @@ ExecStart=/usr/bin/docker run \
--node-labels="${KUBELET_NODE_LABELS}" \
--v=2 ${KUBELET_FEATURE_GATES} \
--non-masquerade-cidr=${KUBELET_NON_MASQUERADE_CIDR} \
+ --volume-plugin-dir=/etc/kubernetes/volumeplugins \
$KUBELET_CONFIG \
${KUBELET_REGISTER_NODE} ${KUBELET_REGISTER_WITH_TAINTS}
