aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2019-05-07 14:55:18 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-07 14:55:18 +0000
commit3afda8117eea2124c7d22b3c50418a17fe412163 (patch)
treea7454b0a434b31020f629b8d31300492b1926b9b /vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml
parentefe1bac85828cff233167bdaaae7edd26b03e7a4 (diff)
parent05b95b1d9e313c7d0a9de55be98befc6916c4b8f (diff)
Merge "Use global nodePortPrefix for cAdvisor"
Diffstat (limited to 'vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml')
-rw-r--r--vnfs/DAaaS/collection/charts/cadvisor/templates/service.yaml5
1 files changed, 4 insertions, 1 deletions
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 }}