diff --git a/deploy/kubernetes/deployment.yaml b/deploy/kubernetes/deployment.yaml index 0ac4ce8e2..fa9459653 100644 --- a/deploy/kubernetes/deployment.yaml +++ b/deploy/kubernetes/deployment.yaml @@ -38,17 +38,12 @@ spec: - "--v=5" - "--csi-address=$(ADDRESS)" - "--leader-election" - - "--leader-election-namespace=$(MY_NAMESPACE)" - - "--leader-election-identity=$(MY_NAME)" + - "--leader-election-type=leases" env: - name: MY_NAME valueFrom: fieldRef: fieldPath: metadata.name - - name: MY_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/mock.socket imagePullPolicy: "IfNotPresent"