commit | 6622ff38127ddf364dccfe9a5d28424ed7197575 | [log] [tgz] |
---|---|---|
author | Woojoong Kim <woojoong@opennetworking.org> | Wed Feb 12 18:39:40 2020 -0800 |
committer | Woojoong Kim <woojoong@opennetworking.org> | Tue Feb 18 04:03:18 2020 +0000 |
tree | fae89fbf8258c6bbd867c341b8e9b262e49d7b62 | |
parent | 32f1980b14a2c867aa7a93ac8f801ad0357a1787 [diff] |
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