From 8191b6ad87bf7fe15a711880bcb3b7874527fd29 Mon Sep 17 00:00:00 2001 From: Nikhil-Ladha Date: Fri, 4 Oct 2024 12:24:54 +0530 Subject: [PATCH] nfs: expose csi metrics of sidecars Expose csi metrics of sidecars deployed by nfs driver Signed-off-by: Nikhil-Ladha --- .../kubernetes/csi-nfsplugin-provisioner.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/deploy/nfs/kubernetes/csi-nfsplugin-provisioner.yaml b/deploy/nfs/kubernetes/csi-nfsplugin-provisioner.yaml index 37e0fc4bad2d..c2e3963e87d7 100644 --- a/deploy/nfs/kubernetes/csi-nfsplugin-provisioner.yaml +++ b/deploy/nfs/kubernetes/csi-nfsplugin-provisioner.yaml @@ -82,10 +82,19 @@ spec: - "--retry-interval-start=500ms" - "--feature-gates=HonorPVReclaimPolicy=true" - "--prevent-volume-mode-conversion=true" + - "--http-endpoint=$(POD_IP):8090" env: - name: ADDRESS value: unix:///csi/csi-provisioner.sock + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP imagePullPolicy: "IfNotPresent" + ports: + - containerPort: 8090 + name: http-endpoint + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi @@ -99,10 +108,19 @@ spec: - "--retry-interval-start=500ms" - "--handle-volume-inuse-error=false" - "--feature-gates=RecoverVolumeExpansionFailure=true" + - "--http-endpoint=$(POD_IP):8091" env: - name: ADDRESS value: unix:///csi/csi-provisioner.sock + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP imagePullPolicy: "IfNotPresent" + ports: + - containerPort: 8091 + name: http-endpoint + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi @@ -113,10 +131,19 @@ spec: - "--v=1" - "--timeout=150s" - "--leader-election=true" + - "--http-endpoint=$(POD_IP):8092" env: - name: ADDRESS value: unix:///csi/csi-provisioner.sock + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP imagePullPolicy: "IfNotPresent" + ports: + - containerPort: 8092 + name: http-endpoint + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi @@ -136,6 +163,10 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + ports: + - containerPort: 8682 + name: http-metrics + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi