expose prometheus node port

Change-Id: I05698ee1dc89bca5f5925807a7b66c8ed0a7a375
diff --git a/bess-upf/Chart.yaml b/bess-upf/Chart.yaml
index 2313b27..32f91c5 100644
--- a/bess-upf/Chart.yaml
+++ b/bess-upf/Chart.yaml
@@ -7,4 +7,4 @@
 name: bess-upf
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 0.1.2
+version: 0.1.3
diff --git a/bess-upf/templates/service-upf.yaml b/bess-upf/templates/service-upf.yaml
index 30d50c8..d364140 100644
--- a/bess-upf/templates/service-upf.yaml
+++ b/bess-upf/templates/service-upf.yaml
@@ -57,4 +57,9 @@
     port: 8000
   - name: prometheus-exporter
     protocol: TCP
-    port: 8080
+    port: {{ .Values.config.upf.prometheus.port }}
+{{- if eq .Values.service.type "NodePort" }}
+{{- if .Values.config.upf.prometheus.nodePort }}
+    nodePort: {{ .Values.config.upf.prometheus.nodePort }}
+{{- end }}
+{{- end }}
diff --git a/bess-upf/values.yaml b/bess-upf/values.yaml
index a40df91..fb10022 100644
--- a/bess-upf/values.yaml
+++ b/bess-upf/values.yaml
@@ -59,6 +59,10 @@
   upf:
     # Enable privileged when run from VM with sriov support
     privileged: false
+    prometheus:
+      port: 8080
+      # Provide nodePort when serviceType is NodePort
+      #nodePort: 30088
     hugepage:
       enabled: true
     sriov: