aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml')
-rw-r--r--vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml b/vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml
new file mode 100644
index 00000000..783edef8
--- /dev/null
+++ b/vagrant/tests/vnfs/edgex/helm/edgex/charts/consul/templates/consul-service.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: {{ .Values.service.name }}
+ release: {{ .Release.Name }}
+ name: {{ .Values.service.name }}
+spec:
+ ports:
+ {{- range $k, $v := .Values.service.ports }}
+ - name: {{ $v.portName }}
+ port: {{ $v.port }}
+ targetPort: {{ $v.port }}
+ {{- end }}
+ selector:
+ app: edgex-core-consul
+ release: {{ .Release.Name }}