Refactor FIXMEs in vFW_CDS_CNF use case
[demo.git] / heat / vFW_CNF_CDS / templates / helm / vpkg / templates / service.yaml
diff --git a/heat/vFW_CNF_CDS/templates/helm/vpkg/templates/service.yaml b/heat/vFW_CNF_CDS/templates/helm/vpkg/templates/service.yaml
new file mode 100644 (file)
index 0000000..7f00ba6
--- /dev/null
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: "{{ .Values.vpg_name_0 }}-management-api"
+  labels:
+    app: {{ .Values.vpg_name_0 }}
+    release: {{ .Release.Name }}
+    chart: {{ .Chart.Name }}
+    vnf-name: {{ .Values.vnf_name }}
+spec:
+  type: {{ .Values.service.type }}
+  ports:
+    - port: {{ .Values.service.ports.port  }}
+      nodePort: {{ .Values.service.ports.nodePort }}
+  selector:
+    app: {{ .Values.vpg_name_0 }}
+    release: {{ .Release.Name }}