Add domain config on CDN-Rremote

Change-Id: If78482784661461c822e97daf1622d13952833ba
diff --git a/ott-services/cdn-remote/Chart.yaml b/ott-services/cdn-remote/Chart.yaml
index a0b3303..6c6c2fb 100644
--- a/ott-services/cdn-remote/Chart.yaml
+++ b/ott-services/cdn-remote/Chart.yaml
@@ -17,4 +17,4 @@
 appVersion: "1.0"
 description: A Helm chart for M-CORD CDN Services in Remote Edge
 name: cdn-remote
-version: 0.2.3
+version: 0.2.4
diff --git a/ott-services/cdn-remote/templates/_helpers.tpl b/ott-services/cdn-remote/templates/_helpers.tpl
index 13c5543..69921bd 100644
--- a/ott-services/cdn-remote/templates/_helpers.tpl
+++ b/ott-services/cdn-remote/templates/_helpers.tpl
@@ -41,7 +41,7 @@
 {{- define "cdn-remote.get_domain" -}}
 {{- $service := index . 0 -}}
 {{- $context := index . 1 -}}
-{{- printf "%s-0.%s.%s.%s" $service $service $context.Release.Namespace "svc.cluster.local" -}}
+{{- printf "%s.%s.svc.%s" $service $context.Release.Namespace $context.Values.config.clusterDomain -}}
 {{- end -}}
 
 {{/*
diff --git a/ott-services/cdn-remote/values.yaml b/ott-services/cdn-remote/values.yaml
index 963f766..c515371 100644
--- a/ott-services/cdn-remote/values.yaml
+++ b/ott-services/cdn-remote/values.yaml
@@ -47,6 +47,7 @@
       memory: 1Gi
 
 config:
+  clusterDomain: cluster.local
   videoArchive:
     replicas: 1
     q360p: