aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-10-19 04:08:35 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-19 04:08:35 +0000
commita0717d420a2824347e5bcc673f368756fdceccd6 (patch)
treee0d8674bc49fc830f10af36f51e7f57d8ad55bca /vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml
parenta272d5104bde2d9eca6a9082ea122db273a981ed (diff)
parent87f249320b8bf55a4037a75f16170b287e3b6ee6 (diff)
Merge "Add edgex yaml to helm based template"
Diffstat (limited to 'vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml')
-rw-r--r--vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml b/vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml
new file mode 100644
index 00000000..c7f68798
--- /dev/null
+++ b/vagrant/tests/vnfs/edgex/helm/edgex/templates/data-service.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: {{ .Values.service.data.name }}
+ release: {{ .Release.Name }}
+ name: {{ .Values.service.data.name }}
+spec:
+ ports:
+ {{- range $key, $val := .Values.service.data.ports }}
+ - name: {{ $val.portName }}
+ port: {{ $val.port }}
+ targetPort: {{ $val.port }}
+ {{- end }}
+ selector:
+ app: edgex-core-data
+ release: {{ .Release.Name }}