From ee2e97b62db842cae0b8ac666c16f87466774608 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 22 Dec 2021 08:09:27 +0100 Subject: [PATCH] deploy: add CSI-Addons endpoint Deployments place all sockets for communicating with CSI components in the shared `/csi` directory. The CSI-Addons socket was introduced recently, but not configured to be in the same location (by default placed in `/tmp`). Signed-off-by: Niels de Vos --- charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml | 3 +++ charts/ceph-csi-rbd/templates/provisioner-deployment.yaml | 3 +++ deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml | 3 +++ deploy/rbd/kubernetes/csi-rbdplugin.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml b/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml index 1ccc49d08..422ad0874 100644 --- a/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml +++ b/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml @@ -71,6 +71,7 @@ spec: - "--nodeserver=true" - "--pidlimit=-1" - "--endpoint=$(CSI_ENDPOINT)" + - "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)" - "--v={{ .Values.logLevel }}" - "--drivername=$(DRIVER_NAME)" {{- if .Values.topology.enabled }} @@ -92,6 +93,8 @@ spec: fieldPath: spec.nodeName - name: CSI_ENDPOINT value: "unix:///csi/{{ .Values.pluginSocketFile }}" + - name: CSI_ADDONS_ENDPOINT + value: "unix:///csi/csi-addons.sock" securityContext: privileged: true capabilities: diff --git a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml index 5c20f545b..86a04db23 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml @@ -137,6 +137,7 @@ spec: - "--controllerserver=true" - "--pidlimit=-1" - "--endpoint=$(CSI_ENDPOINT)" + - "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)" - "--v={{ .Values.logLevel }}" - "--drivername=$(DRIVER_NAME)" - "--rbdhardmaxclonedepth={{ .Values.provisioner.hardMaxCloneDepth }}" @@ -162,6 +163,8 @@ spec: fieldPath: spec.nodeName - name: CSI_ENDPOINT value: "unix:///csi/{{ .Values.provisionerSocketFile }}" + - name: CSI_ADDONS_ENDPOINT + value: "unix:///csi/csi-addons.sock" volumeMounts: - name: socket-dir mountPath: /csi diff --git a/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml index 034d5f814..d2fd8b231 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml @@ -118,6 +118,7 @@ spec: - "--type=rbd" - "--controllerserver=true" - "--endpoint=$(CSI_ENDPOINT)" + - "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)" - "--v=5" - "--drivername=rbd.csi.ceph.com" - "--pidlimit=-1" @@ -141,6 +142,8 @@ spec: # value: encryptionConfig - name: CSI_ENDPOINT value: unix:///csi/csi-provisioner.sock + - name: CSI_ADDONS_ENDPOINT + value: unix:///csi/csi-addons.sock imagePullPolicy: "IfNotPresent" volumeMounts: - name: socket-dir diff --git a/deploy/rbd/kubernetes/csi-rbdplugin.yaml b/deploy/rbd/kubernetes/csi-rbdplugin.yaml index 999444170..a0cb2adfd 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin.yaml @@ -58,6 +58,7 @@ spec: - "--type=rbd" - "--nodeserver=true" - "--endpoint=$(CSI_ENDPOINT)" + - "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)" - "--v=5" - "--drivername=rbd.csi.ceph.com" - "--enableprofiling=false" @@ -83,6 +84,8 @@ spec: # value: encryptionConfig - name: CSI_ENDPOINT value: unix:///csi/csi.sock + - name: CSI_ADDONS_ENDPOINT + value: unix:///csi/csi-addons.sock imagePullPolicy: "IfNotPresent" volumeMounts: - name: socket-dir