diff --git a/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml b/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml index 8a4c43c05..ebcd242d1 100644 --- a/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml +++ b/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml @@ -146,6 +146,10 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + ports: + - containerPort: {{ .Values.nodeplugin.httpMetrics.containerPort }} + name: metrics + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi diff --git a/charts/ceph-csi-cephfs/templates/nodeplugin-psp.yaml b/charts/ceph-csi-cephfs/templates/nodeplugin-psp.yaml index d4ed417a9..884d4fbee 100644 --- a/charts/ceph-csi-cephfs/templates/nodeplugin-psp.yaml +++ b/charts/ceph-csi-cephfs/templates/nodeplugin-psp.yaml @@ -17,6 +17,9 @@ spec: rule: RunAsAny privileged: true hostNetwork: true + hostPorts: + - min: {{ .Values.nodeplugin.httpMetrics.containerPort }} + max: {{ .Values.nodeplugin.httpMetrics.containerPort }} hostPID: true runAsUser: rule: RunAsAny diff --git a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml index cf1ab09e5..7266f5ab4 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml @@ -192,6 +192,10 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + ports: + - containerPort: {{ .Values.provisioner.httpMetrics.containerPort }} + name: metrics + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi diff --git a/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml b/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml index 422ad0874..eaa8fc5ac 100644 --- a/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml +++ b/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml @@ -153,6 +153,10 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + ports: + - containerPort: {{ .Values.nodeplugin.httpMetrics.containerPort }} + name: metrics + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi diff --git a/charts/ceph-csi-rbd/templates/nodeplugin-psp.yaml b/charts/ceph-csi-rbd/templates/nodeplugin-psp.yaml index e4c01cd80..45e5af85d 100644 --- a/charts/ceph-csi-rbd/templates/nodeplugin-psp.yaml +++ b/charts/ceph-csi-rbd/templates/nodeplugin-psp.yaml @@ -17,6 +17,9 @@ spec: rule: RunAsAny privileged: true hostNetwork: true + hostPorts: + - min: {{ .Values.nodeplugin.httpMetrics.containerPort }} + max: {{ .Values.nodeplugin.httpMetrics.containerPort }} hostPID: true runAsUser: rule: RunAsAny diff --git a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml index 86a04db23..6861b2b4c 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml @@ -229,6 +229,10 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + ports: + - containerPort: {{ .Values.provisioner.httpMetrics.containerPort }} + name: metrics + protocol: TCP volumeMounts: - name: socket-dir mountPath: /csi