Add flag in CDN-Local to enable or disable NodePorts

Change-Id: I2265119967349902585b6f873fb47d56a7186696
diff --git a/ott-services/cdn-local/Chart.yaml b/ott-services/cdn-local/Chart.yaml
index 05a457d..98dfe52 100644
--- a/ott-services/cdn-local/Chart.yaml
+++ b/ott-services/cdn-local/Chart.yaml
@@ -17,4 +17,4 @@
 description: A Helm chart for M-CORD CDN Services in Local Edge
 icon: https://guide.opencord.org/logos/cord.svg
 name: cdn-local
-version: 0.2.4
+version: 0.2.5
diff --git a/ott-services/cdn-local/templates/service-nginx.yaml b/ott-services/cdn-local/templates/service-nginx.yaml
index 448f1ae..08969e9 100644
--- a/ott-services/cdn-local/templates/service-nginx.yaml
+++ b/ott-services/cdn-local/templates/service-nginx.yaml
@@ -32,6 +32,7 @@
     port: {{ .Values.config.nginx.ports.rtmp }}
     protocol: TCP
 
+{{- if .Values.config.nginx.ports.nodePorts.enabled }}
 ---
 apiVersion: v1
 kind: Service
@@ -52,3 +53,4 @@
     port: {{ .Values.config.nginx.ports.rtmp }}
     protocol: TCP
     nodePort: {{ .Values.config.nginx.ports.nodePorts.rtmp }}
+{{- end }}
\ No newline at end of file