From 6eb6315bb732f50d9fe2fe7a7bc27512a3485647 Mon Sep 17 00:00:00 2001 From: weizhichen Date: Tue, 5 Dec 2023 02:44:10 +0000 Subject: [PATCH] chore: support deploying aznfs-mount in deploy dir --- deploy/csi-blob-node.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/deploy/csi-blob-node.yaml b/deploy/csi-blob-node.yaml index af6190f30..1d7718064 100644 --- a/deploy/csi-blob-node.yaml +++ b/deploy/csi-blob-node.yaml @@ -130,6 +130,7 @@ spec: - "--nodeid=$(KUBE_NODE_NAME)" - "--user-agent-suffix=OSS-kubectl" - "--metrics-address=0.0.0.0:29635" + - "--enable-aznfs-mount=true" ports: - containerPort: 29633 name: healthz @@ -170,12 +171,36 @@ spec: name: azure-cred - mountPath: /mnt name: blob-cache + - mountPath: /opt/microsoft/aznfs/data + name: aznfs-data + - mountPath: /lib/modules + name: lib-modules + readOnly: true resources: limits: memory: 2100Mi requests: cpu: 10m memory: 20Mi + - name: aznfswatchdog + image: mcr.microsoft.com/k8s/csi/blob-csi:latest + command: + - "aznfswatchdog" + imagePullPolicy: IfNotPresent + securityContext: + privileged: true + resources: + limits: + memory: 100Mi + requests: + cpu: 10m + memory: 20Mi + volumeMounts: + - mountPath: /opt/microsoft/aznfs/data + name: aznfs-data + - mountPath: /var/lib/kubelet/ + mountPropagation: Bidirectional + name: mountpoint-dir volumes: - name: host-usr hostPath: @@ -206,4 +231,12 @@ spec: path: /mnt type: DirectoryOrCreate name: blob-cache + - hostPath: + path: /opt/microsoft/aznfs/data + type: DirectoryOrCreate + name: aznfs-data + - name: lib-modules + hostPath: + path: /lib/modules + type: DirectoryOrCreate ---