First commit for xapp_onboarder that onboards xApp
[it/dev.git] / xapp_onboarder / xapp_onboarder / resources / xapp-std / templates / service-http.yaml
@@ -27,10 +27,16 @@ metadata:
 spec:
   type: ClusterIP
   ports:
-    - port: {{ .Values.ricxapp.service.http.port }}
-      targetPort: http
+  {{- range .Values.containers }}
+  {{- if .ports }}
+    {{- if .ports.http }}
+    - port: {{  .ports.http  }}
+      targetPort: http_{{ .name }}
       protocol: TCP
-      name: http
+      name: http_{{ .name }}
+    {{- end }}
+  {{- end }}
+  {{- end }}
   selector:
     app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
     release: {{ .Release.Name }}