From 05b95b1d9e313c7d0a9de55be98befc6916c4b8f Mon Sep 17 00:00:00 2001 From: Srivahni Date: Mon, 8 Apr 2019 11:17:50 -0700 Subject: Use global nodePortPrefix for cAdvisor Issue-ID: ONAPARC-393 Change-Id: Id259b12505f899147b833f2b5cdb6ea66f6d560a Signed-off-by: Srivahni --- vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml') diff --git a/vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml b/vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml index f3432499..a8a932d1 100644 --- a/vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml +++ b/vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml @@ -28,7 +28,10 @@ spec: {{ include "rangeskipempty" .Values.cadvisor_prometheus.service.selector | indent 4 }} ports: - name: cadvisor-prometheus + {{- if eq .Values.cadvisor_prometheus.service.type "NodePort" }} + nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.cadvisor_prometheus.service.nodePort }} + {{- end }} protocol: TCP port: {{ .Values.cadvisor_prometheus.service.port }} - nodePort: {{ .Values.cadvisor_prometheus.service.nodePort }} + nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.cadvisor_prometheus.service.nodePort }} targetPort: {{ .Values.cadvisor_prometheus.service.targetPort }} -- cgit 1.2.3-korg