diff --git a/deploy/hostpath/csi-hostpath-plugin.yaml b/deploy/hostpath/csi-hostpath-plugin.yaml index d28862cc7..44214e1b3 100644 --- a/deploy/hostpath/csi-hostpath-plugin.yaml +++ b/deploy/hostpath/csi-hostpath-plugin.yaml @@ -23,13 +23,15 @@ spec: args: - --v=5 - --csi-address=/csi/csi.sock - - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-hostpath/csi.sock + - --kubelet-registration-path=$(DRIVER_REG_SOCK_DIR)/csi.sock env: - name: KUBE_NODE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName + - name: DRIVER_REG_SOCK_DIR + value: /var/lib/kubelet/plugins/csi-hostpath volumeMounts: - mountPath: /csi name: socket-dir