Enable https in nonrtric A1 simulator
[it/dep.git] / nonrtric / helm / a1simulator / templates / service.yaml
index 4bcde79..d22654c 100644 (file)
@@ -17,7 +17,7 @@
 kind: Service
 apiVersion: v1
 metadata:
-  name: {{ .Values.a1simulator.instanceName }}
+  name: {{ .Values.a1simulator.name }}
   namespace: {{ include "common.namespace.nonrtric" . }}
   labels:
     app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
@@ -26,11 +26,16 @@ metadata:
     heritage: {{ .Release.Service }}
 spec:
   ports:
-  - name: http
-    protocol: TCP
-    port: {{ include "common.serviceport.a1simulator.http" . }}
-    targetPort: {{ include "common.serviceport.a1simulator.http" . }}
+    - name: {{ index .Values.a1simulator.service.httpName }}
+      port: {{ .Values.a1simulator.service.internalPort1 }}
+      targetPort: {{ .Values.a1simulator.service.targetPort1 }}
+      protocol: TCP
+    - name: {{ index .Values.a1simulator.service.httpsName }}
+      port: {{ .Values.a1simulator.service.internalPort2 }}
+      targetPort: {{ .Values.a1simulator.service.targetPort2 }}
+      protocol: TCP
   selector:
     app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
     release: {{ .Release.Name }}
   type: ClusterIP
+  clusterIP: None
\ No newline at end of file