From 91c22f521b9469812286bc557393991c4feafb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deividas=20Bur=C5=A1kaitis?= Date: Fri, 4 Feb 2022 13:18:59 +0200 Subject: [PATCH] helm: add port sections to helm templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to show what ports containers are exposing add port sections to nodeplugin and provisioner helm templates Signed-off-by: Deividas Burškaitis --- charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml | 4 ++++ charts/ceph-csi-cephfs/templates/nodeplugin-psp.yaml | 3 +++ charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml | 4 ++++ charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml | 4 ++++ charts/ceph-csi-rbd/templates/nodeplugin-psp.yaml | 3 +++ charts/ceph-csi-rbd/templates/provisioner-deployment.yaml | 4 ++++ 6 files changed, 22 insertions(+) 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