From 4ea5ba252014fcfa3d3ca7f5b5e510febbd9320b Mon Sep 17 00:00:00 2001 From: alikdell <52920355+alikdell@users.noreply.github.com> Date: Thu, 19 May 2022 07:15:34 -0400 Subject: [PATCH] Add label to driver node pod for Resiliency protection (#89) --- helm/csi-unity/templates/node.yaml | 4 +++- helm/csi-unity/values.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/helm/csi-unity/templates/node.yaml b/helm/csi-unity/templates/node.yaml index 3bd6e3fb..d013812e 100644 --- a/helm/csi-unity/templates/node.yaml +++ b/helm/csi-unity/templates/node.yaml @@ -72,6 +72,9 @@ spec: metadata: labels: app: {{ .Release.Name }}-node +{{- if .Values.podmon.enabled }} + driver.dellemc.com: dell-storage +{{- end }} spec: serviceAccountName: {{ .Release.Name }}-node {{- if .Values.node.nodeSelector }} @@ -129,7 +132,6 @@ spec: mountPropagation: "Bidirectional" - name: dev mountPath: /dev - mountPropagation: "Bidirectional" - name: usr-bin mountPath: /usr-bin - name: var-run diff --git a/helm/csi-unity/values.yaml b/helm/csi-unity/values.yaml index 2c7402a3..2780edad 100644 --- a/helm/csi-unity/values.yaml +++ b/helm/csi-unity/values.yaml @@ -149,7 +149,7 @@ podmon: # allowed values - string # default value : None # Example : "podman:latest", "pod:latest" - image: dellemc/podmon:v1.1.0 + image: dellemc/podmon:v1.2.0 # controller: # args: # - "--csisock=unix:/var/run/csi/csi.sock" @@ -158,6 +158,7 @@ podmon: # - "--mode=controller" # - "--skipArrayConnectionValidation=false" # - "--driver-config-params=/unity-config/driver-config-params.yaml" +# - "--driverPodLabelValue=dell-storage" # node: # args: # - "--csisock=unix:/var/lib/kubelet/plugins/unity.emc.dell.com/csi_sock" @@ -166,6 +167,7 @@ podmon: # - "--mode=node" # - "--leaderelection=false" # - "--driver-config-params=/unity-config/driver-config-params.yaml" +# - "--driverPodLabelValue=dell-storage" ### The below parameters have been discontinued for configuration from secret.yaml and will have to be configured only in values.yaml