From c069d2667e2c5ab5349567db93e36429f4c29c1d Mon Sep 17 00:00:00 2001 From: meghana_gm Date: Tue, 24 Sep 2024 17:11:29 +0530 Subject: [PATCH] Enables resiliency module for powerflex driver in the minimal manifest file Signed-off-by: meghana_gm --- .../v1.11.0/container-powerflex-controller.yaml | 11 +++++++++++ .../resiliency/v1.11.0/container-powerflex-node.yaml | 12 ++++++++++++ samples/minimal-samples/powerflex.yaml | 8 ++++++++ 3 files changed, 31 insertions(+) diff --git a/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-controller.yaml b/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-controller.yaml index e2fea444d..9e7bd8188 100644 --- a/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-controller.yaml +++ b/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-controller.yaml @@ -16,6 +16,17 @@ name: podmon image: dellemc/podmon:v1.11.0 imagePullPolicy: IfNotPresent +args: + - "--labelvalue=csi-vxflexos" + - "--skipArrayConnectionValidation=false" + - "--driverPodLabelValue=dell-storage" + - "--ignoreVolumelessPods=false" + - "--arrayConnectivityPollRate=5" + - "--arrayConnectivityConnectionLossThreshold=3" + # Below 3 args should not be modified. + - "--csisock=unix:/var/run/csi/csi.sock" + - "--mode=controller" + - "--driver-config-params=/vxflexos-config-params/driver-config-params.yaml" env: - name: MY_NODE_NAME valueFrom: diff --git a/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-node.yaml b/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-node.yaml index aeb1391b1..0690f100b 100644 --- a/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-node.yaml +++ b/operatorconfig/moduleconfig/resiliency/v1.11.0/container-powerflex-node.yaml @@ -21,7 +21,19 @@ securityContext: capabilities: add: ["SYS_ADMIN"] allowPrivilegeEscalation: true +args: + - "--labelvalue=csi-vxflexos" + - "--leaderelection=false" + - "--driverPodLabelValue=dell-storage" + - "--ignoreVolumelessPods=false" + - "--arrayConnectivityPollRate=5" + # Below 3 args should not be modified. + - "--csisock=unix:/var/lib/kubelet/plugins/vxflexos.emc.dell.com/csi_sock" + - "--mode=node" + - "--driver-config-params=/vxflexos-config-params/driver-config-params.yaml" env: + - name: "X_CSI_PODMON_API_PORT" + value: "8083" - name: KUBE_NODE_NAME valueFrom: fieldRef: diff --git a/samples/minimal-samples/powerflex.yaml b/samples/minimal-samples/powerflex.yaml index c6ff9003b..c5ba6b33a 100644 --- a/samples/minimal-samples/powerflex.yaml +++ b/samples/minimal-samples/powerflex.yaml @@ -7,3 +7,11 @@ spec: driver: csiDriverType: "powerflex" configVersion: v2.11.0 + modules: + - name: resiliency + # enabled: Enable/Disable Resiliency feature + # Allowed values: + # true: enable Resiliency feature(deploy podmon sidecar) + # false: disable Resiliency feature(do not deploy podmon sidecar) + # Default value: false + enabled: false